diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 3d37ee4b65..0000000000 --- a/.dockerignore +++ /dev/null @@ -1,13 +0,0 @@ -.git -**/node_modules -**/target -**/.output -**/dist -**/.env -**/.env.* -**/*.log -**/coverage -**/playwright-report -**/test-results -core/crates/ployz-sdk/*.node -core/crates/ployz-testkit/prebuilt diff --git a/.github/workflows/cloud.yml b/.github/workflows/cloud.yml index 171d711bdc..b55778ca5d 100644 --- a/.github/workflows/cloud.yml +++ b/.github/workflows/cloud.yml @@ -2,6 +2,11 @@ name: Cloud on: workflow_call: + inputs: + release-tag: + description: Build this release tag and publish ghcr.io/getployz/ployz-cloud: + type: string + default: '' secrets: RAILWAY_TOKEN: required: false @@ -49,6 +54,8 @@ jobs: timeout-minutes: 5 steps: - uses: actions/checkout@v6 + with: + ref: ${{ inputs.release-tag }} - uses: ./.github/actions/setup-cloud - name: Verify image publication ordering run: python3 scripts/test-publish-cloud-image.py @@ -64,6 +71,8 @@ jobs: timeout-minutes: 15 steps: - uses: actions/checkout@v6 + with: + ref: ${{ inputs.release-tag }} - uses: actions/setup-node@v6 with: node-version: 22 @@ -109,11 +118,13 @@ jobs: permissions: contents: read packages: write - needs: sdk + needs: [sdk, static, test] runs-on: ubuntu-24.04 timeout-minutes: 15 steps: - uses: actions/checkout@v6 + with: + ref: ${{ inputs.release-tag }} - uses: ./.github/actions/setup-cloud - uses: actions/download-artifact@v4 with: @@ -139,6 +150,15 @@ jobs: GH_TOKEN: ${{ github.token }} RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }} run: bash scripts/publish-cloud-image.sh + - name: Publish release image + if: inputs.release-tag != '' + env: + GH_TOKEN: ${{ github.token }} + IMAGE: ghcr.io/getployz/ployz-cloud:${{ inputs.release-tag }} + run: | + printf '%s' "$GH_TOKEN" | docker login ghcr.io -u "$GITHUB_ACTOR" --password-stdin + docker tag ployz-cloud:ci "$IMAGE" + docker push "$IMAGE" test: @@ -147,6 +167,8 @@ jobs: timeout-minutes: 10 steps: - uses: actions/checkout@v6 + with: + ref: ${{ inputs.release-tag }} - uses: ./.github/actions/setup-cloud - uses: actions/download-artifact@v4 with: diff --git a/.github/workflows/release-contracts.yml b/.github/workflows/release-contracts.yml index 27ea523f25..aec39d995a 100644 --- a/.github/workflows/release-contracts.yml +++ b/.github/workflows/release-contracts.yml @@ -201,10 +201,6 @@ jobs: - uses: actions/checkout@v4 with: ref: ${{ inputs.release-tag || github.sha }} - - if: github.event_name != 'pull_request' - run: bash scripts/test-cli-installer.sh - - if: github.event_name != 'pull_request' - run: bash scripts/test-daemon-lifecycle.sh - uses: actions/download-artifact@v4 with: pattern: release-linux-* diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 67466bddf6..aa76cf330d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,8 +53,21 @@ jobs: goreleaser-args: release --clean --skip=publish release-tag: ${{ inputs.tag || github.ref_name }} + cloud: + needs: [tag] + uses: ./.github/workflows/cloud.yml + secrets: + KACHE_S3_READ_ACCESS_KEY_ID: ${{ secrets.KACHE_S3_READ_ACCESS_KEY_ID }} + KACHE_S3_READ_SECRET_ACCESS_KEY: ${{ secrets.KACHE_S3_READ_SECRET_ACCESS_KEY }} + permissions: + contents: read + actions: write + packages: write + with: + release-tag: ${{ inputs.tag || github.ref_name }} + publish: - needs: [tag, artifacts] + needs: [tag, artifacts, cloud] runs-on: ubuntu-latest permissions: contents: write @@ -69,3 +82,12 @@ jobs: - run: bash scripts/publish-github-release.sh "$RELEASE_TAG" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Attach self-host Compose pinned to this release + working-directory: dashboard/self-host + run: | + sed "s|\${PLOYZ_CLOUD_VERSION:?[^}]*}|$RELEASE_TAG|" compose.yml > ployz-cloud-compose.yml + grep -Fq "ghcr.io/getployz/ployz-cloud:$RELEASE_TAG" ployz-cloud-compose.yml + cp .env.example ployz-cloud.env.example + gh release upload "$RELEASE_TAG" ployz-cloud-compose.yml ployz-cloud.env.example + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index 10539eb641..6cfe8df0be 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1,8 @@ *.node node_modules/ /docs/* -!/docs/adr/ -!/docs/adr/** !/docs/agents/ !/docs/agents/** -!/docs/audits/ -!/docs/audits/** /.claude/* !/.claude/skills/ /.scratch/ diff --git a/AGENTS.md b/AGENTS.md index 102a88cd46..a23597cd28 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,8 +1,8 @@ # Workspace - `core/` owns the engine, CLI, daemon, SDK, native helpers, and releases. Run Cargo there; apply relevant `core/CODING_STANDARDS.md` rules when changing core code. -- `dashboard/` owns the hosted application, backend, workflows, and marketing. Run pnpm there. -- Before designing a feature, read the affected project's `DESIGN.md`. A change that fights one of its bets needs an ADR justifying the exception — or a redesign. +- `dashboard/` owns Ployz Cloud: web, worker, durable workflows, and self-host packaging. Run pnpm there. +- Before designing a feature, read the affected project's `DESIGN.md`. A change that fights one of its bets needs a `DESIGN.md` amendment justifying the exception — or a redesign. - When changing domain behavior, terminology, or ownership boundaries, follow [docs/agents/domain.md](docs/agents/domain.md). # Change workflow diff --git a/CONTEXT-MAP.md b/CONTEXT-MAP.md index 3dcb69f4bf..771e128b38 100644 --- a/CONTEXT-MAP.md +++ b/CONTEXT-MAP.md @@ -20,4 +20,4 @@ At the boundary: - Shared runtime bootstrap terms follow the Engine glossary; the Cloud glossary supplies their product language. -Architectural decisions live in [docs/adr/](docs/adr/). +Design decisions live in each project's `DESIGN.md`; there is no separate ADR log. diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index db235b832f..0000000000 --- a/Dockerfile +++ /dev/null @@ -1,39 +0,0 @@ -# syntax=docker/dockerfile:1 -FROM node:24.18.1-bookworm-slim AS node - -FROM rust:1.97.1-bookworm AS sdk -COPY --from=node /usr/local/bin/node /usr/local/bin/node -WORKDIR /app -# Dashboard edits must not invalidate this layer. -COPY core/ core/ -# Railway requires its literal service ID; BuildKit on Ployz accepts the same cache IDs. -RUN --mount=type=cache,id=s/8089d161-49d3-4c77-b683-2bede5a784f5-/usr/local/cargo/registry,target=/usr/local/cargo/registry \ - --mount=type=cache,id=s/8089d161-49d3-4c77-b683-2bede5a784f5-/usr/local/cargo/git,target=/usr/local/cargo/git \ - --mount=type=cache,id=s/8089d161-49d3-4c77-b683-2bede5a784f5-/app/core/target,target=/app/core/target \ - bash core/scripts/build-cloud-sdk.sh - -FROM node AS dashboard -RUN npm install --global pnpm@11.7.0 -WORKDIR /app/dashboard -COPY dashboard/package.json dashboard/pnpm-lock.yaml dashboard/pnpm-workspace.yaml ./ -COPY dashboard/patches/ patches/ -COPY --from=sdk /app/core/crates/ployz-sdk /app/core/crates/ployz-sdk -RUN --mount=type=cache,id=s/8089d161-49d3-4c77-b683-2bede5a784f5-/root/.local/share/pnpm/store,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile -COPY dashboard/ ./ -# The SDK was built above; do not run package.json's combined Rust + Vite build. -RUN pnpm build:app && pnpm prune --prod - -FROM node AS runtime -RUN apt-get update \ - && apt-get install -y --no-install-recommends ca-certificates git openssh-client \ - && rm -rf /var/lib/apt/lists/* -ENV NODE_ENV=production -WORKDIR /app -COPY --from=dashboard /app/dashboard/.output .output -COPY --from=dashboard /app/dashboard/node_modules node_modules -# The app's packaged SDK is the runtime copy; replace pnpm's source-tree link. -RUN ln -sfn /app/.output/server/node_modules/@ployz/sdk node_modules/@ployz/sdk -COPY dashboard/package.json dashboard/drizzle.config.ts ./ -COPY dashboard/drizzle/ drizzle/ -# Load the OpenTelemetry SDK before the app; it reads Railway's OTEL_* variables. -CMD ["node", "--experimental-loader=@opentelemetry/instrumentation/hook.mjs", "--import", "@opentelemetry/auto-instrumentations-node/register", ".output/server/index.mjs"] diff --git a/README.md b/README.md index 45d13aaa3d..67c0e858c3 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,26 @@ # Ployz -Two projects in one repository: +Ployz runs containerized Services across a Cluster of your own Docker Machines. +Cloud authors the Deploy Intent and drives the Cluster; the `ployz` CLI operates +the same Cluster over SSH contexts. Neither is a control plane. | Project | Owns | Start here | | --- | --- | --- | -| **Core** | Deployment engine, CLI, daemon, Rust SDK/WASM, native helpers, installer and releases | [core/README.md](core/README.md) | -| **Dashboard** | Hosted backend, web UI, durable workflows and marketing | [dashboard/README.md](dashboard/README.md) | +| **Core** | Engine, `ployz` CLI, `ployzd` daemon, internal SDK, installer, releases | [core/README.md](core/README.md) | +| **Dashboard** | Ployz Cloud: web, worker, durable workflows, self-hosting | [dashboard/README.md](dashboard/README.md) | ```text -core/ Cargo workspace and engine tooling -dashboard/ pnpm application -scripts/ Cross-project CI and SDK checks -.github/ Shared workflows -docs/ Shared domain guidance and decisions +core/ Cargo workspace, installer, release scripts +dashboard/ pnpm application; self-host/ holds the Compose deployment +Dockerfile.cloud Cloud runtime image, packaged by the Cloud CI job +scripts/ CI check selection +.github/ Workflows +docs/agents/ Agent guidance for domain changes ``` -Run Cargo commands from `core/` and pnpm commands from `dashboard/`. -Dashboard links `@ployz/sdk` directly from `core/crates/ployz-sdk`; its dev and -build commands compile that SDK. Changes across the boundary land together. +Run Cargo commands from `core/` and pnpm commands from `dashboard/`. Dashboard +links `@ployz/sdk` from `core/crates/ployz-sdk`; changes across the boundary land +together. Releases: [core/docs/RELEASE.md](core/docs/RELEASE.md). Core is licensed under [Apache-2.0](core/LICENSE). Dashboard is licensed under [AGPL-3.0](dashboard/LICENSE). diff --git a/core/CONTEXT.md b/core/CONTEXT.md index 06b9498bb9..3eb8d59627 100644 --- a/core/CONTEXT.md +++ b/core/CONTEXT.md @@ -8,7 +8,7 @@ Architectural bets and their red flags live in [DESIGN.md](DESIGN.md). **Ployz**: The product, CLI, and daemon in this repository. -_Avoid_: Uncloud, Ployz2 +_Avoid_: Ployz2 **Cluster**: The product-level mesh as observed from one entry machine. A Cluster is not a globally authoritative entity or complete view. diff --git a/core/DESIGN.md b/core/DESIGN.md index 91f4cd29f5..77d60360e4 100644 --- a/core/DESIGN.md +++ b/core/DESIGN.md @@ -26,20 +26,21 @@ design, not filling a gap. ## Stable promise -From 0.2.0, the first stable release: a daemon keeps working, and can be -upgraded, across every later 0.x release without re-enrolling or reinstalling. -Versions follow semver; 1.0 may break the promise, and says so if it does. -The promise covers what a daemon carries or speaks — the replicated store, the -local Machine record, Machine RPC within `PROTOCOL_MAJOR`, the enrollment -protocol, and the release source. The CLI surface is a client courtesy with -ordinary deprecation, not a guarantee. +From 0.2.0: a daemon keeps working, and can be upgraded, across every later +0.x release without re-enrolling or reinstalling. Versions follow semver; only a +new major line (1.0 first) may break the promise, and it says so. The promise covers what a +daemon carries or speaks — the replicated store and its bodies, the local +Machine record, Machine RPC within `PROTOCOL_MAJOR`, the enrollment protocol, +and the release source. The CLI surface is a client courtesy with ordinary +deprecation, not a guarantee. Frozen formats evolve **additively with tolerant readers**: rows and bodies only gain fields; every new field is optional with a default; nothing is renamed or repurposed; readers ignore unknown fields. Replicated bodies never use `deny_unknown_fields` — a newer Machine's row must remain readable by an older -one in the same Cluster. Explicit security refusals are the only exception, -and never on replicated bodies: a section holding secret or key material, or +one in the same Cluster. Authored config and unrelated trust boundaries stay +strict. Within frozen formats, explicit security refusals are the only +exception, and never on replicated bodies: a section holding secret or key material, or a request mode that selects verification, may refuse fields it does not recognize and fail closed. There are no version gates and no store migrations; a change that cannot be expressed additively waits for `PROTOCOL_MAJOR` 2. @@ -163,7 +164,7 @@ unreachable. controller and holds no runtime truth. SSH and the Management Capability use the same Machine RPC connection seam. The daemon serves Machine RPC in-process on its Management Identity, an iroh key that is not a mesh peer; clients reach it through -the self-hosted Ployz Relay, which sees ciphertext only, or a direct path. +the Ployz-hosted Ployz Relay, which sees ciphertext only, or a direct path. **Why.** Reusing transport primitives removes a hosted protocol to maintain. Cloud stores encrypted, Organization-scoped connection candidates associated with diff --git a/core/README.md b/core/README.md index c52b6ef62e..6a75f4c81d 100644 --- a/core/README.md +++ b/core/README.md @@ -1,7 +1,7 @@ # Ployz Core -Deployment engine, CLI, daemon, and SDK for a cluster of Docker machines. -The hosted application lives in [dashboard/](../dashboard/README.md). +Deployment engine, `ployz` CLI, `ployzd` daemon, and internal SDK for a Cluster +of Docker Machines. Ployz Cloud lives in [dashboard/](../dashboard/README.md). ## Install @@ -10,7 +10,31 @@ curl -fsSL https://ployz.sh | sh brew install getployz/ployz/ployz ``` -Release process: [docs/RELEASE.md](docs/RELEASE.md). +Releases and channels: [docs/RELEASE.md](docs/RELEASE.md). What a 0.x daemon +keeps working across: [DESIGN.md](DESIGN.md#stable-promise). + +## CLI + +The CLI operates a Cluster over SSH contexts. Cloud authors and deploys +Services; the CLI has no deploy, build, or image command. + +```text +ployz +├── cloud enroll +├── machine init · add · ls · inspect · logs · rename · rm · rtt · update +│ upgrade [inspect] · build-cache-clear +├── service ls · inspect · logs · exec · scale · start · stop · rm +├── volume create · ls · inspect · rm +├── ingress config · deploy · logs +├── project ls · rm +├── ctx ls · show · use · rm · connection +├── proxy +├── ps +├── version +└── completion +``` + +`crates/ployz/tests/cli_shape.rs` pins this tree; there are no aliases. `ployz machine add` saves subnet assignments beside its configuration file in `.enrollment/` before publishing or joining. Commands using that @@ -21,17 +45,28 @@ cannot establish a shared scope. Different computers, configuration stores, and Cloud remain independent operators and can still choose overlapping subnets; there is no automatic reclamation, cross-store synchronization, or subnet repair. +`ployzd` issues https Ingress certificates from the ACME directory named by +`PLOYZ_ACME_DIRECTORY` in the daemon environment: + +| `PLOYZ_ACME_DIRECTORY` | Certificate issuance | +| --- | --- | +| unset | Let's Encrypt production | +| a URL | that ACME directory | +| empty | off | + ## Workspace Run Cargo and engine script commands from `core/`. - `crates/ployz-core`: domain and wire contracts shared by both binaries - `crates/ployz`: CLI for Linux, macOS, and Windows through WSL +- `crates/ployz-build`: BuildKit execution for one captured Build +- `crates/ployz-config-wasm`: the SDK's config ABI, compiled to WASM - `crates/ployz-sdk`: internal workspace package `@ployz/sdk`, never published. napi serves Machine RPC; config runs on the `ployz-config-wasm` build in Node and the browser. Its TypeScript declarations are derived from the Rust wire types by `cargo test -p ployz --test sdk_payloads` - `crates/ployzd`: Linux-only daemon - `crates/ployz-testkit`: unpublished support crate used only by tests -Each release archive ships one binary. The remote management transport (iroh, via the self-hosted Ployz Relay) is in-process in `ployz`, `ployzd`, and the SDK; there is no helper process. +Each release archive ships one binary. The remote management transport (iroh, via the Ployz-hosted Ployz Relay) is in-process in `ployz`, `ployzd`, and the SDK; there is no helper process. Cloud builds each Git Service on one Build Machine. The Service's build settings select a Dockerfile or Railpack; a failed recipe never falls back to another. @@ -54,10 +89,6 @@ variant's manifest, configuration and layers present in its containerd store: a tag, an image index, or a listed-but-absent platform is not content, so a peer that pulled one platform is never the source for another. -The [prototype findings](https://github.com/getployz/ployz2/blob/c3ca5519a4607256ffb28052d77a1c7d89f1bbe1/prototypes/railpack-transfer/FINDINGS.md) -preserve the evidence for this assembly approach. They used shipped beta binaries -and emulated ARM64; they do not qualify this implementation or native ARM64. - Service variables become build variables without changing runtime values; a Railpack build command is passed as `RAILPACK_BUILD_CMD`. Values travel as private secret mounts. Docker ignore patterns and Railpack's configured diff --git a/core/crates/ployz/src/cli/mod.rs b/core/crates/ployz/src/cli/mod.rs index d028eaf5b9..803bba90b9 100644 --- a/core/crates/ployz/src/cli/mod.rs +++ b/core/crates/ployz/src/cli/mod.rs @@ -6,8 +6,6 @@ pub mod env { pub const CONNECT: &str = "PLOYZ_CONNECT"; pub const CONTEXT: &str = "PLOYZ_CONTEXT"; pub const DAEMON_VERSION: &str = "PLOYZ_DAEMON_VERSION"; - pub const HEALTH_MONITOR_PERIOD: &str = "PLOYZ_HEALTH_MONITOR_PERIOD"; - pub const SSH_CONTROL_PERSIST: &str = "PLOYZ_SSH_CONTROL_PERSIST"; } #[must_use] diff --git a/core/crates/ployz/src/connect.rs b/core/crates/ployz/src/connect.rs index 3e8985adf2..7b8a43a912 100644 --- a/core/crates/ployz/src/connect.rs +++ b/core/crates/ployz/src/connect.rs @@ -303,11 +303,7 @@ pub(crate) fn ssh_control_args(control_path: Option<&Path>) -> Vec { "-o".into(), format!("ControlPath={}", path.display()), "-o".into(), - format!( - "ControlPersist={}", - std::env::var(crate::cli::env::SSH_CONTROL_PERSIST) - .unwrap_or_else(|_| "10m".into()) - ), + "ControlPersist=10m".into(), ]); } args diff --git a/core/crates/ployz/src/deploy/exec/health.rs b/core/crates/ployz/src/deploy/exec/health.rs index 5a938ac21d..e45ef2cc75 100644 --- a/core/crates/ployz/src/deploy/exec/health.rs +++ b/core/crates/ployz/src/deploy/exec/health.rs @@ -34,7 +34,7 @@ pub(super) async fn wait_healthy( cancellation: &CancellationToken, ) -> Result<(), ExecutionError> { let started = Instant::now(); - let monitor_deadline = started + default_health_monitor(); + let monitor_deadline = started + DEFAULT_HEALTH_MONITOR; loop { if cancellation.is_cancelled() { return Err(dependency_health_error( @@ -150,7 +150,7 @@ pub(super) async fn monitor_container( let monitor = spec .update .monitor_millis - .map_or_else(default_health_monitor, Duration::from_millis); + .map_or(DEFAULT_HEALTH_MONITOR, Duration::from_millis); let started = Instant::now(); let deadline_ms = match spec.container.healthcheck.as_ref() { Some(HealthcheckSpec::Http(check)) => u64::from(check.timeout_seconds) * 1_000, @@ -371,21 +371,6 @@ fn health_deadline_for( } } -fn default_health_monitor() -> Duration { - std::env::var(crate::cli::env::HEALTH_MONITOR_PERIOD) - .ok() - .and_then(|value| parse_monitor_period(&value)) - .unwrap_or(DEFAULT_HEALTH_MONITOR) -} - -pub(crate) fn parse_monitor_period(value: &str) -> Option { - let value = value.trim(); - if value == "0" { - return Some(Duration::ZERO); - } - crate::operator::go_duration(value) -} - fn healthcheck_timeout(healthcheck: Option<&ConfiguredHealthcheck>) -> Duration { let interval = healthcheck .and_then(|check| check.interval_millis) diff --git a/core/crates/ployz/src/deploy/exec_tests.rs b/core/crates/ployz/src/deploy/exec_tests.rs index 788d841e84..bf33892709 100644 --- a/core/crates/ployz/src/deploy/exec_tests.rs +++ b/core/crates/ployz/src/deploy/exec_tests.rs @@ -8,7 +8,6 @@ use ployz_core::{ use crate::deploy::{DeployOutcome, FailedOperation}; -use super::health::parse_monitor_period; use super::*; fn test_project() -> ProjectName { diff --git a/core/crates/ployz/src/deploy/exec_tests/health.rs b/core/crates/ployz/src/deploy/exec_tests/health.rs index caf777b6b5..fec4850487 100644 --- a/core/crates/ployz/src/deploy/exec_tests/health.rs +++ b/core/crates/ployz/src/deploy/exec_tests/health.rs @@ -1,13 +1,5 @@ use super::*; -#[test] -fn parse_monitor_period_accepts_zero_and_seconds() { - assert_eq!(parse_monitor_period("0"), Some(Duration::ZERO)); - assert_eq!(parse_monitor_period("0s"), Some(Duration::ZERO)); - assert_eq!(parse_monitor_period("10s"), Some(Duration::from_secs(10))); - assert_eq!(parse_monitor_period("bogus"), None); -} - #[tokio::test(start_paused = true)] async fn dependency_gate_waits_for_all_service_containers_before_the_dependent() { let dependency = QualifiedService::parse("app/api").unwrap(); diff --git a/core/crates/ployz/src/provisioning.rs b/core/crates/ployz/src/provisioning.rs index 78b138768c..99d8152b85 100644 --- a/core/crates/ployz/src/provisioning.rs +++ b/core/crates/ployz/src/provisioning.rs @@ -2,7 +2,7 @@ use std::{ env, ffi::OsString, io::{self, IsTerminal, Write}, - path::{Path, PathBuf}, + path::PathBuf, process::{Command, Stdio}, }; @@ -14,6 +14,8 @@ use uuid::Uuid; use crate::context::{Connection, ConnectionError, SshDestination, Transport}; mod bootstrap; +#[cfg(test)] +mod setup_tests; use bootstrap::Bootstrap; @@ -174,11 +176,7 @@ enum Preparation<'user> { SoftwareOnly, } -fn install_arguments( - version: &str, - preparation: Preparation<'_>, - release_dir: Option<&Path>, -) -> Vec { +fn install_arguments(version: &str, preparation: Preparation<'_>) -> Vec { let mut arguments = vec!["install".into(), "--version".into(), version.into()]; match preparation { Preparation::Host { @@ -192,9 +190,6 @@ fn install_arguments( } Preparation::SoftwareOnly => arguments.push("--software-only".into()), } - if let Some(directory) = release_dir { - arguments.extend(["--release-dir".into(), directory.as_os_str().to_owned()]); - } arguments } @@ -203,6 +198,14 @@ struct Remote { key: PathBuf, timeout: std::time::Duration, control_path: Option, + ssh: PathBuf, + scp: PathBuf, +} + +/// What the remote preflight learned before any bootstrap is acquired. +struct RemoteHost { + user: String, + architecture: String, } impl Remote { @@ -219,11 +222,13 @@ impl Remote { key: ssh_key(matches), timeout: crate::cli::ssh_timeout(matches), control_path: crate::connect::control_path(), + ssh: "ssh".into(), + scp: "scp".into(), }) } fn ssh(&self) -> Command { - let mut command = Command::new("ssh"); + let mut command = Command::new(&self.ssh); command.args(self.common_arguments()); if let Some(port) = self.destination.port() { command.args([OsString::from("-p"), port.to_string().into()]); @@ -235,7 +240,7 @@ impl Remote { } fn scp(&self) -> Command { - let mut command = Command::new("scp"); + let mut command = Command::new(&self.scp); command.args(self.common_arguments()); if let Some(port) = self.destination.port() { command.args([OsString::from("-P"), port.to_string().into()]); @@ -286,21 +291,13 @@ impl Remote { .ok_or_else(|| ProvisionError::PlatformFailed("uname returned no architecture".into())) } - async fn stage( - &self, - bootstrap: &Bootstrap, - version: &str, - directory: &str, - ) -> Result<(), ProvisionError> { + async fn stage(&self, bootstrap: &Bootstrap, directory: &str) -> Result<(), ProvisionError> { let mut create = self.ssh(); create.arg(format!("mkdir -m 700 -- {}", shell_quote(directory))); transfer_status(tokio::process::Command::from(create).status().await)?; let mut transfer = self.scp(); transfer.arg(bootstrap.daemon()); - if let Some(files) = bootstrap.release_files(version) { - transfer.args(files); - } transfer.arg(format!("{}:{}/", self.destination.copy_target(), directory)); transfer_status(tokio::process::Command::from(transfer).status().await) } @@ -343,7 +340,7 @@ impl Remote { let Some(control_path) = self.control_path.as_deref() else { return; }; - let mut command = Command::new("ssh"); + let mut command = Command::new(&self.ssh); command.args(crate::connect::ssh_control_args(Some(control_path))); if let Some(port) = self.destination.port() { command.arg("-p").arg(port.to_string()); @@ -355,6 +352,78 @@ impl Remote { .stderr(Stdio::null()); let _ = tokio::process::Command::from(command).status().await; } + + /// Confirm the remote user can install and report its architecture. + async fn preflight(&self) -> Result { + let mut whoami = self.ssh(); + whoami.arg("whoami"); + let output = tokio::process::Command::from(whoami) + .output() + .await + .map_err(|error| { + if error.kind() == io::ErrorKind::NotFound { + ProvisionError::SshClientMissing(error) + } else { + ProvisionError::Whoami(error) + } + })?; + if !output.status.success() { + return Err(ProvisionError::WhoamiFailed( + String::from_utf8_lossy(&output.stderr).trim().to_owned(), + )); + } + let user = String::from_utf8(output.stdout).map_err(|_| ProvisionError::WhoamiUtf8)?; + let user = user.trim().to_owned(); + if user.is_empty() { + return Err(ProvisionError::EmptyUser); + } + + if user != "root" { + let mut sudo = self.ssh(); + sudo.arg("sudo true"); + let status = tokio::process::Command::from(sudo) + .status() + .await + .map_err(ProvisionError::Sudo)?; + if !status.success() { + return Err(ProvisionError::SudoRequired { user }); + } + } + + let architecture = self.platform().await?; + Ok(RemoteHost { user, architecture }) + } + + /// Stage, verify, and run `bootstrap` on the host, then remove the stage. + async fn install_bootstrap( + &self, + host: &RemoteHost, + bootstrap: &Bootstrap, + version: &str, + storage: StorageChoice, + ) -> Result<(), ProvisionError> { + let via_sudo = host.user != "root"; + let remote_directory = format!("/tmp/ployz-bootstrap-{}", Uuid::new_v4()); + let remote_daemon = format!("{remote_directory}/ployzd"); + let arguments = install_arguments( + version, + Preparation::Host { + storage, + group_user: via_sudo.then_some(host.user.as_str()), + }, + ); + let primary = async { + self.stage(bootstrap, &remote_directory).await?; + self.verify(&remote_daemon).await?; + self.install(&remote_daemon, &arguments, via_sudo).await + } + .await; + let cleanup = self.cleanup(&remote_directory).await; + // Host preparation may add the SSH user to the ployz group. A multiplexed + // session authenticated before installation retains its old group list. + self.close_control_master().await; + finish_remote(primary, cleanup) + } } fn ssh_key(matches: &ArgMatches) -> PathBuf { @@ -432,74 +501,15 @@ fn finish_remote( /// bootstrap cannot be removed. pub async fn provision(matches: &ArgMatches, storage: StorageChoice) -> Result<(), ProvisionError> { let remote = Remote::from_matches(matches)?; - let mut whoami = remote.ssh(); - whoami.arg("whoami"); - let output = tokio::process::Command::from(whoami) - .output() - .await - .map_err(|error| { - if error.kind() == io::ErrorKind::NotFound { - ProvisionError::SshClientMissing(error) - } else { - ProvisionError::Whoami(error) - } - })?; - if !output.status.success() { - return Err(ProvisionError::WhoamiFailed( - String::from_utf8_lossy(&output.stderr).trim().to_owned(), - )); - } - let user = String::from_utf8(output.stdout).map_err(|_| ProvisionError::WhoamiUtf8)?; - let user = user.trim(); - if user.is_empty() { - return Err(ProvisionError::EmptyUser); - } - - let via_sudo = user != "root"; - if via_sudo { - let mut sudo = remote.ssh(); - sudo.arg("sudo true"); - let status = tokio::process::Command::from(sudo) - .status() - .await - .map_err(ProvisionError::Sudo)?; - if !status.success() { - return Err(ProvisionError::SudoRequired { - user: user.to_owned(), - }); - } - } - - let architecture = remote.platform().await?; - let bootstrap = Bootstrap::acquire(&architecture).await?; - let version = &matches + let host = remote.preflight().await?; + let bootstrap = Bootstrap::acquire(&host.architecture).await?; + let version = matches .get_one::("version") .expect("version has a default") .to_string(); - let remote_directory = format!("/tmp/ployz-bootstrap-{}", Uuid::new_v4()); - let remote_daemon = format!("{remote_directory}/ployzd"); - let release_dir = bootstrap - .release_dir(version) - .map(|_| Path::new(&remote_directory)); - let arguments = install_arguments( - version, - Preparation::Host { - storage, - group_user: via_sudo.then_some(user), - }, - release_dir, - ); - let primary = async { - remote.stage(&bootstrap, version, &remote_directory).await?; - remote.verify(&remote_daemon).await?; - remote.install(&remote_daemon, &arguments, via_sudo).await - } - .await; - let cleanup = remote.cleanup(&remote_directory).await; - // Host preparation may add the SSH user to the ployz group. A multiplexed - // session authenticated before installation retains its old group list. - remote.close_control_master().await; - finish_remote(primary, cleanup) + remote + .install_bootstrap(&host, &bootstrap, &version, storage) + .await } /// Install and start local `ployzd` through a verified temporary daemon. @@ -543,11 +553,18 @@ async fn provision_local_with( return Err(ProvisionError::UnsupportedOs); } let bootstrap = Bootstrap::acquire(env::consts::ARCH).await?; + install_local(&bootstrap, version, preparation).await +} + +async fn install_local( + bootstrap: &Bootstrap, + version: &str, + preparation: Preparation<'_>, +) -> Result<(), ProvisionError> { bootstrap.verify_local_version().await?; - let arguments = install_arguments(version, preparation, bootstrap.release_dir(version)); installer_status( tokio::process::Command::new(bootstrap.daemon()) - .args(arguments) + .args(install_arguments(version, preparation)) .status() .await, ) @@ -607,7 +624,6 @@ mod tests { storage: StorageChoice::Zfs, group_user: Some("deploy"), }, - None, ), [ "install", @@ -622,7 +638,7 @@ mod tests { .to_vec() ); assert_eq!( - install_arguments("1.2.3", Preparation::SoftwareOnly, None), + install_arguments("1.2.3", Preparation::SoftwareOnly), ["install", "--version", "1.2.3", "--software-only"] .map(OsString::from) .to_vec() diff --git a/core/crates/ployz/src/provisioning/bootstrap.rs b/core/crates/ployz/src/provisioning/bootstrap.rs index ae7109087b..00f0203110 100644 --- a/core/crates/ployz/src/provisioning/bootstrap.rs +++ b/core/crates/ployz/src/provisioning/bootstrap.rs @@ -1,5 +1,4 @@ use std::{ - env, fs::{self, File}, io::{self, Read, Seek, SeekFrom}, os::unix::fs::PermissionsExt, @@ -19,17 +18,66 @@ const VERSION_TIMEOUT: Duration = Duration::from_secs(10); /// A verified copy of this CLI release's daemon, owned by a private directory. pub(super) struct Bootstrap { - directory: TempDir, + /// Removes the extracted daemon on drop. + _directory: TempDir, daemon: PathBuf, - archive: PathBuf, - checksums: PathBuf, - local_source: bool, } impl Bootstrap { - /// Acquire, checksum, and extract the bootstrap for a Linux architecture. + /// Download, checksum, and extract this release's bootstrap for a Linux architecture. pub(super) async fn acquire(architecture: &str) -> Result { let archive_name = daemon_archive(architecture)?; + let base = format!( + "{RELEASE_REPOSITORY}/releases/download/v{}", + env!("CARGO_PKG_VERSION") + ); + let client = reqwest::Client::builder() + .https_only(true) + .connect_timeout(Duration::from_secs(10)) + .read_timeout(Duration::from_secs(30)) + .user_agent("ployz-bootstrap") + .build() + .map_err(|source| ProvisionError::BootstrapDownload { + stage: "build bootstrap download client", + source, + })?; + let archive = download( + &client, + &format!("{base}/{archive_name}"), + "download bootstrap daemon archive", + ) + .await?; + let checksums = download( + &client, + &format!("{base}/checksums.txt"), + "download bootstrap release checksums", + ) + .await?; + Self::extract(archive_name, &archive, &checksums).await + } + + /// Build a bootstrap from a local release directory, verified like a download. + #[cfg(test)] + pub(super) async fn from_release_dir( + release: &Path, + architecture: &str, + ) -> Result { + let archive_name = daemon_archive(architecture)?; + let read = |name: &str| { + fs::read(release.join(name)).map_err(|source| ProvisionError::BootstrapIo { + stage: "read local bootstrap release", + source, + }) + }; + Self::extract(archive_name, &read(archive_name)?, &read("checksums.txt")?).await + } + + async fn extract( + archive_name: &str, + archive: &[u8], + checksums: &[u8], + ) -> Result { + verify_checksum(archive, checksums, archive_name)?; let directory = tempfile::Builder::new() .prefix("ployz-bootstrap-") .tempdir() @@ -37,60 +85,16 @@ impl Bootstrap { stage: "create bootstrap directory", source, })?; - let archive = directory.path().join(archive_name); - let checksums = directory.path().join("checksums.txt"); - let (archive_bytes, checksum_bytes, local_source) = - if let Some(source) = env::var_os("PLOYZ_RELEASE_DIR") { - let source = PathBuf::from(source); - let archive_bytes = - read_file(&source.join(archive_name), "copy bootstrap daemon archive")?; - let checksum_bytes = read_file( - &source.join("checksums.txt"), - "copy bootstrap release checksums", - )?; - (archive_bytes, checksum_bytes, true) - } else { - let base = format!( - "{RELEASE_REPOSITORY}/releases/download/v{}", - env!("CARGO_PKG_VERSION") - ); - let client = reqwest::Client::builder() - .https_only(true) - .connect_timeout(Duration::from_secs(10)) - .read_timeout(Duration::from_secs(30)) - .user_agent("ployz-bootstrap") - .build() - .map_err(|source| ProvisionError::BootstrapDownload { - stage: "build bootstrap download client", - source, - })?; - let archive_bytes = download( - &client, - &format!("{base}/{archive_name}"), - "download bootstrap daemon archive", - ) - .await?; - let checksum_bytes = download( - &client, - &format!("{base}/checksums.txt"), - "download bootstrap release checksums", - ) - .await?; - (archive_bytes, checksum_bytes, false) - }; - - verify_checksum(&archive_bytes, &checksum_bytes, archive_name)?; - write_file(&archive, &archive_bytes, "stage bootstrap daemon archive")?; - write_file( - &checksums, - &checksum_bytes, - "stage bootstrap release checksums", - )?; + let archive_path = directory.path().join(archive_name); + fs::write(&archive_path, archive).map_err(|source| ProvisionError::BootstrapIo { + stage: "stage bootstrap daemon archive", + source, + })?; let daemon = directory.path().join("ployzd"); let mut extract = Command::new("tar"); extract .arg("-xzf") - .arg(&archive) + .arg(&archive_path) .arg("-C") .arg(directory.path()) .arg("ployzd"); @@ -103,11 +107,8 @@ impl Bootstrap { })?; Ok(Self { - directory, + _directory: directory, daemon, - archive, - checksums, - local_source, }) } @@ -115,16 +116,6 @@ impl Bootstrap { &self.daemon } - /// Return the local release directory only when it describes the selected target. - pub(super) fn release_dir(&self, version: &str) -> Option<&Path> { - (self.local_source && version == env!("CARGO_PKG_VERSION")).then(|| self.directory.path()) - } - - pub(super) fn release_files(&self, version: &str) -> Option<[&Path; 2]> { - self.release_dir(version) - .map(|_| [self.archive.as_path(), self.checksums.as_path()]) - } - pub(super) async fn verify_local_version(&self) -> Result<(), ProvisionError> { let mut command = Command::new(&self.daemon); command.arg("version"); @@ -174,10 +165,6 @@ async fn download( .map_err(|source| ProvisionError::BootstrapDownload { stage, source }) } -fn read_file(path: &Path, stage: &'static str) -> Result, ProvisionError> { - fs::read(path).map_err(|source| ProvisionError::BootstrapIo { stage, source }) -} - fn verify_checksum( archive: &[u8], checksums: &[u8], @@ -212,10 +199,6 @@ fn verify_checksum( } } -fn write_file(path: &Path, bytes: &[u8], stage: &'static str) -> Result<(), ProvisionError> { - fs::write(path, bytes).map_err(|source| ProvisionError::BootstrapIo { stage, source }) -} - async fn command_status(stage: &'static str, command: Command) -> Result<(), ProvisionError> { let status = tokio::process::Command::from(command) .status() @@ -263,7 +246,7 @@ fn read_from_start(file: &mut File) -> io::Result> { Ok(bytes) } -fn daemon_archive(architecture: &str) -> Result<&'static str, ProvisionError> { +pub(super) fn daemon_archive(architecture: &str) -> Result<&'static str, ProvisionError> { match architecture { "x86_64" => Ok("ployzd_linux_amd64.tar.gz"), "aarch64" => Ok("ployzd_linux_arm64.tar.gz"), diff --git a/core/crates/ployz/src/provisioning/setup_tests.rs b/core/crates/ployz/src/provisioning/setup_tests.rs new file mode 100644 index 0000000000..6f978b7087 --- /dev/null +++ b/core/crates/ployz/src/provisioning/setup_tests.rs @@ -0,0 +1,280 @@ +//! Setup scenarios that run the shared installer path with a locally built bootstrap. + +use std::{ + env, fs, + os::unix::fs::PermissionsExt, + path::{Path, PathBuf}, + process::Command, +}; + +use sha2::{Digest, Sha256}; + +use super::*; + +const VERSION: &str = env!("CARGO_PKG_VERSION"); + +fn write_executable(path: &Path, body: &str) { + fs::write(path, body).unwrap(); + fs::set_permissions(path, fs::Permissions::from_mode(0o755)).unwrap(); +} + +fn daemon_archive() -> &'static str { + bootstrap::daemon_archive(env::consts::ARCH).unwrap() +} + +/// A release directory whose fake daemon logs installer arguments and exits with `status`. +fn release_fixture(root: &Path, log: &Path, status: u8) -> PathBuf { + let release = root.join("release"); + let payload = root.join("payload"); + fs::create_dir(&release).unwrap(); + fs::create_dir(&payload).unwrap(); + write_executable( + &payload.join("ployzd"), + &format!( + "#!/bin/sh\nif [ \"${{1:-}}\" = version ]; then printf '%s\\n' '{VERSION}'; else printf '%s\\n' \"$*\" >> '{}'; exit {status}; fi\n", + log.display() + ), + ); + let archive = release.join(daemon_archive()); + assert!( + Command::new("tar") + .arg("-czf") + .arg(&archive) + .arg("-C") + .arg(&payload) + .arg("ployzd") + .status() + .unwrap() + .success() + ); + let hash = hex::encode(Sha256::digest(fs::read(&archive).unwrap())); + fs::write( + release.join("checksums.txt"), + format!("{hash} {}\n", daemon_archive()), + ) + .unwrap(); + release +} + +async fn bootstrap(release: &Path) -> Result { + Bootstrap::from_release_dir(release, env::consts::ARCH).await +} + +/// A remote whose `ssh` runs `ssh_script` and whose `scp` logs and succeeds. +fn remote(root: &Path, destination: &str, log: &Path, ssh_script: &str) -> Remote { + let matches = crate::cli::command() + .try_get_matches_from(["ployz", "machine", "add", destination]) + .unwrap(); + let matches = matches + .subcommand_matches("machine") + .unwrap() + .subcommand_matches("add") + .unwrap(); + let mut remote = Remote::from_matches(matches).unwrap(); + let ssh = root.join("ssh"); + let scp = root.join("scp"); + write_executable(&ssh, ssh_script); + write_executable( + &scp, + &format!( + "#!/bin/sh\nprintf 'scp %s\\n' \"$*\" >> '{}'\n", + log.display() + ), + ); + remote.ssh = ssh; + remote.scp = scp; + remote.control_path = Some(root.join("control-%C")); + remote +} + +async fn run_remote(remote: &Remote, release: &Path) -> Result<(), ProvisionError> { + let host = remote.preflight().await?; + let bootstrap = Bootstrap::from_release_dir(release, &host.architecture).await?; + remote + .install_bootstrap(&host, &bootstrap, VERSION, StorageChoice::None) + .await +} + +#[tokio::test] +async fn local_setup_runs_the_verified_bootstrap_installer() { + let fixture = tempfile::tempdir().unwrap(); + let log = fixture.path().join("commands.log"); + let release = release_fixture(fixture.path(), &log, 17); + + let error = install_local( + &bootstrap(&release).await.unwrap(), + VERSION, + Preparation::Host { + storage: StorageChoice::None, + group_user: None, + }, + ) + .await + .unwrap_err(); + + assert!( + matches!(error, ProvisionError::InstallFailed { .. }), + "{error}" + ); + let log = fs::read_to_string(log).unwrap(); + assert_eq!( + log.trim(), + format!("install --version {VERSION} --storage none") + ); +} + +#[tokio::test] +async fn corrupt_local_bootstrap_is_rejected_before_execution() { + let fixture = tempfile::tempdir().unwrap(); + let log = fixture.path().join("commands.log"); + let release = release_fixture(fixture.path(), &log, 0); + fs::write(release.join(daemon_archive()), b"corrupt").unwrap(); + + let Err(error) = bootstrap(&release).await else { + panic!("corrupt bootstrap was accepted"); + }; + + assert!( + error.to_string().contains("bootstrap verification"), + "{error}" + ); + assert!(!log.exists(), "corrupt bootstrap executed"); +} + +#[tokio::test] +async fn ssh_setup_transfers_one_bootstrap() { + let fixture = tempfile::tempdir().unwrap(); + let log = fixture.path().join("commands.log"); + let release = release_fixture(fixture.path(), &fixture.path().join("installer.log"), 0); + let remote = remote( + fixture.path(), + "deploy@2001:db8::1", + &log, + &format!( + r#"#!/bin/sh +printf 'ssh %s\n' "$*" >> '{log}' +case "$*" in + *' whoami') echo deploy ;; + *' sudo true') ;; + *'uname -s; uname -m') printf 'Linux\n{arch}\n' ;; + *'mkdir -m 700 -- '*) ;; + *'chmod 700 '*' version') printf '%s\n' '{VERSION}' ;; + *" 'install' "*) ;; + *'rm -rf -- '*) ;; + *' -O exit '*) ;; + *) echo "unexpected ssh invocation: $*" >&2; exit 24 ;; +esac +"#, + log = log.display(), + arch = env::consts::ARCH, + ), + ); + + run_remote(&remote, &release).await.unwrap(); + + let setup_log = fs::read_to_string(&log).unwrap(); + let transfers: Vec<_> = setup_log + .lines() + .filter(|line| line.starts_with("scp ")) + .collect(); + let [transfer] = transfers.as_slice() else { + panic!("expected one transfer: {setup_log}"); + }; + assert!( + transfer.contains("/ployzd deploy@[2001:db8::1]:/tmp/ployz-bootstrap-"), + "{setup_log}" + ); + assert!(!setup_log.contains(" -P 1 "), "{setup_log}"); + let install = setup_log + .find(&format!( + "'install' '--version' '{VERSION}' '--storage' 'none' '--group-user' 'deploy'" + )) + .expect(&setup_log); + let cleanup = setup_log.find("rm -rf --").expect(&setup_log); + let close = setup_log + .find(" -O exit deploy@2001:db8::1") + .expect(&setup_log); + assert!(install < cleanup && cleanup < close, "{setup_log}"); +} + +#[tokio::test] +async fn remote_verify_timeout_kills_the_child_and_cleans_the_stage() { + let fixture = tempfile::tempdir().unwrap(); + let log = fixture.path().join("commands.log"); + let pid = fixture.path().join("preflight.pid"); + let release = release_fixture(fixture.path(), &fixture.path().join("installer.log"), 0); + let remote = remote( + fixture.path(), + "root@host", + &log, + &format!( + r#"#!/bin/sh +printf 'ssh %s\n' "$*" >> '{log}' +case "$*" in + *' whoami') echo root ;; + *'uname -s; uname -m') printf 'Linux\n{arch}\n' ;; + *'mkdir -m 700 -- '*) ;; + *'chmod 700 '*' version') echo $$ > '{pid}'; exec sleep 30 ;; + *'rm -rf -- '*) ;; + *' -O exit '*) ;; + *) exit 24 ;; +esac +"#, + log = log.display(), + pid = pid.display(), + arch = env::consts::ARCH, + ), + ); + + let error = run_remote(&remote, &release).await.unwrap_err(); + + assert!( + error.to_string().contains("timed out after 10 seconds"), + "{error}" + ); + let log = fs::read_to_string(log).unwrap(); + assert!(log.contains("rm -rf --"), "{log}"); + let pid = fs::read_to_string(pid).unwrap().trim().to_owned(); + assert!( + !Command::new("kill") + .args(["-0", &pid]) + .status() + .unwrap() + .success(), + "timed-out SSH child {pid} survived" + ); +} + +#[tokio::test] +async fn remote_cleanup_failure_is_returned_after_successful_installation() { + let fixture = tempfile::tempdir().unwrap(); + let log = fixture.path().join("commands.log"); + let release = release_fixture(fixture.path(), &fixture.path().join("installer.log"), 0); + let remote = remote( + fixture.path(), + "root@host", + &log, + &format!( + r#"#!/bin/sh +case "$*" in + *' whoami') echo root ;; + *'uname -s; uname -m') printf 'Linux\n{arch}\n' ;; + *'mkdir -m 700 -- '*) ;; + *'chmod 700 '*' version') printf '%s\n' '{VERSION}' ;; + *" 'install' "*) ;; + *'rm -rf -- '*) exit 29 ;; + *' -O exit '*) ;; + *) exit 24 ;; +esac +"#, + arch = env::consts::ARCH, + ), + ); + + let error = run_remote(&remote, &release).await.unwrap_err(); + + assert_eq!( + error.to_string(), + "remote bootstrap cleanup exited with exit status: 29" + ); +} diff --git a/core/crates/ployz/tests/cloud_init/founder_resumption.rs b/core/crates/ployz/tests/cloud_init/founder_resumption.rs index 9ebad7b437..a6a42944dc 100644 --- a/core/crates/ployz/tests/cloud_init/founder_resumption.rs +++ b/core/crates/ployz/tests/cloud_init/founder_resumption.rs @@ -336,8 +336,6 @@ async fn founder_tail_recovers_lost_replies_without_replaying_mutations() { "caddy:2.10.0", "--yes", ]) - // Health-monitor timing is covered under virtual time in deploy tests. - .env("PLOYZ_HEALTH_MONITOR_PERIOD", "0s") .env("HTTPS_PROXY", &proxy) .env("https_proxy", &proxy) .env("NO_PROXY", "127.0.0.1,localhost") diff --git a/core/crates/ployz/tests/ingress_cluster.rs b/core/crates/ployz/tests/ingress_cluster.rs index 8802212613..b2467d2c3e 100644 --- a/core/crates/ployz/tests/ingress_cluster.rs +++ b/core/crates/ployz/tests/ingress_cluster.rs @@ -335,7 +335,6 @@ fn run_cli(direct: &str, args: &[&str]) -> process::Output { "/missing-ployz-test-config", ]) .args(args) - .env("PLOYZ_HEALTH_MONITOR_PERIOD", "0s") .output() .unwrap(); assert!( diff --git a/core/crates/ployz/tests/setup_cli.rs b/core/crates/ployz/tests/setup_cli.rs index 31a8cad702..c75e046563 100644 --- a/core/crates/ployz/tests/setup_cli.rs +++ b/core/crates/ployz/tests/setup_cli.rs @@ -1,235 +1,31 @@ -//! CLI setup adapters invoking the shared Machine installer. +//! CLI setup adapters around the shared Machine installer. +//! +//! Bootstrap scenarios run in-process in `provisioning::setup_tests`. -use std::{ - env, fs, - os::unix::fs::PermissionsExt, - path::{Path, PathBuf}, - process::{Command, Output}, -}; - -use sha2::{Digest, Sha256}; +use std::{env, fs, os::unix::fs::PermissionsExt, path::Path, process::Command}; fn write_executable(path: &Path, body: &str) { fs::write(path, body).unwrap(); fs::set_permissions(path, fs::Permissions::from_mode(0o755)).unwrap(); } -fn daemon_archive() -> &'static str { - match env::consts::ARCH { - "x86_64" => "ployzd_linux_amd64.tar.gz", - "aarch64" => "ployzd_linux_arm64.tar.gz", - architecture => panic!("unsupported test architecture {architecture}"), - } -} - -fn release_fixture(root: &Path, log: &Path) -> PathBuf { - let release = root.join("release"); - let payload = root.join("payload"); - fs::create_dir(&release).unwrap(); - fs::create_dir(&payload).unwrap(); - write_executable( - &payload.join("ployzd"), - &format!( - "#!/bin/sh\nif [ \"${{1:-}}\" = version ]; then printf '%s\\n' '{}'; else printf '%s\\n' \"$*\" >> '{}'; exit \"${{PLOYZ_FAKE_INSTALL_STATUS:-0}}\"; fi\n", - env!("CARGO_PKG_VERSION"), - log.display() - ), - ); - let archive = release.join(daemon_archive()); - assert!( - Command::new("tar") - .args(["-czf"]) - .arg(&archive) - .arg("-C") - .arg(&payload) - .arg("ployzd") - .status() - .unwrap() - .success() - ); - let hash = hex::encode(Sha256::digest(fs::read(&archive).unwrap())); - fs::write( - release.join("checksums.txt"), - format!("{hash} {}\n", daemon_archive()), - ) - .unwrap(); - release -} - -fn run(args: &[&str], root: &Path, release: &Path, bin: &Path) -> Output { - let inherited = env::var_os("PATH").unwrap_or_default(); - let path = - env::join_paths(std::iter::once(bin.to_path_buf()).chain(env::split_paths(&inherited))) - .unwrap(); - Command::new(env!("CARGO_BIN_EXE_ployz")) - .args(args) - .env("PATH", path) - .env("PLOYZ_RELEASE_DIR", release) - .env("PLOYZ_CONFIG", root.join("config.yaml")) - .env("PLOYZ_FAKE_INSTALL_STATUS", "17") - .env("LOG", root.join("commands.log")) - .env("PLOYZ_TEST_PID", root.join("preflight.pid")) - .env_remove("SUDO_USER") - .output() - .unwrap() -} - -#[test] -fn local_setup_runs_the_verified_bootstrap_installer() { - let fixture = tempfile::tempdir().unwrap(); - let log = fixture.path().join("commands.log"); - let release = release_fixture(fixture.path(), &log); - let bin = fixture.path().join("bin"); - fs::create_dir(&bin).unwrap(); - write_executable( - &bin.join("id"), - "#!/bin/sh\nif [ \"$1\" = -u ]; then echo 0; else exec /usr/bin/id \"$@\"; fi\n", - ); - - let output = run( - &[ - "machine", - "init", - "--yes", - "--storage", - "none", - "--accepts-ingress=false", - "--context", - "setup-local", - ], - fixture.path(), - &release, - &bin, - ); - assert!(!output.status.success(), "fake daemon must not accept RPC"); - let log = fs::read_to_string(log).unwrap(); - assert!( - log.contains(&format!( - "install --version {} --storage none --release-dir", - env!("CARGO_PKG_VERSION") - )), - "{log}" - ); -} - -#[test] -fn corrupt_local_bootstrap_is_rejected_before_execution() { - let fixture = tempfile::tempdir().unwrap(); - let log = fixture.path().join("commands.log"); - let release = release_fixture(fixture.path(), &log); - fs::write(release.join(daemon_archive()), b"corrupt").unwrap(); - let bin = fixture.path().join("bin"); - fs::create_dir(&bin).unwrap(); - write_executable( - &bin.join("id"), - "#!/bin/sh\nif [ \"$1\" = -u ]; then echo 0; else exec /usr/bin/id \"$@\"; fi\n", - ); - - let output = run( - &[ - "machine", - "init", - "--yes", - "--storage", - "none", - "--accepts-ingress=false", - "--context", - "setup-corrupt", - ], - fixture.path(), - &release, - &bin, - ); - assert!(!output.status.success()); - assert!( - String::from_utf8_lossy(&output.stderr).contains("bootstrap verification"), - "{}", - String::from_utf8_lossy(&output.stderr) - ); - assert!(!log.exists(), "corrupt bootstrap executed"); -} - #[test] -fn ssh_setup_transfers_one_bootstrap_and_no_install_skips_it() { +fn ssh_setup_with_no_install_skips_the_bootstrap() { let fixture = tempfile::tempdir().unwrap(); let log = fixture.path().join("commands.log"); - let release = release_fixture(fixture.path(), &log); let bin = fixture.path().join("bin"); fs::create_dir(&bin).unwrap(); write_executable( &bin.join("ssh"), - &format!( - r#"#!/bin/sh -printf 'ssh %s\n' "$*" >> "$LOG" -case "$*" in - *' whoami') echo deploy ;; - *' sudo true') ;; - *'uname -s; uname -m') printf 'Linux\n{}\n' ;; - *'mkdir -m 700 -- '*) ;; - *'chmod 700 '*' version') printf '%s\n' '{}' ;; - *" 'install' "*) ;; - *'rm -rf -- '*) ;; - *' -O exit '*) ;; - *' true') exit 23 ;; - *) echo "unexpected ssh invocation: $*" >&2; exit 24 ;; -esac -"#, - env::consts::ARCH, - env!("CARGO_PKG_VERSION") - ), + "#!/bin/sh\nprintf 'ssh %s\\n' \"$*\" >> \"$LOG\"\nexit 23\n", ); write_executable( &bin.join("scp"), "#!/bin/sh\nprintf 'scp %s\\n' \"$*\" >> \"$LOG\"\n", ); - - let common = [ - "machine", - "init", - "deploy@2001:db8::1", - "--yes", - "--storage", - "none", - "--accepts-ingress=false", - "--context", - "setup-ssh", - ]; let inherited = env::var_os("PATH").unwrap_or_default(); - let path = - env::join_paths(std::iter::once(bin.clone()).chain(env::split_paths(&inherited))).unwrap(); - let output = Command::new(env!("CARGO_BIN_EXE_ployz")) - .args(common) - .env("PATH", &path) - .env("LOG", &log) - .env("PLOYZ_RELEASE_DIR", &release) - .env("PLOYZ_CONFIG", fixture.path().join("ssh-config.yaml")) - .output() - .unwrap(); - assert!(!output.status.success(), "fake daemon must not accept RPC"); - let setup_log = fs::read_to_string(&log).unwrap(); - assert!(setup_log.contains("scp "), "{setup_log}"); - assert!( - setup_log.contains("deploy@[2001:db8::1]:/tmp/ployz-bootstrap-"), - "{setup_log}" - ); - assert!(!setup_log.contains(" -P 1 "), "{setup_log}"); - assert!(setup_log.contains(daemon_archive()), "{setup_log}"); - assert!(setup_log.contains("checksums.txt"), "{setup_log}"); - assert!( - setup_log.contains(&format!( - "'install' '--version' '{}' '--storage' 'none' '--group-user' 'deploy'", - env!("CARGO_PKG_VERSION") - )), - "{setup_log}" - ); - assert!(setup_log.contains("'--release-dir' '/tmp/ployz-bootstrap-")); - assert!(setup_log.contains("rm -rf --"), "{setup_log}"); - let close = setup_log.find(" -O exit deploy@2001:db8::1").unwrap(); - let reconnect = setup_log.rfind(" true").unwrap(); - assert!(close < reconnect, "{setup_log}"); - assert!(!setup_log.contains("base64"), "{setup_log}"); + let path = env::join_paths(std::iter::once(bin).chain(env::split_paths(&inherited))).unwrap(); - fs::write(&log, "").unwrap(); let output = Command::new(env!("CARGO_BIN_EXE_ployz")) .args([ "machine", @@ -245,132 +41,13 @@ esac ]) .env("PATH", path) .env("LOG", &log) - .env("PLOYZ_RELEASE_DIR", release) - .env( - "PLOYZ_CONFIG", - fixture.path().join("no-install-config.yaml"), - ) + .env("PLOYZ_CONFIG", fixture.path().join("config.yaml")) .output() .unwrap(); - assert!(!output.status.success(), "fake daemon must not accept RPC"); - let no_install_log = fs::read_to_string(log).unwrap(); - assert!(!no_install_log.contains("scp "), "{no_install_log}"); - assert!(!no_install_log.contains("'install'"), "{no_install_log}"); -} - -#[test] -fn remote_preflight_timeout_kills_the_child_and_cleans_the_stage() { - let fixture = tempfile::tempdir().unwrap(); - let log = fixture.path().join("commands.log"); - let release = release_fixture(fixture.path(), &fixture.path().join("installer.log")); - let bin = fixture.path().join("bin"); - fs::create_dir(&bin).unwrap(); - write_executable( - &bin.join("ssh"), - &format!( - r#"#!/bin/sh -printf 'ssh %s\n' "$*" >> "$LOG" -case "$*" in - *' whoami') echo root ;; - *'uname -s; uname -m') printf 'Linux\n{}\n' ;; - *'mkdir -m 700 -- '*) ;; - *'chmod 700 '*' version') echo $$ > "$PLOYZ_TEST_PID"; exec sleep 30 ;; - *'rm -rf -- '*) ;; - *) exit 24 ;; -esac -"#, - env::consts::ARCH - ), - ); - write_executable(&bin.join("scp"), "#!/bin/sh\nexit 0\n"); - - let output = run( - &[ - "machine", - "init", - "root@host", - "--yes", - "--storage", - "none", - "--accepts-ingress=false", - "--context", - "setup-timeout", - ], - fixture.path(), - &release, - &bin, - ); - assert!(!output.status.success()); - assert!( - String::from_utf8_lossy(&output.stderr).contains("timed out after 10 seconds"), - "{}", - String::from_utf8_lossy(&output.stderr) - ); + assert!(!output.status.success(), "fake daemon must not accept RPC"); let log = fs::read_to_string(log).unwrap(); - assert!(log.contains("rm -rf --"), "{log}"); - let pid = fs::read_to_string(fixture.path().join("preflight.pid")) - .unwrap() - .trim() - .to_owned(); - assert!( - !Command::new("kill") - .args(["-0", &pid]) - .status() - .unwrap() - .success(), - "timed-out SSH child {pid} survived" - ); -} - -#[test] -fn remote_cleanup_failure_is_returned_after_successful_installation() { - let fixture = tempfile::tempdir().unwrap(); - let release = release_fixture(fixture.path(), &fixture.path().join("installer.log")); - let bin = fixture.path().join("bin"); - fs::create_dir(&bin).unwrap(); - write_executable( - &bin.join("ssh"), - &format!( - r#"#!/bin/sh -case "$*" in - *' whoami') echo root ;; - *'uname -s; uname -m') printf 'Linux\n{}\n' ;; - *'mkdir -m 700 -- '*) ;; - *'chmod 700 '*' version') printf '%s\n' '{}' ;; - *" 'install' "*) ;; - *'rm -rf -- '*) exit 29 ;; - *) exit 24 ;; -esac -"#, - env::consts::ARCH, - env!("CARGO_PKG_VERSION") - ), - ); - write_executable(&bin.join("scp"), "#!/bin/sh\nexit 0\n"); - - let output = run( - &[ - "machine", - "init", - "root@host", - "--yes", - "--storage", - "none", - "--accepts-ingress=false", - "--context", - "setup-cleanup", - ], - fixture.path(), - &release, - &bin, - ); - - assert!(!output.status.success()); - assert!( - String::from_utf8_lossy(&output.stderr) - .contains("remote bootstrap cleanup exited with exit status: 29"), - "{}", - String::from_utf8_lossy(&output.stderr) - ); + assert!(log.contains("ssh "), "{log}"); + assert!(!log.contains("scp "), "{log}"); + assert!(!log.contains("'install'"), "{log}"); } diff --git a/core/crates/ployz/tests/workflow_layer3.rs b/core/crates/ployz/tests/workflow_layer3.rs index 58af1618d9..a9e78ba244 100644 --- a/core/crates/ployz/tests/workflow_layer3.rs +++ b/core/crates/ployz/tests/workflow_layer3.rs @@ -314,7 +314,6 @@ fn ployz(address: std::net::SocketAddr, args: [&str; N]) -> std: Command::new(env!("CARGO_BIN_EXE_ployz")) .args(["--connect", &format!("tcp://{address}")]) .args(args) - .env("PLOYZ_HEALTH_MONITOR_PERIOD", "0s") .output() .unwrap() } diff --git a/core/crates/ployzd/src/installer/mod.rs b/core/crates/ployzd/src/installer/mod.rs index 4bd4acf7e5..be5c0a6614 100644 --- a/core/crates/ployzd/src/installer/mod.rs +++ b/core/crates/ployzd/src/installer/mod.rs @@ -22,12 +22,10 @@ use self::{ create_user_and_directories, install_docker, install_prerequisites, install_systemd, verify_running_daemon, verify_software_prerequisites, }, - release::{install_binaries, installed_release, resolve_release}, + release::{ReleaseSource, install_binaries, installed_release, resolve_release}, storage::prepare_storage, }; -pub use self::release::ReleaseSource; - const PLOYZ_USER: &str = "ployz"; const DEFAULT_BIN_DIR: &str = "/usr/local/bin"; const DEFAULT_SYSTEMD_DIR: &str = "/etc/systemd/system"; @@ -55,8 +53,6 @@ pub enum InstallMode { pub struct InstallRequest { /// A fixed version or a channel resolved once before host mutation. pub release: MachineRelease, - /// Trusted release source. Published releases never accept caller-provided URLs. - pub source: ReleaseSource, /// Installation-only, software-only replacement, or full host preparation. pub mode: InstallMode, } @@ -178,20 +174,30 @@ pub async fn install( let data_dir = data_dir.into(); let socket = socket.into(); require_standard_machine_paths(&data_dir, &socket).map_err(Error::NonstandardPaths)?; - install_at(request, InstallPaths::system(data_dir, DEFAULT_RUN_DIR)).await + install_at( + &ReleaseSource::Published, + request, + InstallPaths::system(data_dir, DEFAULT_RUN_DIR), + ) + .await } -async fn install_at(request: InstallRequest, paths: InstallPaths) -> Result { +async fn install_at( + source: &ReleaseSource, + request: InstallRequest, + paths: InstallPaths, +) -> Result { require_root()?; let admission = mutation::MutationGate::new(&paths.run_dir, &paths.data_dir); let lock = admission.try_installation().map_err(map_admission_error)?; upgrade::reconcile_for_install(&admission, &paths.data_dir) .await .map_err(map_upgrade_reconciliation)?; - install_locked(request, paths, lock, |_| Ok(())).await + install_locked(source, request, paths, lock, |_| Ok(())).await } async fn install_locked( + source: &ReleaseSource, request: InstallRequest, paths: InstallPaths, _lock: mutation::InstallationGuard, @@ -200,7 +206,7 @@ async fn install_locked( let installation_only = matches!(request.mode, InstallMode::InstallationOnly); verify_system(installation_only)?; let installed = installed_release(&paths.daemon()).await?; - let target = resolve_release(&request.release, &request.source, installed.as_ref()).await?; + let target = resolve_release(&request.release, source, installed.as_ref()).await?; progress(MachineUpgradeStage::Preparing)?; match &request.mode { @@ -221,14 +227,8 @@ async fn install_locked( } let mut restart_required = !paths.systemd_dir.join("ployz.service").is_file(); - restart_required |= install_binaries( - &request.source, - &paths, - installed.as_ref(), - &target, - &mut progress, - ) - .await?; + restart_required |= + install_binaries(source, &paths, installed.as_ref(), &target, &mut progress).await?; install_systemd(&paths, installation_only)?; if matches!(request.mode, InstallMode::PrepareHost { .. }) { install_docker(&paths).await?; @@ -416,7 +416,6 @@ mod tests { let fixture = fixture("nonstandard-paths"); let request = InstallRequest { release: MachineRelease::Exact(MachineVersion::parse("1.2.3").unwrap()), - source: ReleaseSource::Local(fixture.path().join("release")), mode: InstallMode::InstallationOnly, }; @@ -548,15 +547,15 @@ mod tests { let request = InstallRequest { release: MachineRelease::Exact(MachineVersion::parse("1.2.3").unwrap()), - source: ReleaseSource::Local(root.join("release")), mode: InstallMode::InstallationOnly, }; + let source = ReleaseSource::Local(root.join("release")); let result = if case == "busy" { let admission = mutation::MutationGate::new(&paths.run_dir, &paths.data_dir); let _held = admission.try_installation().unwrap(); - install_at(request, paths.clone()).await + install_at(&source, request, paths.clone()).await } else { - install_at(request, paths.clone()).await + install_at(&source, request, paths.clone()).await }; match case { @@ -575,12 +574,7 @@ mod tests { "same-target" => { let outcome = result.unwrap(); assert_eq!(outcome.target, "1.2.3"); - let existing = existing.as_ref().unwrap(); - assert_ne!(fs::read(paths.bin_dir.join("ployzd")).unwrap(), *existing); - assert_eq!( - fs::read(paths.bin_dir.join("ployzd.previous")).unwrap(), - *existing - ); + assert!(!paths.bin_dir.join("ployzd.previous").exists()); } "busy" => assert!(matches!(result, Err(Error::Busy))), "missing-tar" => assert!(matches!( @@ -614,7 +608,7 @@ mod tests { } other => panic!("unknown contract case {other}"), } - if let Some(existing) = existing.filter(|_| case != "same-target") { + if let Some(existing) = existing { assert_eq!(fs::read(paths.bin_dir.join("ployzd")).unwrap(), existing); } } diff --git a/core/crates/ployzd/src/installer/release.rs b/core/crates/ployzd/src/installer/release.rs index 363e6aa887..c3a1208a68 100644 --- a/core/crates/ployzd/src/installer/release.rs +++ b/core/crates/ployzd/src/installer/release.rs @@ -5,7 +5,7 @@ use std::{ fs::{self, File, OpenOptions}, io::{self, Write}, os::unix::fs::{OpenOptionsExt, PermissionsExt}, - path::{Path, PathBuf}, + path::Path, time::Duration, }; @@ -29,21 +29,17 @@ const VERSION_COMMAND_TIMEOUT: Duration = Duration::from_secs(10); #[cfg(test)] const VERSION_COMMAND_TIMEOUT: Duration = Duration::from_millis(100); -/// A release source that is fixed by the local installer invocation. -#[derive(Clone, Debug, Eq, PartialEq, serde::Serialize, serde::Deserialize)] -#[serde(rename_all = "snake_case")] -pub enum ReleaseSource { +/// Where releases come from. Production always uses [`ReleaseSource::Published`]. +#[derive(Clone, Debug, Eq, PartialEq)] +pub(super) enum ReleaseSource { /// Ployz's fixed, trusted published release and channel endpoints. Published, - /// An operator-provided local release directory used only by offline qualification. - Local(PathBuf), + /// A local release directory for in-process installer tests. + #[cfg(test)] + Local(std::path::PathBuf), } impl ReleaseSource { - fn is_local(&self) -> bool { - matches!(self, Self::Local(_)) - } - async fn channel(&self, name: &str) -> Result { let pointer = format!("{RELEASE_LINE}/{name}"); let bytes = match self { @@ -54,6 +50,7 @@ impl ReleaseSource { ) .await? } + #[cfg(test)] Self::Local(directory) => { fs::read(directory.join(pointer)).map_err(|source| Error::Io { stage: "read local release channel", @@ -74,6 +71,7 @@ impl ReleaseSource { ) -> Result, Error> { match self { Self::Published => fetch(&release_url(target, file), stage).await, + #[cfg(test)] Self::Local(directory) => fs::read(directory.join(file)).map_err(|source| Error::Io { stage: "read local release artifact", source, @@ -165,8 +163,7 @@ pub(super) async fn install_binaries( target: &MachineVersion, progress: &mut impl FnMut(MachineUpgradeStage) -> Result<(), Error>, ) -> Result { - let replace = replacement_required(source, installed, target); - if !replace { + if installed == Some(target) { println!( "ployzd {} retained", installed.expect("a skipped replacement has an installed release") @@ -196,14 +193,6 @@ pub(super) async fn install_binaries( Ok(true) } -fn replacement_required( - source: &ReleaseSource, - installed: Option<&MachineVersion>, - target: &MachineVersion, -) -> bool { - source.is_local() || installed != Some(target) -} - pub(super) async fn installed_release(path: &Path) -> Result, Error> { if !path.is_file() { return Ok(None); @@ -513,31 +502,6 @@ mod tests { assert_eq!(checksum_for(b"bad other.tar.gz\n", archive), None); } - #[test] - fn resolved_channels_replace_the_exact_target_and_skip_only_the_same_target() { - let target = MachineVersion::parse("1.2.3").unwrap(); - assert!(replacement_required( - &ReleaseSource::Published, - None, - &target - )); - assert!(!replacement_required( - &ReleaseSource::Published, - Some(&target), - &target - )); - assert!(replacement_required( - &ReleaseSource::Published, - Some(&MachineVersion::parse("1.2.4").unwrap()), - &target - )); - assert!(replacement_required( - &ReleaseSource::Local(PathBuf::from("qualification")), - Some(&target), - &target - )); - } - #[test] fn staging_directory_is_private_and_removed_on_drop() { let parent = tempfile::tempdir().unwrap(); diff --git a/core/crates/ployzd/src/installer/upgrade.rs b/core/crates/ployzd/src/installer/upgrade.rs index efe53a0790..b0eec0f68a 100644 --- a/core/crates/ployzd/src/installer/upgrade.rs +++ b/core/crates/ployzd/src/installer/upgrade.rs @@ -18,7 +18,6 @@ use super::{Error as InstallError, InstallMode, InstallPaths, InstallRequest, Re use crate::mutation; const RECEIPT_FILE: &str = "upgrade-attempt.json"; -const QUALIFICATION_RELEASE_DIR: &str = "PLOYZ_UPGRADE_RELEASE_DIR"; const WORKER_RUNTIME: &str = "15min"; const LAUNCH_TIMEOUT: Duration = Duration::from_secs(20); @@ -45,9 +44,6 @@ pub enum Error { /// The current receipt could not be encoded. #[error("encode Machine upgrade receipt: {0}")] Encode(#[source] serde_json::Error), - /// The process-local qualification source was not a trusted absolute directory. - #[error("invalid qualification release directory: {0}")] - QualificationSource(String), /// Global activation was requested from a daemon using unsupported Machine paths. #[error("{0}")] NonstandardPaths(String), @@ -77,23 +73,9 @@ pub enum Error { #[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)] struct StoredAttempt { requested: MachineRelease, - source: ReleaseSource, attempt: MachineUpgradeAttempt, } -fn current_source() -> Result { - let Some(directory) = env::var_os(QUALIFICATION_RELEASE_DIR) else { - return Ok(ReleaseSource::Published); - }; - let directory = PathBuf::from(directory); - if !directory.is_absolute() { - return Err(Error::QualificationSource(format!( - "{QUALIFICATION_RELEASE_DIR} must be an absolute path" - ))); - } - Ok(ReleaseSource::Local(directory)) -} - /// Return the durable result of retrying the same request without requiring installation /// ownership. The receipt is atomically replaced, so an active worker can be observed safely. pub(crate) fn existing_request( @@ -153,17 +135,19 @@ async fn request_locked( if admission.active()? { return Err(Error::Busy); } - let source = current_source()?; let installed = super::release::installed_release(&InstallPaths::system(data_dir, run_dir).daemon()) .await .map_err(Error::Resolve)?; - let target = super::release::resolve_release(&request.release, &source, installed.as_ref()) - .await - .map_err(Error::Resolve)?; + let target = super::release::resolve_release( + &request.release, + &ReleaseSource::Published, + installed.as_ref(), + ) + .await + .map_err(Error::Resolve)?; let mut stored = StoredAttempt { requested: request.release, - source, attempt: MachineUpgradeAttempt { attempt_id: request.attempt_id, target, @@ -243,9 +227,9 @@ pub async fn run_worker( write(data_dir, &stored)?; let result = super::install_locked( + &ReleaseSource::Published, InstallRequest { release: MachineRelease::Exact(target.clone()), - source: stored.source.clone(), mode: InstallMode::SoftwareOnly, }, InstallPaths::system(data_dir, run_dir), @@ -483,7 +467,6 @@ fn write(data_dir: &Path, stored: &StoredAttempt) -> Result<(), Error> { #[cfg(test)] mod tests { use super::*; - use ployz_core::MachineVersion; const CONTRACT_CASE: &str = "PLOYZ_UPGRADE_CONTRACT_CASE"; const CONTRACT_ROOT: &str = "PLOYZ_UPGRADE_CONTRACT_ROOT"; @@ -506,31 +489,6 @@ mod tests { assert!(!run_dir.exists()); } - #[test] - fn stored_attempt_round_trips_without_exposing_local_source_in_response() { - let attempt_id = MachineUpgradeAttemptId::random(); - let stored = StoredAttempt { - requested: MachineRelease::parse("beta").unwrap(), - source: ReleaseSource::Local("/root/qualification".into()), - attempt: MachineUpgradeAttempt { - attempt_id, - target: MachineVersion::parse("1.2.3-beta.4").unwrap(), - outcome: MachineUpgradeOutcome::Accepted, - }, - }; - let encoded = serde_json::to_string(&stored).unwrap(); - assert!(encoded.contains("/root/qualification")); - assert!( - !serde_json::to_string(&stored.attempt) - .unwrap() - .contains("qualification") - ); - assert_eq!( - serde_json::from_str::(&encoded).unwrap(), - stored - ); - } - #[test] fn upgrade_attempt_contract() { if let Ok(case) = env::var(CONTRACT_CASE) { @@ -576,7 +534,6 @@ mod tests { _ => "printf 'LoadState=loaded\\nActiveState=active\\n'", }, ); - fs::create_dir(root.path().join("release")).unwrap(); let output = std::process::Command::new(env::current_exe().unwrap()) .args([ "--exact", @@ -585,7 +542,6 @@ mod tests { ]) .env(CONTRACT_CASE, case) .env(CONTRACT_ROOT, root.path()) - .env(QUALIFICATION_RELEASE_DIR, root.path().join("release")) .env( "PLOYZ_UPGRADE_COMMAND_LOG", root.path().join("commands.log"), diff --git a/core/crates/ployzd/src/machine_api/local.rs b/core/crates/ployzd/src/machine_api/local.rs index f611828aec..df1c49b89b 100644 --- a/core/crates/ployzd/src/machine_api/local.rs +++ b/core/crates/ployzd/src/machine_api/local.rs @@ -817,7 +817,6 @@ fn upgrade_error(error: crate::installer::upgrade::Error) -> RpcError { | Error::Decode(_) | Error::Write(_) | Error::Encode(_) - | Error::QualificationSource(_) | Error::Launch(_) | Error::InspectWorker(_) | Error::WorkerEvidence(_) diff --git a/core/crates/ployzd/src/main.rs b/core/crates/ployzd/src/main.rs index c86392834f..684f69c56e 100644 --- a/core/crates/ployzd/src/main.rs +++ b/core/crates/ployzd/src/main.rs @@ -18,7 +18,7 @@ use ployz_core::{ use ployzd::{ daemon::{ContainerMode, Daemon, DaemonConfig, Error, wait_until_socket_accepts}, diag, - installer::{DEFAULT_SOCKET_PATH, InstallMode, InstallRequest, Readiness, ReleaseSource}, + installer::{DEFAULT_SOCKET_PATH, InstallMode, InstallRequest, Readiness}, machine::DEFAULT_DATA_DIR, management::ManagementConfig, network::NetworkError, @@ -82,9 +82,6 @@ enum Command { /// Add this existing operator to the Ployz service group during host preparation. #[arg(long, value_name = "USER")] group_user: Option, - /// Read a verified release from this local directory. Used by offline qualification. - #[arg(long, hide = true, value_name = "DIR")] - release_dir: Option, }, } @@ -147,18 +144,10 @@ async fn run(args: Args) -> Result<(), Error> { software_only, install_only, group_user, - release_dir, }) = args.command { - let request = install_request( - version, - storage, - software_only, - install_only, - group_user, - release_dir, - ) - .map_err(Error::from)?; + let request = install_request(version, storage, software_only, install_only, group_user) + .map_err(Error::from)?; let outcome = ployzd::installer::install(request, &args.data_dir, &args.socket) .await .map_err(io::Error::other)?; @@ -205,7 +194,6 @@ fn install_request( software_only: bool, install_only: bool, group_user: Option, - release_dir: Option, ) -> io::Result { if install_only && storage != StorageChoice::None { return Err(io::Error::new( @@ -241,11 +229,7 @@ fn install_request( group_user, } }; - Ok(InstallRequest { - release, - source: release_dir.map_or(ReleaseSource::Published, ReleaseSource::Local), - mode, - }) + Ok(InstallRequest { release, mode }) } async fn dial_stdio(path: &Path) -> io::Result<()> { @@ -291,15 +275,8 @@ mod tests { #[test] fn install_cli_rejects_host_options_for_software_only_replacement() { - let storage = install_request( - release("stable"), - StorageChoice::Zfs, - true, - false, - None, - None, - ) - .unwrap_err(); + let storage = + install_request(release("stable"), StorageChoice::Zfs, true, false, None).unwrap_err(); assert_eq!(storage.kind(), io::ErrorKind::InvalidInput); assert_eq!( storage.to_string(), @@ -312,7 +289,6 @@ mod tests { true, false, Some("operator".into()), - None, ) .unwrap_err(); assert_eq!(group.kind(), io::ErrorKind::InvalidInput); @@ -324,15 +300,8 @@ mod tests { #[test] fn install_cli_rejects_host_options_for_installation_only() { - let storage = install_request( - release("stable"), - StorageChoice::Zfs, - false, - true, - None, - None, - ) - .unwrap_err(); + let storage = + install_request(release("stable"), StorageChoice::Zfs, false, true, None).unwrap_err(); assert_eq!(storage.kind(), io::ErrorKind::InvalidInput); assert_eq!( storage.to_string(), @@ -345,7 +314,6 @@ mod tests { false, true, Some("operator".into()), - None, ) .unwrap_err(); assert_eq!(group.kind(), io::ErrorKind::InvalidInput); @@ -357,15 +325,8 @@ mod tests { #[test] fn install_cli_builds_one_explicit_mode() { - let replacement = install_request( - release("1.2.3"), - StorageChoice::None, - true, - true, - None, - None, - ) - .unwrap(); + let replacement = + install_request(release("1.2.3"), StorageChoice::None, true, true, None).unwrap(); assert!(matches!(replacement.mode, InstallMode::InstallationOnly)); let host = install_request( @@ -374,7 +335,6 @@ mod tests { false, false, Some("operator".into()), - None, ) .unwrap(); assert!(matches!( diff --git a/core/docs/RELEASE.md b/core/docs/RELEASE.md index fa1cb0344f..c41f9a23eb 100644 --- a/core/docs/RELEASE.md +++ b/core/docs/RELEASE.md @@ -13,7 +13,7 @@ No `next` branch. Features and fixes both land on `main`. Beta is a tag. ## Cut a release -1. From `core/`, set `[workspace.package] version` in `Cargo.toml` to the version you will tag (`0.2.0` or `0.2.0-beta.1`). `check-release-tag.sh` rejects a tag if the Cargo version is missing or differs. +1. From `core/`, set `[workspace.package] version` in `Cargo.toml` to the version you will tag (`0.2.0` or `0.3.0-beta.1`). `check-release-tag.sh` rejects a tag if the Cargo version is missing or differs. 2. Merge that commit to `main`. 3. Tag and push: @@ -22,11 +22,13 @@ git tag v0.2.0 git push origin v0.2.0 ``` -Beta: `v0.2.0-beta.1` with Cargo version `0.2.0-beta.1`. `-rc` and every other suffix are rejected. +Beta: `v0.3.0-beta.1` with Cargo version `0.3.0-beta.1`. `-rc` and every other suffix are rejected. -4. Wait for the Release workflow. The tag run validates the tag and commit, builds the six CLI and daemon archives using the shared kache/R2 cache, and opens a **draft** GitHub release (`--prerelease` on beta tags). +4. Wait for the Release workflow. The tag run validates the tag and commit, builds the six CLI and daemon archives using the shared kache/R2 cache, builds and pushes `ghcr.io/getployz/ployz-cloud:`, and opens a **draft** GitHub release (`--prerelease` on beta tags) with `ployz-cloud-compose.yml` (pinned to the tag) and `ployz-cloud.env.example` attached for self-hosting. 5. Fill `## Notes`. Click **Publish**. That click is the review gate. Drafts are not public downloads. +The `ghcr.io/getployz/ployz-cloud:` image is pushed during the draft run and is pullable by exact tag before Publish; only Publish announces it and moves the channel pointers. + Automatic releases run the workflow version stored in the tagged commit. For recovery using the current workflow, dispatch `release.yml` from `main` with `tag` and its expected commit `sha`. Protected `main` pushes populate the shared R2 compiler cache through the checks selected for that change. Release archive checks run for packaging inputs and conservative full checks. Cloud reuses a native SDK and config WASM artifact only when their source-input hash matches exactly, and builds from source on a miss. These checks do not publish releases. Only protected `main` pushes receive R2 write credentials. PR, tag, release, scheduled, and manual runs use separate R2 read-only credentials. GitHub Actions variables `KACHE_S3_BUCKET`, `KACHE_S3_ENDPOINT`, and `KACHE_S3_REGION` select the bucket; secrets `KACHE_S3_ACCESS_KEY_ID` and `KACHE_S3_SECRET_ACCESS_KEY` provide write access. Create a separate R2 token with **Object Read only** permission scoped to the cache bucket, and store its credentials as `KACHE_S3_READ_ACCESS_KEY_ID` and `KACHE_S3_READ_SECRET_ACCESS_KEY`. Same-repository PRs reuse the shared cache with these read-only keys. Both credential pairs must be configured. GitHub does not expose these secrets to fork PRs. @@ -95,7 +97,6 @@ Homebrew, the CLI installer, and Machine installation copy one file. The iroh management transport is in-process in the CLI, the daemon, and every native SDK binding, so no helper is packaged and no extra systemd unit is installed. -Clients reach Machines through the self-hosted Ployz Relay at `relay.ployz.dev`, -an Uncloud service on the Hetzner host running the iroh relay release binary. It -is deployed separately from these releases; the hostname is a compiled constant -in `ployz-core`. +Clients reach Machines through the Ployz-hosted Ployz Relay at `relay.ployz.dev` +([relay/](../relay/README.md)). It is deployed separately from these releases; +the hostname is a compiled constant in `ployz-core`. diff --git a/core/relay/README.md b/core/relay/README.md index d56023d619..bea594d9fc 100644 --- a/core/relay/README.md +++ b/core/relay/README.md @@ -1,10 +1,9 @@ # Ployz Relay -The self-hosted [iroh relay](https://github.com/n0-computer/iroh/tree/main/iroh-relay) that -the management transport uses when a Machine sits behind NAT. It runs as one Uncloud service -on the Hetzner host behind Caddy at `https://relay.ployz.dev`, the compiled default relay URL -in the core crate. Access is open; the relay's per-client rate limits in `iroh-relay.toml` -are the abuse control. Add an allowlist only if abuse appears. +The Ployz-hosted [iroh relay](https://github.com/n0-computer/iroh/tree/main/iroh-relay) that +the management transport uses when a Machine sits behind NAT. It runs as one Compose service +behind Caddy at `https://relay.ployz.dev`, the compiled default relay URL in the core crate. +Access is open; the relay's per-client rate limits in `iroh-relay.toml` are the abuse control. Add an allowlist only if abuse appears. The image is pinned to `n0computer/iroh-relay:v1.2.0`, matching the iroh 1.2 dependency of the client and daemon crates. Bump both together. @@ -22,9 +21,8 @@ Point `relay.ployz.dev` at the host. Caddy obtains the certificate on first requ ## Deploy -```sh -uc deploy -f compose.yaml -``` +Deploy `compose.yaml` to the host; its `x-ports` entry publishes port 80 through Caddy, +which terminates TLS. Config changes: copy `iroh-relay.toml` to `/volumes/ployz-relay/` again and redeploy. diff --git a/core/relay/compose.yaml b/core/relay/compose.yaml index 05d2ed959d..9e278da799 100644 --- a/core/relay/compose.yaml +++ b/core/relay/compose.yaml @@ -1,5 +1,5 @@ # Ployz Relay: the self-hosted iroh relay for the management transport (relay.ployz.dev). -# Uncloud publishes port 80 through Caddy, which terminates TLS. See README.md. +# x-ports publishes port 80 through Caddy, which terminates TLS. See README.md. services: ployz-relay: image: n0computer/iroh-relay:v1.2.0 diff --git a/dashboard/CONTEXT.md b/dashboard/CONTEXT.md index fb0afcadbb..2f24e885e0 100644 --- a/dashboard/CONTEXT.md +++ b/dashboard/CONTEXT.md @@ -241,4 +241,4 @@ _Avoid_: Build log line, vertex, build stage (a Cloud Deployment Stage is not a Git repository identity and access are separate. Cloud can read a public GitHub repository anonymously or use an Organization member's connected GitHub App installation. Public access never falls back to installation credentials. Both paths pin a commit per Cloud Deployment Attempt and materialize it through the same source acquisition module. Automatic Git deployment and CI gating require installation access; public sources deploy manually. -Cloud infers deployment ordering from bound Service variable references in the frozen Attempt Target. Dependencies complete normal startup monitoring before dependent hooks and containers; explicitly configured HTTP health checks also gate unchanged dependencies. Edges within reference cycles are ignored, while dependencies entering or leaving those cycles remain. Literal text, self references, and references to empty Services do not impose ordering. This inference does not change explicit Compose dependency semantics. +Cloud infers deployment ordering from bound Service variable references in the frozen Attempt Target. Dependencies complete normal startup monitoring before dependent hooks and containers; explicitly configured HTTP health checks also gate unchanged dependencies. Edges within reference cycles are ignored, while dependencies entering or leaving those cycles remain. Literal text, self references, and references to empty Services do not impose ordering. diff --git a/dashboard/DESIGN.md b/dashboard/DESIGN.md index 2360cc048a..6fd2ded6a3 100644 --- a/dashboard/DESIGN.md +++ b/dashboard/DESIGN.md @@ -123,7 +123,7 @@ components: Ployz Cloud is a calm, precise lens over product context and core runtime truth. The interface stays visually quiet during normal operation, makes valid paths feel inevitable, and raises only the information that changes a decision. It never pretends Cloud is runtime authority: core testimony and bounded operations remain legible, including honest uncertainty when evidence is missing or stale. -This design system governs the authenticated product dashboard. The public marketing site is a separate brand surface and must not drive product density, component behavior, or visual hierarchy. Product UI is restrained rather than theatrical: familiar controls, compact information, progressive disclosure, and state transitions that explain what just changed. +This design system governs the authenticated product dashboard. The public `/` lander is a separate brand surface and must not drive product density, component behavior, or visual hierarchy. Product UI is restrained rather than theatrical: familiar controls, compact information, progressive disclosure, and state transitions that explain what just changed. This register defines the target state for the ongoing dashboard cleanup. Existing tokens and components may still use the previous accent until they are migrated; new and revised product UI should follow this system. diff --git a/dashboard/README.md b/dashboard/README.md index 33bbfcc2cd..0dbac765a0 100644 --- a/dashboard/README.md +++ b/dashboard/README.md @@ -1,12 +1,13 @@ # Ployz Dashboard -The hosted Ployz application: web UI, backend, durable workflows, and marketing. +Ployz Cloud: web UI, backend, and durable workflows. It authors each Deploy +Intent and drives Clusters through Machine RPC; it is not runtime authority. The deployment engine and SDK live in [core/](../core/README.md). ## Develop Run commands from `dashboard/`. Install Node and pnpm versions from `package.json`, -plus Rust and Go for the locally linked SDK (see [core](../core/README.md)). +plus Rust (rustup) for the locally linked SDK (see [core](../core/README.md)). ```sh pnpm install --frozen-lockfile @@ -26,10 +27,28 @@ Compose uses the stable project name `ployz-cloud` so moving the checkout keeps the same database volume. If an existing local stack uses another project name, retain it with `docker compose -p `. +## Environment + +Web and worker read the same variables and exit with a `ConfigError` naming +what is missing or invalid. + +| Variable | Required | Notes | +| --- | --- | --- | +| `DATABASE_URL` | yes | Postgres URL | +| `APP_URL` | yes | public URL of web | +| `BETTER_AUTH_SECRET` | yes | auth session secret | +| `APP_ENCRYPTION_SECRET` | yes | 32+ characters; encrypts stored credentials, keep it stable | +| `GITHUB_CLIENT_ID`, `GITHUB_CLIENT_SECRET` | yes | GitHub OAuth App (sign-in) | +| `GITHUB_APP_ID`, `GITHUB_APP_SLUG`, `GITHUB_APP_PRIVATE_KEY`, `GITHUB_APP_WEBHOOK_SECRET` | yes | GitHub App (repository access) | +| `INNGEST_EVENT_KEY`, `INNGEST_SIGNING_KEY` | yes | shared with the Inngest server | +| `INNGEST_BASE_URL`, `INNGEST_CONNECT_GATEWAY_URL` | no | Inngest API and Connect gateway; local dev defaults otherwise | +| `BETTER_AUTH_TRUSTED_ORIGINS`, `PORT` | no | `PORT` defaults to 3000 | +| `POLAR_ACCESS_TOKEN`, `POLAR_WEBHOOK_SECRET`, `POLAR_PRODUCT_ID`, `POLAR_SERVER` | no | all or none; none disables billing and every Organization is unlimited | + ## Build and deploy `pnpm build` compiles the native SDK and config WASM, then builds the web and -Connect worker into `.output/`. The root Dockerfile packages both in one image: +Connect worker into `.output/`. `Dockerfile.cloud` packages both in one image: | Process | Start command | Healthcheck | | --- | --- | --- | @@ -43,11 +62,8 @@ for the Inngest API and, for a self-hosted gateway, set The equivalent local dev defaults are ports 8288 and 8289. Use different `PORT` values when running both processes directly on the same host. -Connect registers the existing `ployz-cloud` functions automatically. Web no -longer exposes `/api/inngest` or performs HTTP function sync. Deploy worker code -independently of web-only changes. Publish the image once and point both services -at that image; do not rebuild the Railway-specific Dockerfile under another -service ID (its cache IDs belong to web). +Connect registers the `ployz-cloud` functions automatically; web exposes no +`/api/inngest` route. Both processes run the same image. On SIGTERM/SIGINT, Connect stops accepting new steps and finishes active steps before the worker disposes database and SDK resources. Set Railway worker @@ -56,13 +72,7 @@ on Docker use the corresponding `stop_grace_period`. This is a shutdown grace period, not a deployment execution timeout. A crash or forced kill can still leave remote effects unknown; interrupted deployment steps are not blindly retried. -For the initial HTTP-to-Connect cutover, pause new deployment admission operationally, -wait for active workflows to settle, and remove the old HTTP app registration in -Inngest before starting the Connect worker. Replace web with this version so no -old replica can re-sync the HTTP registration. Keep existing Inngest storage and -the `ployz-cloud` app/function IDs. Verify only the Connect registration is active -before allowing new deployments. Do not run HTTP and Connect registrations side -by side. Run migrations once before the rollout, not independently on each process. +Run migrations once before a rollout, not independently on each process. See [DESIGN.md](DESIGN.md) for product design and [CONTEXT.md](CONTEXT.md) for the Dashboard glossary. @@ -92,4 +102,86 @@ One-time setup: - Disable scheduled image auto updates: CI runs `railway redeploy --from-source` for both services after the image push. -The root `Dockerfile` remains the source-build path for self-hosting. +Each release tag also publishes `ghcr.io/getployz/ployz-cloud:` from the +same build, and attaches `ployz-cloud-compose.yml` (pinned to that tag) and +`ployz-cloud.env.example` to the GitHub release. + +## Self-host + +Self-hosted Cloud runs the released image as web and worker beside Inngest, +Redis, and Postgres ([`self-host/compose.yml`](self-host/compose.yml)). You bring +your own GitHub apps; billing is off, so Organizations are unlimited. The relay, +Hosted DNS, installer, and release binaries remain Ployz-hosted. + +``` +browser ──TLS proxy──► web :3000 ──┐ +GitHub webhooks ───────► web ├─► Postgres (ployz_cloud, inngest) + worker ◄───┤─► Inngest :8288 API / :8289 Connect ─► Redis +``` + +The image is `linux/amd64`. Put a TLS proxy in front of web's `WEB_PORT`; Inngest's +UI is bound to `127.0.0.1:8288` for operator use only. + +### 1. Create the GitHub apps + +Replace `https://cloud.example.com` with your `APP_URL`. + +**OAuth App** (sign-in) at GitHub → Settings → Developer settings → OAuth Apps: + +| Field | Value | +| --- | --- | +| Homepage URL | `https://cloud.example.com` | +| Authorization callback URL | `https://cloud.example.com/api/auth/callback/github` | + +Copy the Client ID to `GITHUB_CLIENT_ID` and a new client secret to `GITHUB_CLIENT_SECRET`. + +**GitHub App** (repository access) at GitHub → Settings → Developer settings → GitHub Apps +(or under your organization): + +| Field | Value | +| --- | --- | +| Homepage URL | `https://cloud.example.com` | +| Webhook URL | `https://cloud.example.com/api/github/webhook` (Active) | +| Webhook secret | `openssl rand -hex 32`, also `GITHUB_APP_WEBHOOK_SECRET` | +| Repository permissions | Contents: Read-only, Checks: Read-only, Metadata: Read-only | +| Subscribe to events | Push, Check suite | + +Installation events are delivered without subscribing. Copy the App ID to +`GITHUB_APP_ID`, the URL name from `github.com/apps/` to `GITHUB_APP_SLUG`, +and a generated private key (the whole PEM, quoted) to `GITHUB_APP_PRIVATE_KEY`. + +### 2. Configure and start + +Download `ployz-cloud-compose.yml` as `compose.yml` and `ployz-cloud.env.example` +as `.env` from the release into one directory, then fill in `.env`. Every +uncommented variable is required; web and worker exit with a +`ConfigError` if one is missing. +Leave all `POLAR_*` variables unset. + +```sh +docker compose run --rm web npm run db:migrate # explicit, once per install/upgrade +docker compose up -d +docker compose ps # worker turns healthy once Connected +``` + +Neither web nor worker migrates on boot. The worker's healthcheck is `/ready`: +200 while its Inngest Connect connection is active, 503 otherwise. It is not a +database, schema, or GitHub check. Compose gives the worker a 30-minute +`stop_grace_period` so active steps drain. + +### 3. Sign in, then install the GitHub App + +Sign in to Cloud with GitHub first, then install the GitHub App as that same +GitHub user (from Cloud or `github.com/apps/`). Installation webhooks are +only attached to a GitHub account already linked in Cloud. + +### Upgrade + +Replace `compose.yml` with the new release's asset (or bump +`PLOYZ_CLOUD_VERSION`), then: + +```sh +docker compose pull +docker compose run --rm web npm run db:migrate +docker compose up -d +``` diff --git a/dashboard/drizzle/20260907203809_baseline/snapshot.json b/dashboard/drizzle/20260907203809_baseline/snapshot.json deleted file mode 100644 index 1b885c5eb3..0000000000 --- a/dashboard/drizzle/20260907203809_baseline/snapshot.json +++ /dev/null @@ -1,10014 +0,0 @@ -{ - "version": "8", - "dialect": "postgres", - "id": "b2a70431-3047-4ee2-92e2-58db71000844", - "prevIds": [ - "00000000-0000-0000-0000-000000000000" - ], - "ddl": [ - { - "isRlsEnabled": false, - "name": "organization", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "account", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "invitation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "member", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "session", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "user", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "verification", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "project", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "user_project_preference", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_canvas_node_position", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_resource", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_variable_group", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "resource_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service_registry_credential", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable_group_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_event", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_saved_state_snapshot", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "core_operation_event", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "core_operation_watch", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_config_snapshot", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_config_snapshot_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_introduction", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_introduction_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_pairing", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "teardown_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "volume_remove_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "enrollment_allocation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "machine_enrollment_token", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "machine_remove_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_machine", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_branch_projection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_check_suite_projection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_environment_trigger", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_installation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_repository_cache", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_webhook_delivery", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_billing_state", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "waitlist", - "entityType": "tables", - "schema": "public" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logo", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "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": "organization" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "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": "account" - }, - { - "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": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "provider_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token_expires_at", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token_expires_at", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "password", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "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": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inviter_id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "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": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'member'", - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "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": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "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": "session" - }, - { - "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": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "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": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_slug", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ip_address", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_agent", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "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": "user" - }, - { - "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": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "email_verified", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "image", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "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": "verification" - }, - { - "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": "verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "identifier", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expires_at", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "namespace", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "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": "environment" - }, - { - "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": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "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": "project" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "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": "user_project_preference" - }, - { - "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": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_type", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "x", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "y", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "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": "environment_canvas_node_position" - }, - { - "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": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "implementation_type", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_group_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "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": "environment_resource" - }, - { - "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": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "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": "environment_variable_group" - }, - { - "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": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "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": "resource_lineage" - }, - { - "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": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_registry_credential", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_deployed_at", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "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": "service" - }, - { - "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": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "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": "service_lineage" - }, - { - "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": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_group_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "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": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "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": "variable_group_lineage" - }, - { - "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": "variable_group_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_value", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "trigger_origin", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "saved_state_snapshot_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_action_policy", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'queued'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "core_deploy_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_producers", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_manifest", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_preview", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "runtime_progress", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancellation_requested_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "dispatch_requested_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "progress", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "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": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_runtime_outcome", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actor_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volume_deletion_authorizations", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "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": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "watch_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_type", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "schema_version", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "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": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "operation_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expected_kind", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "start_sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "next_sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cursor_state", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "observation_state", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "observation_detail", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deadline_at", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "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": "core_operation_watch" - }, - { - "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": "core_operation_watch" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "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": "environment_node_config_snapshot" - }, - { - "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": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "snapshot_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "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": "environment_node_introduction" - }, - { - "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": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "authored_intent", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_pairing_secret", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_started_at", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_endpoints", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_public_key", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_claim_machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_connect_deployment_evaluated_at", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "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": "organization_pairing" - }, - { - "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": "organization_pairing" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "targets", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_resource_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_attempt_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volumes", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "assignments", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token_hash", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "created_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "missing_identities", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_capability", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "is_dial_entry", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "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": "organization_machine" - }, - { - "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": "organization_machine" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluated_head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluation_reason", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "evaluation_revision", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "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": "github_branch_projection" - }, - { - "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": "github_branch_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conclusion", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "transition_revision", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "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": "github_check_suite_projection" - }, - { - "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": "github_check_suite_projection" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "service_ids", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "selection_mode", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "branch_evaluation_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "trigger_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "publish_state", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "published_at", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "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": "github_environment_trigger" - }, - { - "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": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_login", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_type", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_avatar_url", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "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": "github_installation" - }, - { - "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": "github_installation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "full_name", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "default_branch", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "private", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "html_url", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repo_updated_at", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_kind", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'received'", - "generated": null, - "identity": null, - "name": "processing_state", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "branch_state", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_action", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_status", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_conclusion", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_run_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_started_at", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_subscription_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_plan", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "product_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "amount", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_period_start", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_period_end", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_active_subscription", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "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": "waitlist" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_user_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "provider_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "account_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_provider_account_idx", - "entityType": "indexes", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "email", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_email_idx", - "entityType": "indexes", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "session_user_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "identifier", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "verification_identifier_idx", - "entityType": "indexes", - "schema": "public", - "table": "verification" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_project_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "resource_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_resource_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "variable_group_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"implementation_type\" = 'variable_group'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_variable_group_variable_group_unique", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "variable_group_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_variable_group_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "variable_group_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "saved_state_snapshot_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_saved_state_snapshot_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" = 'queued'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_queued_target_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('planning','deploying')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_started_attempt_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_inngest_run_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_retry_of_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deployment_id", - "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": "environment_deployment_event_cursor_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_saved_state_snapshot_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "environment_saved_state_snapshot_environment_created_at_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_lineage_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_deployment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_lineage_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'environment'\n and \"environment_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_environment_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'project'\n and \"project_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_project_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'organization'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_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": "volume_remove_attempt_deployment_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_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": "volume_remove_attempt_resource_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_attempt_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"retry_of_attempt_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_retry_of_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('awaiting_deployment', 'pending', 'running')\n and \"environment_resource_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_one_active_resource_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "token_hash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_hash_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"state\" in ('pending', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_one_active_org_machine_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_machine_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"is_dial_entry\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_one_dial_entry_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "evaluated_head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_branch_projection_head_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_branch_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_head_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "updated_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"published_revision\" < \"transition_revision\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_unpublished_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "github_environment_trigger_environment_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "created_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"publish_state\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_environment_trigger_pending_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_installation_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_installation_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "full_name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_full_name_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processing_state", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "receipt_sequence", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_identity_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processing_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"processing_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_run_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "account_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": false, - "columns": [ - "inviter_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_inviter_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "session_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "organization_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_IqLeTQthFKCX_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "project_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_4ir4xbHMhQ0b_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_DP4bUoilqg6D_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_lineage_id_resource_lineage_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_nABwUGd5rp5C_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_krkfQwOLhWDI_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_zQ2aoOGRLIOR_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_s2Nqmux9EkpK_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "variable_group_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_variable_group_hiba8dNGKiwl_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_oOF37dttct8c_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "variable_group_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_variable_group_pbUjmr26aBQN_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_lineage_id_service_lineage_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_bvUAv6STak07_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_1xRYD1MXFhcT_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_registry_credential_service_id_service_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_service_id_service_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_variable_group_id_environment_variable_group_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_dFGv8UXjv6eg_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_AmBxCm84j9h8_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_group_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "variable_id" - ], - "schemaTo": "public", - "tableTo": "variable", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_fgbg4UfEzo6H_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "retry_of_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "NO ACTION", - "name": "environment_deployment_Lofdv4M9OTIQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "saved_state_snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_saved_state_snapshot", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_deployment_92k6WdAbc3AZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_event_nkhfxU66kCFO_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_secret_IIXCU5ibjYPq_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_QseWcaivJkoo_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_pYS3zmT4RKuQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "actor_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_saved_state_snapshot_actor_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "watch_id" - ], - "schemaTo": "public", - "tableTo": "core_operation_watch", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_event_watch_id_core_operation_watch_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_watch_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_3y0HYOFWmCwQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_CUaPaujMBOIs_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_D4DPm1gvv2Di_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_config_snapshot", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_secret_j5H7VPFuELrf_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_aSA9HOqVYGRT_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_YPW21fX4uIUZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_introduction", - "columnsTo": [ - "environment_id", - "node_type", - "node_id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_secret_sC7ALWFOnE38_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_pairing_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_pairing" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "teardown_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_2ncjupSSetid_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "retry_of_attempt_id" - ], - "schemaTo": "public", - "tableTo": "volume_remove_attempt", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_FQapB8QhQW1M_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "enrollment_allocation_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_enrollment_token_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": false, - "columns": [ - "created_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_enrollment_token_created_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_machine_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_branch_projection_Udo5xaDQmVxR_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_check_suite_projection_9FLSHaRf6WgI_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_environment_trigger_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "source_delivery_id", - "source_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_environment_trigger_dspFptTlur3h_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_installation_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_repository_cache_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_billing_state_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_billing_state" - }, - { - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_pkey", - "entityType": "pks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_secret_pkey", - "entityType": "pks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "columns": [ - "organization_id", - "cluster_key" - ], - "nameExplicit": false, - "name": "enrollment_allocation_pkey", - "entityType": "pks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "columns": [ - "organization_id", - "machine_id" - ], - "nameExplicit": false, - "name": "organization_machine_pkey", - "entityType": "pks", - "schema": "public", - "table": "organization_machine" - }, - { - "columns": [ - "installation_id", - "repository_id", - "ref" - ], - "nameExplicit": false, - "name": "github_branch_projection_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "columns": [ - "installation_id", - "repository_id", - "check_suite_id" - ], - "nameExplicit": false, - "name": "github_check_suite_projection_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "columns": [ - "user_id", - "installation_id", - "repository_id" - ], - "nameExplicit": false, - "name": "github_repository_cache_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_repository_cache" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "organization_pkey", - "schema": "public", - "table": "organization", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "account_pkey", - "schema": "public", - "table": "account", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "invitation_pkey", - "schema": "public", - "table": "invitation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "member_pkey", - "schema": "public", - "table": "member", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "session_pkey", - "schema": "public", - "table": "session", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_pkey", - "schema": "public", - "table": "user", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "verification_pkey", - "schema": "public", - "table": "verification", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_pkey", - "schema": "public", - "table": "environment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "project_pkey", - "schema": "public", - "table": "project", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_project_preference_pkey", - "schema": "public", - "table": "user_project_preference", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_canvas_node_position_pkey", - "schema": "public", - "table": "environment_canvas_node_position", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_resource_pkey", - "schema": "public", - "table": "environment_resource", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_variable_group_pkey", - "schema": "public", - "table": "environment_variable_group", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "resource_lineage_pkey", - "schema": "public", - "table": "resource_lineage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_pkey", - "schema": "public", - "table": "service", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_lineage_pkey", - "schema": "public", - "table": "service_lineage", - "entityType": "pks" - }, - { - "columns": [ - "service_id" - ], - "nameExplicit": false, - "name": "service_registry_credential_pkey", - "schema": "public", - "table": "service_registry_credential", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "variable_pkey", - "schema": "public", - "table": "variable", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "variable_group_lineage_pkey", - "schema": "public", - "table": "variable_group_lineage", - "entityType": "pks" - }, - { - "columns": [ - "variable_id" - ], - "nameExplicit": false, - "name": "variable_secret_pkey", - "schema": "public", - "table": "variable_secret", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_pkey", - "schema": "public", - "table": "environment_deployment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_event_pkey", - "schema": "public", - "table": "environment_deployment_event", - "entityType": "pks" - }, - { - "columns": [ - "environment_deployment_id" - ], - "nameExplicit": false, - "name": "environment_deployment_secret_pkey", - "schema": "public", - "table": "environment_deployment_secret", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_saved_state_snapshot_pkey", - "schema": "public", - "table": "environment_saved_state_snapshot", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_event_pkey", - "schema": "public", - "table": "core_operation_event", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_watch_pkey", - "schema": "public", - "table": "core_operation_watch", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_pkey", - "schema": "public", - "table": "environment_node_config_snapshot", - "entityType": "pks" - }, - { - "columns": [ - "snapshot_id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_secret_pkey", - "schema": "public", - "table": "environment_node_config_snapshot_secret", - "entityType": "pks" - }, - { - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_pairing_pkey", - "schema": "public", - "table": "organization_pairing", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "teardown_attempt_pkey", - "schema": "public", - "table": "teardown_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "volume_remove_attempt_pkey", - "schema": "public", - "table": "volume_remove_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_enrollment_token_pkey", - "schema": "public", - "table": "machine_enrollment_token", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_remove_attempt_pkey", - "schema": "public", - "table": "machine_remove_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_environment_trigger_pkey", - "schema": "public", - "table": "github_environment_trigger", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_installation_pkey", - "schema": "public", - "table": "github_installation", - "entityType": "pks" - }, - { - "columns": [ - "delivery_id" - ], - "nameExplicit": false, - "name": "github_webhook_delivery_pkey", - "schema": "public", - "table": "github_webhook_delivery", - "entityType": "pks" - }, - { - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_billing_state_pkey", - "schema": "public", - "table": "organization_billing_state", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "waitlist_pkey", - "schema": "public", - "table": "waitlist", - "entityType": "pks" - }, - { - "nameExplicit": false, - "columns": [ - "slug" - ], - "nullsNotDistinct": false, - "name": "organization_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "organization" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "organization_id" - ], - "nullsNotDistinct": false, - "name": "member_user_id_organization_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "token" - ], - "nullsNotDistinct": false, - "name": "session_token_unique", - "entityType": "uniques", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "user_email_unique", - "entityType": "uniques", - "schema": "public", - "table": "user" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "name" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_name_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "namespace" - ], - "nullsNotDistinct": false, - "name": "environment_organization_id_namespace_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "slug" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "id" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "project_id" - ], - "nullsNotDistinct": false, - "name": "user_project_preference_user_id_project_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "resource_type", - "resource_id" - ], - "nullsNotDistinct": false, - "name": "environment_canvas_node_position_environment_id_resource_type_resource_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_variable_group_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_variable_group_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "environment_variable_group_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "variable_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "variable_group_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "variable_group_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_saved_state_snapshot_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "watch_id", - "sequence" - ], - "nullsNotDistinct": false, - "name": "core_operation_event_watch_id_sequence_unique", - "entityType": "uniques", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "operation_id" - ], - "nullsNotDistinct": false, - "name": "core_operation_watch_organization_id_operation_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "core_operation_watch" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id", - "node_type", - "node_id" - ], - "nullsNotDistinct": false, - "name": "environment_node_config_snapshot_environment_deployment_id_node_type_node_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "installation_id", - "repository_id", - "ref", - "branch_evaluation_revision", - "environment_id" - ], - "nullsNotDistinct": false, - "name": "github_environment_trigger_installation_id_repository_id_ref_branch_evaluation_revision_environment_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "installation_id" - ], - "nullsNotDistinct": false, - "name": "github_installation_user_id_installation_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": false, - "columns": [ - "delivery_id", - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_delivery_id_receipt_sequence_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": false, - "columns": [ - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_receipt_sequence_key", - "schema": "public", - "table": "github_webhook_delivery", - "entityType": "uniques" - }, - { - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "waitlist_email_key", - "schema": "public", - "table": "waitlist", - "entityType": "uniques" - }, - { - "value": "\"implementation_type\" in ('variable_group', 'volume')", - "name": "environment_resource_implementation_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "(\"implementation_type\" != 'variable_group' or \"variable_group_id\" is not null)", - "name": "environment_resource_variable_group_reference_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "(\"implementation_type\" != 'volume' or \"variable_group_id\" is null)", - "name": "environment_resource_volume_no_variable_group_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "service_registry_credential_nonempty_check", - "entityType": "checks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "value": "num_nonnulls(\"service_id\", \"variable_group_id\") = 1", - "name": "variable_owner_check", - "entityType": "checks", - "schema": "public", - "table": "variable" - }, - { - "value": "(\n (\"status\" = 'cancelled' and \"cancellation_requested_at\" is not null and \"finished_at\" is not null)\n or (\"status\" <> 'cancelled')\n )", - "name": "environment_deployment_cancellation_shape_check", - "entityType": "checks", - "schema": "public", - "table": "environment_deployment" - }, - { - "value": "\"expected_kind\" in ('deploy','cert','machine_add','machine_update','machine_lifecycle','core_replace','credential_grant','network_repair','service_restart','managed_dns_reconcile','ingress_configure','ingress_refresh','namespace_remove','volume_create','volume_remove')", - "name": "core_operation_watch_expected_kind_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"cursor_state\" in ('more','caught_up','terminal')", - "name": "core_operation_watch_cursor_state_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"observation_state\" in ('active','core_terminal','cloud_timeout','cloud_cancelled')", - "name": "core_operation_watch_observation_state_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"node_type\" in ('service', 'variable_group', 'volume')", - "name": "environment_node_config_snapshot_node_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "environment_node_config_snapshot_secret_nonempty_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "value": "\"node_type\" in ('service', 'variable_group', 'volume')", - "name": "environment_node_introduction_node_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "value": "\n (\"removal_started_at\" is null and \"removal_endpoints\" is null)\n or (\"removal_started_at\" is not null and \"removal_endpoints\" is not null and jsonb_typeof(\"removal_endpoints\") = 'array')\n ", - "name": "organization_pairing_removal_shape_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_public_key\" is not null or \"founder_machine_id\" is not null", - "name": "organization_pairing_state_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_claim_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_claim_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_machine_id\" is null or \"founder_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"scope\" in ('environment','project','organization')", - "name": "teardown_attempt_scope_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "\"status\" in ('pending','running','completed','partial','failed','cancelled')", - "name": "teardown_attempt_status_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "(\n (\"scope\" = 'environment' and \"environment_id\" is not null\n and \"project_id\" is not null)\n or (\"scope\" = 'project' and \"project_id\" is not null\n and \"environment_id\" is null)\n or (\"scope\" = 'organization' and \"project_id\" is null\n and \"environment_id\" is null)\n )", - "name": "teardown_attempt_scope_ids_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "teardown_attempt_confirm_data_loss_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "jsonb_typeof(\"targets\") = 'object'", - "name": "teardown_attempt_targets_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "(\n (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_message\" is null)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n )", - "name": "teardown_attempt_status_shape_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "\"status\" in ('awaiting_deployment','pending','running','unknown','completed','partial','failed','cancelled')", - "name": "volume_remove_attempt_status_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "jsonb_typeof(\"volumes\") = 'array'\n and jsonb_array_length(\"volumes\") >= 1", - "name": "volume_remove_attempt_volumes_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "(\n (\"status\" = 'awaiting_deployment'\n and \"environment_deployment_id\" is not null\n and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'unknown' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"started_at\" is null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000\n and (\n (\"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255)\n or (\"inngest_run_id\" is null\n and \"environment_deployment_id\" is not null)\n ))\n )", - "name": "volume_remove_attempt_status_shape_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "enrollment_allocation_cluster_key_check", - "entityType": "checks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "value": "jsonb_typeof(\"assignments\") = 'array'", - "name": "enrollment_allocation_assignments_check", - "entityType": "checks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "value": "\"token_hash\" ~ '^[0-9a-f]{64}$'", - "name": "machine_enrollment_token_hash_check", - "entityType": "checks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "value": "length(\"machine_id\") between 1 and 64 and \"machine_id\" !~ '[[:cntrl:]]'", - "name": "machine_remove_attempt_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "machine_remove_attempt_confirm_data_loss_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "\"state\" in ('pending','running','succeeded','failed','cancelled','missing_identities')", - "name": "machine_remove_attempt_state_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "(\n (\"state\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'succeeded' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" in ('failed','cancelled')\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is not null and \"failure_message\" is not null\n and \"failure_code\" ~ '^[a-z][a-z0-9_]{0,63}$'\n and length(\"failure_message\") between 1 and 1024\n and \"missing_identities\" is null)\n or (\"state\" = 'missing_identities'\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and jsonb_typeof(\"missing_identities\") = 'array'\n and jsonb_array_length(\"missing_identities\") > 0)\n )", - "name": "machine_remove_attempt_state_shape_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "organization_machine_cluster_key_check", - "entityType": "checks", - "schema": "public", - "table": "organization_machine" - }, - { - "value": "\"machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_machine_id_format_check", - "entityType": "checks", - "schema": "public", - "table": "organization_machine" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"last_receipt_sequence\" > 0 and \"evaluation_revision\" > 0", - "name": "github_branch_projection_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_branch_projection_ref_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"state\" in ('active','deleted')", - "name": "github_branch_projection_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"evaluation_reason\" in ('first_observation','changed_paths','rebaseline_all_services','branch_deleted')", - "name": "github_branch_projection_evaluation_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "(\n (\"state\" = 'active' and \"evaluated_head_sha\" ~ '^[0-9a-f]{40}$' and \"evaluation_reason\" != 'branch_deleted')\n or (\"state\" = 'deleted' and \"evaluated_head_sha\" is null and \"evaluation_reason\" = 'branch_deleted')\n )", - "name": "github_branch_projection_head_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"check_suite_id\" > 0 and \"last_receipt_sequence\" > 0", - "name": "github_check_suite_projection_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_check_suite_projection_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_check_suite_projection_status_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"conclusion\" is null or \"conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_check_suite_projection_conclusion_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"transition_revision\" >= 1 and \"published_revision\" >= 0 and \"published_revision\" <= \"transition_revision\"", - "name": "github_check_suite_projection_revision_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"source_receipt_sequence\" > 0 and \"branch_evaluation_revision\" > 0", - "name": "github_environment_trigger_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_environment_trigger_ref_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_environment_trigger_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "cardinality(\"service_ids\") > 0 and array_position(\"service_ids\", null) is null", - "name": "github_environment_trigger_service_ids_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"selection_mode\" in ('paths','all_services')", - "name": "github_environment_trigger_selection_mode_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"reason\" in ('first_observation','changed_paths','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline')", - "name": "github_environment_trigger_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "(\n (\"selection_mode\" = 'paths' and \"reason\" = 'changed_paths')\n or (\"selection_mode\" = 'all_services' and \"reason\" in ('first_observation','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline'))\n )", - "name": "github_environment_trigger_selection_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"trigger_revision\" = \"branch_evaluation_revision\" and \"published_revision\" >= 0 and \"published_revision\" <= \"trigger_revision\"", - "name": "github_environment_trigger_publish_revision_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "(\n (\"publish_state\" = 'pending' and \"published_revision\" < \"trigger_revision\" and \"published_at\" is null)\n or (\"publish_state\" = 'published' and \"published_revision\" = \"trigger_revision\" and \"published_at\" is not null)\n )", - "name": "github_environment_trigger_publish_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "length(trim(\"delivery_id\")) > 0 and \"receipt_sequence\" > 0 and (\"installation_id\" is null or \"installation_id\" > 0) and (\"repository_id\" is null or \"repository_id\" > 0) and (\"check_suite_id\" is null or \"check_suite_id\" > 0)", - "name": "github_webhook_delivery_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"event_kind\" in ('push','check_suite')", - "name": "github_webhook_delivery_event_kind_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"processing_state\" in ('received','processing','processed','rejected','failed','cancelled')", - "name": "github_webhook_delivery_processing_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"outcome\" is null or \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service','malformed','identity_unresolved','unsupported_action','processing_failed','cancelled')", - "name": "github_webhook_delivery_outcome_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"branch_state\" is null or \"branch_state\" in ('active','deleted')", - "name": "github_webhook_delivery_branch_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"failure_code\" is null or \"failure_code\" in ('malformed_payload','identity_unresolved','unsupported_action','observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error','inngest_cancelled')", - "name": "github_webhook_delivery_failure_code_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_action\" is null or \"check_suite_action\" in ('requested','rerequested','completed')", - "name": "github_webhook_delivery_check_suite_action_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_status\" is null or \"check_suite_status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_webhook_delivery_check_suite_status_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_conclusion\" is null or \"check_suite_conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_webhook_delivery_check_suite_conclusion_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"head_sha\" is null or \"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_webhook_delivery_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n (\"processing_state\" = 'received' and \"processing_run_id\" is null and \"processing_started_at\" is null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processing' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service') and \"failure_code\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'rejected' and (\n (\"outcome\" = 'malformed' and \"failure_code\" = 'malformed_payload')\n or (\"outcome\" = 'identity_unresolved' and \"failure_code\" = 'identity_unresolved')\n or (\"outcome\" = 'unsupported_action' and \"failure_code\" = 'unsupported_action')\n ) and \"processing_run_id\" is null and \"processing_started_at\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'failed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'processing_failed' and \"failure_code\" in ('observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error') and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'cancelled' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'cancelled' and \"failure_code\" = 'inngest_cancelled' and \"processed_at\" is not null)\n )", - "name": "github_webhook_delivery_processing_evidence_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"processing_state\" not in ('processing','processed','failed','cancelled')\n or (\n \"installation_id\" is not null\n and \"repository_id\" is not null\n and (\n (\n \"event_kind\" = 'push'\n and \"ref\" is not null\n and \"ref\" like 'refs/heads/%'\n and \"branch_state\" is not null\n and \"check_suite_id\" is null\n and \"check_suite_action\" is null\n and \"check_suite_status\" is null\n and \"check_suite_conclusion\" is null\n and (\n (\"branch_state\" = 'active' and \"head_sha\" is not null)\n or (\"branch_state\" = 'deleted' and \"head_sha\" is null)\n )\n )\n or (\n \"event_kind\" = 'check_suite'\n and \"branch_state\" is null\n and \"head_sha\" is not null\n and \"check_suite_id\" is not null\n and \"check_suite_action\" is not null\n and \"check_suite_status\" is not null\n )\n )\n )\n )", - "name": "github_webhook_delivery_processed_summary_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"outcome\" not in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged')\n or (\"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services') and \"event_kind\" = 'push')\n or (\"outcome\" in ('check_suite_projected','check_suite_unchanged') and \"event_kind\" = 'check_suite')\n )", - "name": "github_webhook_delivery_outcome_kind_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"has_active_subscription\" = false\n OR (\n \"active_subscription_id\" IS NOT NULL\n AND \"current_plan\" IS NOT NULL\n AND \"product_id\" IS NOT NULL\n AND \"amount\" IS NOT NULL\n AND \"currency\" IS NOT NULL\n AND \"current_period_start\" IS NOT NULL\n AND \"current_period_end\" IS NOT NULL\n )\n )", - "name": "organization_billing_state_active_fields_check", - "entityType": "checks", - "schema": "public", - "table": "organization_billing_state" - }, - { - "value": "\"current_plan\" IS NULL OR \"current_plan\" IN ('free', 'solo', 'teams', 'hobby', 'pro')", - "name": "organization_billing_state_current_plan_check", - "entityType": "checks", - "schema": "public", - "table": "organization_billing_state" - } - ], - "renames": [] -} diff --git a/dashboard/drizzle/20260919230158_messy_mongu/migration.sql b/dashboard/drizzle/20260919230158_messy_mongu/migration.sql deleted file mode 100644 index 9070da6eb3..0000000000 --- a/dashboard/drizzle/20260919230158_messy_mongu/migration.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE "session" ADD COLUMN "sidebar_open" boolean DEFAULT true NOT NULL; \ No newline at end of file diff --git a/dashboard/drizzle/20260919230158_messy_mongu/snapshot.json b/dashboard/drizzle/20260919230158_messy_mongu/snapshot.json deleted file mode 100644 index 949fe335ec..0000000000 --- a/dashboard/drizzle/20260919230158_messy_mongu/snapshot.json +++ /dev/null @@ -1,10027 +0,0 @@ -{ - "version": "8", - "dialect": "postgres", - "id": "83b65c8e-b957-44d5-bf7c-e79ddcf6a4d7", - "prevIds": [ - "fc69f626-1cd2-4b2d-9951-1a379b86508b" - ], - "ddl": [ - { - "isRlsEnabled": false, - "name": "organization", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "account", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "invitation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "member", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "session", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "user", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "verification", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "project", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "user_project_preference", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_canvas_node_position", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_resource", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_variable_group", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "resource_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service_registry_credential", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable_group_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_event", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_saved_state_snapshot", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "core_operation_event", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "core_operation_watch", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_config_snapshot", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_config_snapshot_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_introduction", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_introduction_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_pairing", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "teardown_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "volume_remove_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "enrollment_allocation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "machine_enrollment_token", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "machine_remove_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_machine", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_branch_projection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_check_suite_projection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_environment_trigger", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_installation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_repository_cache", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_webhook_delivery", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_billing_state", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "waitlist", - "entityType": "tables", - "schema": "public" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logo", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "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": "organization" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "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": "account" - }, - { - "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": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "provider_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token_expires_at", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token_expires_at", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "password", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "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": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inviter_id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "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": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'member'", - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "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": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "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": "session" - }, - { - "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": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "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": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_slug", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "sidebar_open", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ip_address", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_agent", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "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": "user" - }, - { - "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": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "email_verified", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "image", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "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": "verification" - }, - { - "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": "verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "identifier", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expires_at", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "namespace", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "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": "environment" - }, - { - "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": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "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": "project" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "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": "user_project_preference" - }, - { - "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": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_type", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "x", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "y", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "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": "environment_canvas_node_position" - }, - { - "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": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "implementation_type", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_group_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "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": "environment_resource" - }, - { - "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": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "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": "environment_variable_group" - }, - { - "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": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "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": "resource_lineage" - }, - { - "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": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_registry_credential", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_deployed_at", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "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": "service" - }, - { - "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": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "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": "service_lineage" - }, - { - "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": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_group_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "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": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "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": "variable_group_lineage" - }, - { - "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": "variable_group_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_value", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "trigger_origin", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "saved_state_snapshot_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_action_policy", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'queued'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "core_deploy_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_producers", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_manifest", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_preview", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "runtime_progress", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancellation_requested_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "dispatch_requested_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "progress", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "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": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_runtime_outcome", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actor_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volume_deletion_authorizations", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "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": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "watch_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_type", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "schema_version", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "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": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "operation_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expected_kind", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "start_sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "next_sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cursor_state", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "observation_state", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "observation_detail", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deadline_at", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "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": "core_operation_watch" - }, - { - "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": "core_operation_watch" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "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": "environment_node_config_snapshot" - }, - { - "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": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "snapshot_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "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": "environment_node_introduction" - }, - { - "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": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "authored_intent", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_pairing_secret", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_started_at", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_endpoints", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_public_key", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_claim_machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_connect_deployment_evaluated_at", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "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": "organization_pairing" - }, - { - "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": "organization_pairing" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "targets", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_resource_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_attempt_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volumes", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "assignments", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token_hash", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "created_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "missing_identities", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_tailcat", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "is_dial_entry", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "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": "organization_machine" - }, - { - "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": "organization_machine" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluated_head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluation_reason", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "evaluation_revision", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "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": "github_branch_projection" - }, - { - "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": "github_branch_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conclusion", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "transition_revision", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "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": "github_check_suite_projection" - }, - { - "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": "github_check_suite_projection" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "service_ids", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "selection_mode", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "branch_evaluation_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "trigger_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "publish_state", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "published_at", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "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": "github_environment_trigger" - }, - { - "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": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_login", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_type", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_avatar_url", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "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": "github_installation" - }, - { - "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": "github_installation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "full_name", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "default_branch", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "private", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "html_url", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repo_updated_at", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_kind", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'received'", - "generated": null, - "identity": null, - "name": "processing_state", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "branch_state", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_action", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_status", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_conclusion", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_run_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_started_at", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_subscription_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_plan", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "product_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "amount", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_period_start", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_period_end", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_active_subscription", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "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": "waitlist" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_user_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "provider_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "account_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_provider_account_idx", - "entityType": "indexes", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "email", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_email_idx", - "entityType": "indexes", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "session_user_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "identifier", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "verification_identifier_idx", - "entityType": "indexes", - "schema": "public", - "table": "verification" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_project_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "resource_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_resource_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "variable_group_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"implementation_type\" = 'variable_group'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_variable_group_variable_group_unique", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "variable_group_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_variable_group_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "variable_group_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "saved_state_snapshot_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_saved_state_snapshot_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" = 'queued'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_queued_target_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('planning','deploying')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_started_attempt_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_inngest_run_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_retry_of_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deployment_id", - "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": "environment_deployment_event_cursor_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_saved_state_snapshot_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "environment_saved_state_snapshot_environment_created_at_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_lineage_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_deployment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_lineage_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'environment'\n and \"environment_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_environment_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'project'\n and \"project_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_project_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'organization'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_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": "volume_remove_attempt_deployment_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_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": "volume_remove_attempt_resource_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_attempt_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"retry_of_attempt_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_retry_of_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('awaiting_deployment', 'pending', 'running')\n and \"environment_resource_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_one_active_resource_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "token_hash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_hash_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"state\" in ('pending', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_one_active_org_machine_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_machine_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"is_dial_entry\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_one_dial_entry_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "evaluated_head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_branch_projection_head_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_branch_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_head_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "updated_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"published_revision\" < \"transition_revision\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_unpublished_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "github_environment_trigger_environment_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "created_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"publish_state\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_environment_trigger_pending_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_installation_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_installation_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "full_name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_full_name_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processing_state", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "receipt_sequence", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_identity_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processing_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"processing_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_run_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "account_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": false, - "columns": [ - "inviter_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_inviter_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "session_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "organization_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_IqLeTQthFKCX_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "project_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_4ir4xbHMhQ0b_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_DP4bUoilqg6D_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_lineage_id_resource_lineage_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_nABwUGd5rp5C_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_krkfQwOLhWDI_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_zQ2aoOGRLIOR_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_s2Nqmux9EkpK_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "variable_group_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_variable_group_hiba8dNGKiwl_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_oOF37dttct8c_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "variable_group_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_variable_group_pbUjmr26aBQN_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_lineage_id_service_lineage_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_bvUAv6STak07_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_1xRYD1MXFhcT_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_registry_credential_service_id_service_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_service_id_service_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_variable_group_id_environment_variable_group_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_dFGv8UXjv6eg_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_AmBxCm84j9h8_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_group_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "variable_id" - ], - "schemaTo": "public", - "tableTo": "variable", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_fgbg4UfEzo6H_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "retry_of_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "NO ACTION", - "name": "environment_deployment_Lofdv4M9OTIQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "saved_state_snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_saved_state_snapshot", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_deployment_92k6WdAbc3AZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_event_nkhfxU66kCFO_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_secret_IIXCU5ibjYPq_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_QseWcaivJkoo_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_pYS3zmT4RKuQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "actor_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_saved_state_snapshot_actor_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "watch_id" - ], - "schemaTo": "public", - "tableTo": "core_operation_watch", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_event_watch_id_core_operation_watch_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_watch_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_3y0HYOFWmCwQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_CUaPaujMBOIs_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_D4DPm1gvv2Di_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_config_snapshot", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_secret_j5H7VPFuELrf_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_aSA9HOqVYGRT_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_YPW21fX4uIUZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_introduction", - "columnsTo": [ - "environment_id", - "node_type", - "node_id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_secret_sC7ALWFOnE38_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_pairing_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_pairing" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "teardown_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_2ncjupSSetid_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "retry_of_attempt_id" - ], - "schemaTo": "public", - "tableTo": "volume_remove_attempt", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_FQapB8QhQW1M_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "enrollment_allocation_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_enrollment_token_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": false, - "columns": [ - "created_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_enrollment_token_created_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_machine_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_branch_projection_Udo5xaDQmVxR_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_check_suite_projection_9FLSHaRf6WgI_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_environment_trigger_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "source_delivery_id", - "source_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_environment_trigger_dspFptTlur3h_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_installation_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_repository_cache_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_billing_state_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_billing_state" - }, - { - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_pkey", - "entityType": "pks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_secret_pkey", - "entityType": "pks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "columns": [ - "organization_id", - "cluster_key" - ], - "nameExplicit": false, - "name": "enrollment_allocation_pkey", - "entityType": "pks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "columns": [ - "organization_id", - "machine_id" - ], - "nameExplicit": false, - "name": "organization_machine_pkey", - "entityType": "pks", - "schema": "public", - "table": "organization_machine" - }, - { - "columns": [ - "installation_id", - "repository_id", - "ref" - ], - "nameExplicit": false, - "name": "github_branch_projection_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "columns": [ - "installation_id", - "repository_id", - "check_suite_id" - ], - "nameExplicit": false, - "name": "github_check_suite_projection_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "columns": [ - "user_id", - "installation_id", - "repository_id" - ], - "nameExplicit": false, - "name": "github_repository_cache_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_repository_cache" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "organization_pkey", - "schema": "public", - "table": "organization", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "account_pkey", - "schema": "public", - "table": "account", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "invitation_pkey", - "schema": "public", - "table": "invitation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "member_pkey", - "schema": "public", - "table": "member", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "session_pkey", - "schema": "public", - "table": "session", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_pkey", - "schema": "public", - "table": "user", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "verification_pkey", - "schema": "public", - "table": "verification", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_pkey", - "schema": "public", - "table": "environment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "project_pkey", - "schema": "public", - "table": "project", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_project_preference_pkey", - "schema": "public", - "table": "user_project_preference", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_canvas_node_position_pkey", - "schema": "public", - "table": "environment_canvas_node_position", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_resource_pkey", - "schema": "public", - "table": "environment_resource", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_variable_group_pkey", - "schema": "public", - "table": "environment_variable_group", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "resource_lineage_pkey", - "schema": "public", - "table": "resource_lineage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_pkey", - "schema": "public", - "table": "service", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_lineage_pkey", - "schema": "public", - "table": "service_lineage", - "entityType": "pks" - }, - { - "columns": [ - "service_id" - ], - "nameExplicit": false, - "name": "service_registry_credential_pkey", - "schema": "public", - "table": "service_registry_credential", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "variable_pkey", - "schema": "public", - "table": "variable", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "variable_group_lineage_pkey", - "schema": "public", - "table": "variable_group_lineage", - "entityType": "pks" - }, - { - "columns": [ - "variable_id" - ], - "nameExplicit": false, - "name": "variable_secret_pkey", - "schema": "public", - "table": "variable_secret", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_pkey", - "schema": "public", - "table": "environment_deployment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_event_pkey", - "schema": "public", - "table": "environment_deployment_event", - "entityType": "pks" - }, - { - "columns": [ - "environment_deployment_id" - ], - "nameExplicit": false, - "name": "environment_deployment_secret_pkey", - "schema": "public", - "table": "environment_deployment_secret", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_saved_state_snapshot_pkey", - "schema": "public", - "table": "environment_saved_state_snapshot", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_event_pkey", - "schema": "public", - "table": "core_operation_event", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_watch_pkey", - "schema": "public", - "table": "core_operation_watch", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_pkey", - "schema": "public", - "table": "environment_node_config_snapshot", - "entityType": "pks" - }, - { - "columns": [ - "snapshot_id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_secret_pkey", - "schema": "public", - "table": "environment_node_config_snapshot_secret", - "entityType": "pks" - }, - { - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_pairing_pkey", - "schema": "public", - "table": "organization_pairing", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "teardown_attempt_pkey", - "schema": "public", - "table": "teardown_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "volume_remove_attempt_pkey", - "schema": "public", - "table": "volume_remove_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_enrollment_token_pkey", - "schema": "public", - "table": "machine_enrollment_token", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_remove_attempt_pkey", - "schema": "public", - "table": "machine_remove_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_environment_trigger_pkey", - "schema": "public", - "table": "github_environment_trigger", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_installation_pkey", - "schema": "public", - "table": "github_installation", - "entityType": "pks" - }, - { - "columns": [ - "delivery_id" - ], - "nameExplicit": false, - "name": "github_webhook_delivery_pkey", - "schema": "public", - "table": "github_webhook_delivery", - "entityType": "pks" - }, - { - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_billing_state_pkey", - "schema": "public", - "table": "organization_billing_state", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "waitlist_pkey", - "schema": "public", - "table": "waitlist", - "entityType": "pks" - }, - { - "nameExplicit": false, - "columns": [ - "slug" - ], - "nullsNotDistinct": false, - "name": "organization_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "organization" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "organization_id" - ], - "nullsNotDistinct": false, - "name": "member_user_id_organization_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "token" - ], - "nullsNotDistinct": false, - "name": "session_token_unique", - "entityType": "uniques", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "user_email_unique", - "entityType": "uniques", - "schema": "public", - "table": "user" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "name" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_name_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "namespace" - ], - "nullsNotDistinct": false, - "name": "environment_organization_id_namespace_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "slug" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "id" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "project_id" - ], - "nullsNotDistinct": false, - "name": "user_project_preference_user_id_project_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "resource_type", - "resource_id" - ], - "nullsNotDistinct": false, - "name": "environment_canvas_node_position_environment_id_resource_type_resource_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_variable_group_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_variable_group_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "environment_variable_group_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "variable_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "variable_group_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "variable_group_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_saved_state_snapshot_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "watch_id", - "sequence" - ], - "nullsNotDistinct": false, - "name": "core_operation_event_watch_id_sequence_unique", - "entityType": "uniques", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "operation_id" - ], - "nullsNotDistinct": false, - "name": "core_operation_watch_organization_id_operation_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "core_operation_watch" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id", - "node_type", - "node_id" - ], - "nullsNotDistinct": false, - "name": "environment_node_config_snapshot_environment_deployment_id_node_type_node_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "installation_id", - "repository_id", - "ref", - "branch_evaluation_revision", - "environment_id" - ], - "nullsNotDistinct": false, - "name": "github_environment_trigger_installation_id_repository_id_ref_branch_evaluation_revision_environment_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "installation_id" - ], - "nullsNotDistinct": false, - "name": "github_installation_user_id_installation_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": false, - "columns": [ - "delivery_id", - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_delivery_id_receipt_sequence_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": false, - "columns": [ - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_receipt_sequence_key", - "schema": "public", - "table": "github_webhook_delivery", - "entityType": "uniques" - }, - { - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "waitlist_email_key", - "schema": "public", - "table": "waitlist", - "entityType": "uniques" - }, - { - "value": "\"implementation_type\" in ('variable_group', 'volume')", - "name": "environment_resource_implementation_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "(\"implementation_type\" != 'variable_group' or \"variable_group_id\" is not null)", - "name": "environment_resource_variable_group_reference_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "(\"implementation_type\" != 'volume' or \"variable_group_id\" is null)", - "name": "environment_resource_volume_no_variable_group_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "service_registry_credential_nonempty_check", - "entityType": "checks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "value": "num_nonnulls(\"service_id\", \"variable_group_id\") = 1", - "name": "variable_owner_check", - "entityType": "checks", - "schema": "public", - "table": "variable" - }, - { - "value": "(\n (\"status\" = 'cancelled' and \"cancellation_requested_at\" is not null and \"finished_at\" is not null)\n or (\"status\" <> 'cancelled')\n )", - "name": "environment_deployment_cancellation_shape_check", - "entityType": "checks", - "schema": "public", - "table": "environment_deployment" - }, - { - "value": "\"expected_kind\" in ('deploy','cert','machine_add','machine_update','machine_lifecycle','core_replace','credential_grant','network_repair','service_restart','managed_dns_reconcile','ingress_configure','ingress_refresh','namespace_remove','volume_create','volume_remove')", - "name": "core_operation_watch_expected_kind_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"cursor_state\" in ('more','caught_up','terminal')", - "name": "core_operation_watch_cursor_state_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"observation_state\" in ('active','core_terminal','cloud_timeout','cloud_cancelled')", - "name": "core_operation_watch_observation_state_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"node_type\" in ('service', 'variable_group', 'volume')", - "name": "environment_node_config_snapshot_node_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "environment_node_config_snapshot_secret_nonempty_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "value": "\"node_type\" in ('service', 'variable_group', 'volume')", - "name": "environment_node_introduction_node_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "value": "\n (\"removal_started_at\" is null and \"removal_endpoints\" is null)\n or (\"removal_started_at\" is not null and \"removal_endpoints\" is not null and jsonb_typeof(\"removal_endpoints\") = 'array')\n ", - "name": "organization_pairing_removal_shape_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_public_key\" is not null or \"founder_machine_id\" is not null", - "name": "organization_pairing_state_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_claim_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_claim_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_machine_id\" is null or \"founder_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"scope\" in ('environment','project','organization')", - "name": "teardown_attempt_scope_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "\"status\" in ('pending','running','completed','partial','failed','cancelled')", - "name": "teardown_attempt_status_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "(\n (\"scope\" = 'environment' and \"environment_id\" is not null\n and \"project_id\" is not null)\n or (\"scope\" = 'project' and \"project_id\" is not null\n and \"environment_id\" is null)\n or (\"scope\" = 'organization' and \"project_id\" is null\n and \"environment_id\" is null)\n )", - "name": "teardown_attempt_scope_ids_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "teardown_attempt_confirm_data_loss_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "jsonb_typeof(\"targets\") = 'object'", - "name": "teardown_attempt_targets_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "(\n (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_message\" is null)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n )", - "name": "teardown_attempt_status_shape_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "\"status\" in ('awaiting_deployment','pending','running','unknown','completed','partial','failed','cancelled')", - "name": "volume_remove_attempt_status_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "jsonb_typeof(\"volumes\") = 'array'\n and jsonb_array_length(\"volumes\") >= 1", - "name": "volume_remove_attempt_volumes_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "(\n (\"status\" = 'awaiting_deployment'\n and \"environment_deployment_id\" is not null\n and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'unknown' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"started_at\" is null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000\n and (\n (\"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255)\n or (\"inngest_run_id\" is null\n and \"environment_deployment_id\" is not null)\n ))\n )", - "name": "volume_remove_attempt_status_shape_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "enrollment_allocation_cluster_key_check", - "entityType": "checks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "value": "jsonb_typeof(\"assignments\") = 'array'", - "name": "enrollment_allocation_assignments_check", - "entityType": "checks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "value": "\"token_hash\" ~ '^[0-9a-f]{64}$'", - "name": "machine_enrollment_token_hash_check", - "entityType": "checks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "value": "length(\"machine_id\") between 1 and 64 and \"machine_id\" !~ '[[:cntrl:]]'", - "name": "machine_remove_attempt_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "machine_remove_attempt_confirm_data_loss_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "\"state\" in ('pending','running','succeeded','failed','cancelled','missing_identities')", - "name": "machine_remove_attempt_state_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "(\n (\"state\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'succeeded' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" in ('failed','cancelled')\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is not null and \"failure_message\" is not null\n and \"failure_code\" ~ '^[a-z][a-z0-9_]{0,63}$'\n and length(\"failure_message\") between 1 and 1024\n and \"missing_identities\" is null)\n or (\"state\" = 'missing_identities'\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and jsonb_typeof(\"missing_identities\") = 'array'\n and jsonb_array_length(\"missing_identities\") > 0)\n )", - "name": "machine_remove_attempt_state_shape_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "organization_machine_cluster_key_check", - "entityType": "checks", - "schema": "public", - "table": "organization_machine" - }, - { - "value": "\"machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_machine_id_format_check", - "entityType": "checks", - "schema": "public", - "table": "organization_machine" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"last_receipt_sequence\" > 0 and \"evaluation_revision\" > 0", - "name": "github_branch_projection_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_branch_projection_ref_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"state\" in ('active','deleted')", - "name": "github_branch_projection_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"evaluation_reason\" in ('first_observation','changed_paths','rebaseline_all_services','branch_deleted')", - "name": "github_branch_projection_evaluation_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "(\n (\"state\" = 'active' and \"evaluated_head_sha\" ~ '^[0-9a-f]{40}$' and \"evaluation_reason\" != 'branch_deleted')\n or (\"state\" = 'deleted' and \"evaluated_head_sha\" is null and \"evaluation_reason\" = 'branch_deleted')\n )", - "name": "github_branch_projection_head_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"check_suite_id\" > 0 and \"last_receipt_sequence\" > 0", - "name": "github_check_suite_projection_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_check_suite_projection_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_check_suite_projection_status_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"conclusion\" is null or \"conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_check_suite_projection_conclusion_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"transition_revision\" >= 1 and \"published_revision\" >= 0 and \"published_revision\" <= \"transition_revision\"", - "name": "github_check_suite_projection_revision_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"source_receipt_sequence\" > 0 and \"branch_evaluation_revision\" > 0", - "name": "github_environment_trigger_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_environment_trigger_ref_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_environment_trigger_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "cardinality(\"service_ids\") > 0 and array_position(\"service_ids\", null) is null", - "name": "github_environment_trigger_service_ids_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"selection_mode\" in ('paths','all_services')", - "name": "github_environment_trigger_selection_mode_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"reason\" in ('first_observation','changed_paths','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline')", - "name": "github_environment_trigger_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "(\n (\"selection_mode\" = 'paths' and \"reason\" = 'changed_paths')\n or (\"selection_mode\" = 'all_services' and \"reason\" in ('first_observation','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline'))\n )", - "name": "github_environment_trigger_selection_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"trigger_revision\" = \"branch_evaluation_revision\" and \"published_revision\" >= 0 and \"published_revision\" <= \"trigger_revision\"", - "name": "github_environment_trigger_publish_revision_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "(\n (\"publish_state\" = 'pending' and \"published_revision\" < \"trigger_revision\" and \"published_at\" is null)\n or (\"publish_state\" = 'published' and \"published_revision\" = \"trigger_revision\" and \"published_at\" is not null)\n )", - "name": "github_environment_trigger_publish_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "length(trim(\"delivery_id\")) > 0 and \"receipt_sequence\" > 0 and (\"installation_id\" is null or \"installation_id\" > 0) and (\"repository_id\" is null or \"repository_id\" > 0) and (\"check_suite_id\" is null or \"check_suite_id\" > 0)", - "name": "github_webhook_delivery_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"event_kind\" in ('push','check_suite')", - "name": "github_webhook_delivery_event_kind_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"processing_state\" in ('received','processing','processed','rejected','failed','cancelled')", - "name": "github_webhook_delivery_processing_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"outcome\" is null or \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service','malformed','identity_unresolved','unsupported_action','processing_failed','cancelled')", - "name": "github_webhook_delivery_outcome_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"branch_state\" is null or \"branch_state\" in ('active','deleted')", - "name": "github_webhook_delivery_branch_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"failure_code\" is null or \"failure_code\" in ('malformed_payload','identity_unresolved','unsupported_action','observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error','inngest_cancelled')", - "name": "github_webhook_delivery_failure_code_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_action\" is null or \"check_suite_action\" in ('requested','rerequested','completed')", - "name": "github_webhook_delivery_check_suite_action_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_status\" is null or \"check_suite_status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_webhook_delivery_check_suite_status_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_conclusion\" is null or \"check_suite_conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_webhook_delivery_check_suite_conclusion_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"head_sha\" is null or \"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_webhook_delivery_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n (\"processing_state\" = 'received' and \"processing_run_id\" is null and \"processing_started_at\" is null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processing' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service') and \"failure_code\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'rejected' and (\n (\"outcome\" = 'malformed' and \"failure_code\" = 'malformed_payload')\n or (\"outcome\" = 'identity_unresolved' and \"failure_code\" = 'identity_unresolved')\n or (\"outcome\" = 'unsupported_action' and \"failure_code\" = 'unsupported_action')\n ) and \"processing_run_id\" is null and \"processing_started_at\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'failed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'processing_failed' and \"failure_code\" in ('observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error') and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'cancelled' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'cancelled' and \"failure_code\" = 'inngest_cancelled' and \"processed_at\" is not null)\n )", - "name": "github_webhook_delivery_processing_evidence_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"processing_state\" not in ('processing','processed','failed','cancelled')\n or (\n \"installation_id\" is not null\n and \"repository_id\" is not null\n and (\n (\n \"event_kind\" = 'push'\n and \"ref\" is not null\n and \"ref\" like 'refs/heads/%'\n and \"branch_state\" is not null\n and \"check_suite_id\" is null\n and \"check_suite_action\" is null\n and \"check_suite_status\" is null\n and \"check_suite_conclusion\" is null\n and (\n (\"branch_state\" = 'active' and \"head_sha\" is not null)\n or (\"branch_state\" = 'deleted' and \"head_sha\" is null)\n )\n )\n or (\n \"event_kind\" = 'check_suite'\n and \"branch_state\" is null\n and \"head_sha\" is not null\n and \"check_suite_id\" is not null\n and \"check_suite_action\" is not null\n and \"check_suite_status\" is not null\n )\n )\n )\n )", - "name": "github_webhook_delivery_processed_summary_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"outcome\" not in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged')\n or (\"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services') and \"event_kind\" = 'push')\n or (\"outcome\" in ('check_suite_projected','check_suite_unchanged') and \"event_kind\" = 'check_suite')\n )", - "name": "github_webhook_delivery_outcome_kind_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"has_active_subscription\" = false\n OR (\n \"active_subscription_id\" IS NOT NULL\n AND \"current_plan\" IS NOT NULL\n AND \"product_id\" IS NOT NULL\n AND \"amount\" IS NOT NULL\n AND \"currency\" IS NOT NULL\n AND \"current_period_start\" IS NOT NULL\n AND \"current_period_end\" IS NOT NULL\n )\n )", - "name": "organization_billing_state_active_fields_check", - "entityType": "checks", - "schema": "public", - "table": "organization_billing_state" - }, - { - "value": "\"current_plan\" IS NULL OR \"current_plan\" IN ('free', 'solo', 'teams', 'hobby', 'pro')", - "name": "organization_billing_state_current_plan_check", - "entityType": "checks", - "schema": "public", - "table": "organization_billing_state" - } - ], - "renames": [] -} \ No newline at end of file diff --git a/dashboard/drizzle/20260920050124_greedy_gertrude_yorkes/migration.sql b/dashboard/drizzle/20260920050124_greedy_gertrude_yorkes/migration.sql deleted file mode 100644 index c7b39f7139..0000000000 --- a/dashboard/drizzle/20260920050124_greedy_gertrude_yorkes/migration.sql +++ /dev/null @@ -1,36 +0,0 @@ -ALTER TABLE "service" ADD COLUMN "name" text;--> statement-breakpoint -ALTER TABLE "service" ADD COLUMN "policy" jsonb DEFAULT '{"autoDeploy":true,"waitForCi":false,"watchPaths":[],"imageUpdate":{"type":"off"}}' NOT NULL;--> statement-breakpoint -ALTER TABLE "service_registry_credential" ADD COLUMN "revision" uuid DEFAULT gen_random_uuid() NOT NULL;--> statement-breakpoint -ALTER TABLE "environment_node_config_snapshot_secret" ADD COLUMN "credential_revision" uuid; ---> statement-breakpoint -UPDATE service s SET name = COALESCE( - (SELECT node->'config'->>'name' FROM environment e, jsonb_array_elements(e.intent->'services') node - WHERE e.id = s.environment_id AND node->>'id' = s.id::text), - (SELECT canonical_name FROM service_lineage WHERE id = s.lineage_id) -);--> statement-breakpoint -ALTER TABLE service ALTER COLUMN name SET NOT NULL;--> statement-breakpoint -UPDATE service s SET policy = jsonb_build_object( - 'autoDeploy', COALESCE(node->'config'->'source'->'autoDeploy', 'true'::jsonb), - 'waitForCi', COALESCE(node->'config'->'source'->'waitForCi', 'false'::jsonb), - 'watchPaths', COALESCE(node->'config'->'build'->'watchPaths', '[]'::jsonb), - 'imageUpdate', COALESCE(node->'config'->'source'->'autoUpdate', '{"type":"off"}'::jsonb) -) FROM environment e, LATERAL jsonb_array_elements(e.intent->'services') node -WHERE e.id = s.environment_id AND node->>'id' = s.id::text;--> statement-breakpoint -CREATE FUNCTION pg_temp.service_configuration(config jsonb, service_id text) RETURNS jsonb LANGUAGE sql AS $$ - SELECT (config - 'name') || jsonb_build_object( - 'source', ((config->'source') - 'autoDeploy' - 'waitForCi' - 'autoUpdate') || - CASE WHEN config->'source'->'credentials'->>'type' = 'configured' - THEN jsonb_build_object('credentials', jsonb_build_object('type','configured','credentialId',service_id)) ELSE '{}'::jsonb END, - 'build', COALESCE((config->'build') - 'watchPaths', '{"builder":"railpack","dockerfilePath":null}'::jsonb) - ); -$$;--> statement-breakpoint -CREATE FUNCTION pg_temp.environment_configuration(intent jsonb) RETURNS jsonb LANGUAGE sql AS $$ - SELECT jsonb_set(intent, '{services}', COALESCE((SELECT jsonb_agg( - (node - 'encryptedRegistryUsername' - 'encryptedRegistrySecret') || jsonb_build_object('config', pg_temp.service_configuration(node->'config',node->>'id')) ORDER BY ordinal) - FROM jsonb_array_elements(intent->'services') WITH ORDINALITY AS nodes(node,ordinal)), '[]'::jsonb)); -$$;--> statement-breakpoint -UPDATE environment SET intent = pg_temp.environment_configuration(intent), revision = gen_random_uuid();--> statement-breakpoint -UPDATE environment_saved_state_snapshot SET intent = pg_temp.environment_configuration(intent);--> statement-breakpoint -UPDATE environment_node_introduction SET config = pg_temp.service_configuration(config,node_id::text) WHERE node_type = 'service';--> statement-breakpoint -UPDATE environment_node_config_snapshot SET config = pg_temp.service_configuration(config,node_id::text) WHERE node_type = 'service';--> statement-breakpoint -UPDATE environment_node_introduction_secret SET authored_intent = pg_temp.environment_configuration(authored_intent); diff --git a/dashboard/drizzle/20260920050124_greedy_gertrude_yorkes/snapshot.json b/dashboard/drizzle/20260920050124_greedy_gertrude_yorkes/snapshot.json deleted file mode 100644 index 99fb485533..0000000000 --- a/dashboard/drizzle/20260920050124_greedy_gertrude_yorkes/snapshot.json +++ /dev/null @@ -1,10079 +0,0 @@ -{ - "version": "8", - "dialect": "postgres", - "id": "390ba3a9-7564-4527-924e-de761761e516", - "prevIds": [ - "83b65c8e-b957-44d5-bf7c-e79ddcf6a4d7" - ], - "ddl": [ - { - "isRlsEnabled": false, - "name": "organization", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "account", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "invitation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "member", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "session", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "user", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "verification", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "project", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "user_project_preference", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_canvas_node_position", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_resource", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_variable_group", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "resource_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service_registry_credential", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable_group_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_event", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_saved_state_snapshot", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "core_operation_event", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "core_operation_watch", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_config_snapshot", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_config_snapshot_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_introduction", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_introduction_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_pairing", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "teardown_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "volume_remove_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "enrollment_allocation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "machine_enrollment_token", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "machine_remove_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_machine", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_branch_projection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_check_suite_projection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_environment_trigger", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_installation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_repository_cache", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_webhook_delivery", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_billing_state", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "waitlist", - "entityType": "tables", - "schema": "public" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logo", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "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": "organization" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "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": "account" - }, - { - "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": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "provider_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token_expires_at", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token_expires_at", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "password", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "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": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inviter_id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "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": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'member'", - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "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": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "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": "session" - }, - { - "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": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "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": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_slug", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "sidebar_open", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ip_address", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_agent", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "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": "user" - }, - { - "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": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "email_verified", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "image", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "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": "verification" - }, - { - "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": "verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "identifier", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expires_at", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "namespace", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "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": "environment" - }, - { - "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": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "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": "project" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "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": "user_project_preference" - }, - { - "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": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_type", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "x", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "y", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "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": "environment_canvas_node_position" - }, - { - "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": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "implementation_type", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_group_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "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": "environment_resource" - }, - { - "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": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "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": "environment_variable_group" - }, - { - "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": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "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": "resource_lineage" - }, - { - "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": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"autoDeploy\":true,\"waitForCi\":false,\"watchPaths\":[],\"imageUpdate\":{\"type\":\"off\"}}'", - "generated": null, - "identity": null, - "name": "policy", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_registry_credential", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_deployed_at", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "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": "service" - }, - { - "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": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "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": "service_lineage" - }, - { - "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": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_group_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "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": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "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": "variable_group_lineage" - }, - { - "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": "variable_group_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_value", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "trigger_origin", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "saved_state_snapshot_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_action_policy", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'queued'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "core_deploy_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_producers", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_manifest", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_preview", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "runtime_progress", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancellation_requested_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "dispatch_requested_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "progress", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "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": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_runtime_outcome", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actor_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volume_deletion_authorizations", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "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": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "watch_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_type", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "schema_version", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "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": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "operation_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expected_kind", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "start_sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "next_sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cursor_state", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "observation_state", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "observation_detail", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deadline_at", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "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": "core_operation_watch" - }, - { - "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": "core_operation_watch" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "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": "environment_node_config_snapshot" - }, - { - "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": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "credential_revision", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "snapshot_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "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": "environment_node_introduction" - }, - { - "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": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "authored_intent", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_pairing_secret", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_started_at", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_endpoints", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_public_key", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_claim_machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_connect_deployment_evaluated_at", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "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": "organization_pairing" - }, - { - "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": "organization_pairing" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "targets", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_resource_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_attempt_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volumes", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "assignments", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token_hash", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "created_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "missing_identities", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_tailcat", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "is_dial_entry", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "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": "organization_machine" - }, - { - "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": "organization_machine" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluated_head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluation_reason", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "evaluation_revision", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "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": "github_branch_projection" - }, - { - "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": "github_branch_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conclusion", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "transition_revision", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "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": "github_check_suite_projection" - }, - { - "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": "github_check_suite_projection" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "service_ids", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "selection_mode", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "branch_evaluation_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "trigger_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "publish_state", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "published_at", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "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": "github_environment_trigger" - }, - { - "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": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_login", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_type", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_avatar_url", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "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": "github_installation" - }, - { - "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": "github_installation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "full_name", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "default_branch", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "private", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "html_url", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repo_updated_at", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_kind", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'received'", - "generated": null, - "identity": null, - "name": "processing_state", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "branch_state", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_action", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_status", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_conclusion", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_run_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_started_at", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_subscription_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_plan", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "product_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "amount", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_period_start", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_period_end", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_active_subscription", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "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": "waitlist" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_user_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "provider_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "account_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_provider_account_idx", - "entityType": "indexes", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "email", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_email_idx", - "entityType": "indexes", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "session_user_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "identifier", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "verification_identifier_idx", - "entityType": "indexes", - "schema": "public", - "table": "verification" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_project_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "resource_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_resource_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "variable_group_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"implementation_type\" = 'variable_group'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_variable_group_variable_group_unique", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "variable_group_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_variable_group_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "variable_group_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "saved_state_snapshot_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_saved_state_snapshot_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" = 'queued'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_queued_target_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('planning','deploying')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_started_attempt_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_inngest_run_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_retry_of_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deployment_id", - "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": "environment_deployment_event_cursor_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_saved_state_snapshot_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "environment_saved_state_snapshot_environment_created_at_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_lineage_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_deployment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_lineage_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'environment'\n and \"environment_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_environment_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'project'\n and \"project_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_project_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'organization'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_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": "volume_remove_attempt_deployment_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_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": "volume_remove_attempt_resource_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_attempt_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"retry_of_attempt_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_retry_of_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('awaiting_deployment', 'pending', 'running')\n and \"environment_resource_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_one_active_resource_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "token_hash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_hash_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"state\" in ('pending', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_one_active_org_machine_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_machine_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"is_dial_entry\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_one_dial_entry_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "evaluated_head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_branch_projection_head_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_branch_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_head_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "updated_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"published_revision\" < \"transition_revision\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_unpublished_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "github_environment_trigger_environment_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "created_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"publish_state\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_environment_trigger_pending_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_installation_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_installation_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "full_name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_full_name_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processing_state", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "receipt_sequence", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_identity_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processing_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"processing_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_run_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "account_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": false, - "columns": [ - "inviter_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_inviter_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "session_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "organization_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_IqLeTQthFKCX_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "project_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_4ir4xbHMhQ0b_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_DP4bUoilqg6D_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_lineage_id_resource_lineage_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_nABwUGd5rp5C_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_krkfQwOLhWDI_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_zQ2aoOGRLIOR_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_s2Nqmux9EkpK_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "variable_group_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_variable_group_hiba8dNGKiwl_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_oOF37dttct8c_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "variable_group_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_variable_group_pbUjmr26aBQN_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_lineage_id_service_lineage_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_bvUAv6STak07_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_1xRYD1MXFhcT_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_registry_credential_service_id_service_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_service_id_service_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_variable_group_id_environment_variable_group_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_dFGv8UXjv6eg_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_AmBxCm84j9h8_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_group_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "variable_id" - ], - "schemaTo": "public", - "tableTo": "variable", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_fgbg4UfEzo6H_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "retry_of_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "NO ACTION", - "name": "environment_deployment_Lofdv4M9OTIQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "saved_state_snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_saved_state_snapshot", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_deployment_92k6WdAbc3AZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_event_nkhfxU66kCFO_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_secret_IIXCU5ibjYPq_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_QseWcaivJkoo_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_pYS3zmT4RKuQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "actor_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_saved_state_snapshot_actor_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "watch_id" - ], - "schemaTo": "public", - "tableTo": "core_operation_watch", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_event_watch_id_core_operation_watch_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_watch_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_3y0HYOFWmCwQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_CUaPaujMBOIs_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_D4DPm1gvv2Di_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_config_snapshot", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_secret_j5H7VPFuELrf_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_aSA9HOqVYGRT_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_YPW21fX4uIUZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_introduction", - "columnsTo": [ - "environment_id", - "node_type", - "node_id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_secret_sC7ALWFOnE38_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_pairing_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_pairing" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "teardown_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_2ncjupSSetid_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "retry_of_attempt_id" - ], - "schemaTo": "public", - "tableTo": "volume_remove_attempt", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_FQapB8QhQW1M_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "enrollment_allocation_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_enrollment_token_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": false, - "columns": [ - "created_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_enrollment_token_created_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_machine_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_branch_projection_Udo5xaDQmVxR_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_check_suite_projection_9FLSHaRf6WgI_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_environment_trigger_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "source_delivery_id", - "source_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_environment_trigger_dspFptTlur3h_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_installation_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_repository_cache_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_billing_state_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_billing_state" - }, - { - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_pkey", - "entityType": "pks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_secret_pkey", - "entityType": "pks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "columns": [ - "organization_id", - "cluster_key" - ], - "nameExplicit": false, - "name": "enrollment_allocation_pkey", - "entityType": "pks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "columns": [ - "organization_id", - "machine_id" - ], - "nameExplicit": false, - "name": "organization_machine_pkey", - "entityType": "pks", - "schema": "public", - "table": "organization_machine" - }, - { - "columns": [ - "installation_id", - "repository_id", - "ref" - ], - "nameExplicit": false, - "name": "github_branch_projection_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "columns": [ - "installation_id", - "repository_id", - "check_suite_id" - ], - "nameExplicit": false, - "name": "github_check_suite_projection_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "columns": [ - "user_id", - "installation_id", - "repository_id" - ], - "nameExplicit": false, - "name": "github_repository_cache_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_repository_cache" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "organization_pkey", - "schema": "public", - "table": "organization", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "account_pkey", - "schema": "public", - "table": "account", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "invitation_pkey", - "schema": "public", - "table": "invitation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "member_pkey", - "schema": "public", - "table": "member", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "session_pkey", - "schema": "public", - "table": "session", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_pkey", - "schema": "public", - "table": "user", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "verification_pkey", - "schema": "public", - "table": "verification", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_pkey", - "schema": "public", - "table": "environment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "project_pkey", - "schema": "public", - "table": "project", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_project_preference_pkey", - "schema": "public", - "table": "user_project_preference", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_canvas_node_position_pkey", - "schema": "public", - "table": "environment_canvas_node_position", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_resource_pkey", - "schema": "public", - "table": "environment_resource", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_variable_group_pkey", - "schema": "public", - "table": "environment_variable_group", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "resource_lineage_pkey", - "schema": "public", - "table": "resource_lineage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_pkey", - "schema": "public", - "table": "service", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_lineage_pkey", - "schema": "public", - "table": "service_lineage", - "entityType": "pks" - }, - { - "columns": [ - "service_id" - ], - "nameExplicit": false, - "name": "service_registry_credential_pkey", - "schema": "public", - "table": "service_registry_credential", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "variable_pkey", - "schema": "public", - "table": "variable", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "variable_group_lineage_pkey", - "schema": "public", - "table": "variable_group_lineage", - "entityType": "pks" - }, - { - "columns": [ - "variable_id" - ], - "nameExplicit": false, - "name": "variable_secret_pkey", - "schema": "public", - "table": "variable_secret", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_pkey", - "schema": "public", - "table": "environment_deployment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_event_pkey", - "schema": "public", - "table": "environment_deployment_event", - "entityType": "pks" - }, - { - "columns": [ - "environment_deployment_id" - ], - "nameExplicit": false, - "name": "environment_deployment_secret_pkey", - "schema": "public", - "table": "environment_deployment_secret", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_saved_state_snapshot_pkey", - "schema": "public", - "table": "environment_saved_state_snapshot", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_event_pkey", - "schema": "public", - "table": "core_operation_event", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_watch_pkey", - "schema": "public", - "table": "core_operation_watch", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_pkey", - "schema": "public", - "table": "environment_node_config_snapshot", - "entityType": "pks" - }, - { - "columns": [ - "snapshot_id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_secret_pkey", - "schema": "public", - "table": "environment_node_config_snapshot_secret", - "entityType": "pks" - }, - { - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_pairing_pkey", - "schema": "public", - "table": "organization_pairing", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "teardown_attempt_pkey", - "schema": "public", - "table": "teardown_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "volume_remove_attempt_pkey", - "schema": "public", - "table": "volume_remove_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_enrollment_token_pkey", - "schema": "public", - "table": "machine_enrollment_token", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_remove_attempt_pkey", - "schema": "public", - "table": "machine_remove_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_environment_trigger_pkey", - "schema": "public", - "table": "github_environment_trigger", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_installation_pkey", - "schema": "public", - "table": "github_installation", - "entityType": "pks" - }, - { - "columns": [ - "delivery_id" - ], - "nameExplicit": false, - "name": "github_webhook_delivery_pkey", - "schema": "public", - "table": "github_webhook_delivery", - "entityType": "pks" - }, - { - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_billing_state_pkey", - "schema": "public", - "table": "organization_billing_state", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "waitlist_pkey", - "schema": "public", - "table": "waitlist", - "entityType": "pks" - }, - { - "nameExplicit": false, - "columns": [ - "slug" - ], - "nullsNotDistinct": false, - "name": "organization_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "organization" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "organization_id" - ], - "nullsNotDistinct": false, - "name": "member_user_id_organization_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "token" - ], - "nullsNotDistinct": false, - "name": "session_token_unique", - "entityType": "uniques", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "user_email_unique", - "entityType": "uniques", - "schema": "public", - "table": "user" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "name" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_name_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "namespace" - ], - "nullsNotDistinct": false, - "name": "environment_organization_id_namespace_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "slug" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "id" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "project_id" - ], - "nullsNotDistinct": false, - "name": "user_project_preference_user_id_project_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "resource_type", - "resource_id" - ], - "nullsNotDistinct": false, - "name": "environment_canvas_node_position_environment_id_resource_type_resource_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_variable_group_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_variable_group_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "environment_variable_group_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "variable_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "variable_group_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "variable_group_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_saved_state_snapshot_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "watch_id", - "sequence" - ], - "nullsNotDistinct": false, - "name": "core_operation_event_watch_id_sequence_unique", - "entityType": "uniques", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "operation_id" - ], - "nullsNotDistinct": false, - "name": "core_operation_watch_organization_id_operation_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "core_operation_watch" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id", - "node_type", - "node_id" - ], - "nullsNotDistinct": false, - "name": "environment_node_config_snapshot_environment_deployment_id_node_type_node_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "installation_id", - "repository_id", - "ref", - "branch_evaluation_revision", - "environment_id" - ], - "nullsNotDistinct": false, - "name": "github_environment_trigger_installation_id_repository_id_ref_branch_evaluation_revision_environment_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "installation_id" - ], - "nullsNotDistinct": false, - "name": "github_installation_user_id_installation_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": false, - "columns": [ - "delivery_id", - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_delivery_id_receipt_sequence_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": false, - "columns": [ - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_receipt_sequence_key", - "schema": "public", - "table": "github_webhook_delivery", - "entityType": "uniques" - }, - { - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "waitlist_email_key", - "schema": "public", - "table": "waitlist", - "entityType": "uniques" - }, - { - "value": "\"implementation_type\" in ('variable_group', 'volume')", - "name": "environment_resource_implementation_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "(\"implementation_type\" != 'variable_group' or \"variable_group_id\" is not null)", - "name": "environment_resource_variable_group_reference_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "(\"implementation_type\" != 'volume' or \"variable_group_id\" is null)", - "name": "environment_resource_volume_no_variable_group_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "service_registry_credential_nonempty_check", - "entityType": "checks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "value": "num_nonnulls(\"service_id\", \"variable_group_id\") = 1", - "name": "variable_owner_check", - "entityType": "checks", - "schema": "public", - "table": "variable" - }, - { - "value": "(\n (\"status\" = 'cancelled' and \"cancellation_requested_at\" is not null and \"finished_at\" is not null)\n or (\"status\" <> 'cancelled')\n )", - "name": "environment_deployment_cancellation_shape_check", - "entityType": "checks", - "schema": "public", - "table": "environment_deployment" - }, - { - "value": "\"expected_kind\" in ('deploy','cert','machine_add','machine_update','machine_lifecycle','core_replace','credential_grant','network_repair','service_restart','managed_dns_reconcile','ingress_configure','ingress_refresh','namespace_remove','volume_create','volume_remove')", - "name": "core_operation_watch_expected_kind_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"cursor_state\" in ('more','caught_up','terminal')", - "name": "core_operation_watch_cursor_state_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"observation_state\" in ('active','core_terminal','cloud_timeout','cloud_cancelled')", - "name": "core_operation_watch_observation_state_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"node_type\" in ('service', 'variable_group', 'volume')", - "name": "environment_node_config_snapshot_node_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "environment_node_config_snapshot_secret_nonempty_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "value": "\"node_type\" in ('service', 'variable_group', 'volume')", - "name": "environment_node_introduction_node_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "value": "\n (\"removal_started_at\" is null and \"removal_endpoints\" is null)\n or (\"removal_started_at\" is not null and \"removal_endpoints\" is not null and jsonb_typeof(\"removal_endpoints\") = 'array')\n ", - "name": "organization_pairing_removal_shape_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_public_key\" is not null or \"founder_machine_id\" is not null", - "name": "organization_pairing_state_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_claim_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_claim_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_machine_id\" is null or \"founder_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"scope\" in ('environment','project','organization')", - "name": "teardown_attempt_scope_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "\"status\" in ('pending','running','completed','partial','failed','cancelled')", - "name": "teardown_attempt_status_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "(\n (\"scope\" = 'environment' and \"environment_id\" is not null\n and \"project_id\" is not null)\n or (\"scope\" = 'project' and \"project_id\" is not null\n and \"environment_id\" is null)\n or (\"scope\" = 'organization' and \"project_id\" is null\n and \"environment_id\" is null)\n )", - "name": "teardown_attempt_scope_ids_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "teardown_attempt_confirm_data_loss_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "jsonb_typeof(\"targets\") = 'object'", - "name": "teardown_attempt_targets_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "(\n (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_message\" is null)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n )", - "name": "teardown_attempt_status_shape_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "\"status\" in ('awaiting_deployment','pending','running','unknown','completed','partial','failed','cancelled')", - "name": "volume_remove_attempt_status_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "jsonb_typeof(\"volumes\") = 'array'\n and jsonb_array_length(\"volumes\") >= 1", - "name": "volume_remove_attempt_volumes_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "(\n (\"status\" = 'awaiting_deployment'\n and \"environment_deployment_id\" is not null\n and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'unknown' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"started_at\" is null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000\n and (\n (\"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255)\n or (\"inngest_run_id\" is null\n and \"environment_deployment_id\" is not null)\n ))\n )", - "name": "volume_remove_attempt_status_shape_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "enrollment_allocation_cluster_key_check", - "entityType": "checks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "value": "jsonb_typeof(\"assignments\") = 'array'", - "name": "enrollment_allocation_assignments_check", - "entityType": "checks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "value": "\"token_hash\" ~ '^[0-9a-f]{64}$'", - "name": "machine_enrollment_token_hash_check", - "entityType": "checks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "value": "length(\"machine_id\") between 1 and 64 and \"machine_id\" !~ '[[:cntrl:]]'", - "name": "machine_remove_attempt_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "machine_remove_attempt_confirm_data_loss_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "\"state\" in ('pending','running','succeeded','failed','cancelled','missing_identities')", - "name": "machine_remove_attempt_state_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "(\n (\"state\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'succeeded' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" in ('failed','cancelled')\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is not null and \"failure_message\" is not null\n and \"failure_code\" ~ '^[a-z][a-z0-9_]{0,63}$'\n and length(\"failure_message\") between 1 and 1024\n and \"missing_identities\" is null)\n or (\"state\" = 'missing_identities'\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and jsonb_typeof(\"missing_identities\") = 'array'\n and jsonb_array_length(\"missing_identities\") > 0)\n )", - "name": "machine_remove_attempt_state_shape_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "organization_machine_cluster_key_check", - "entityType": "checks", - "schema": "public", - "table": "organization_machine" - }, - { - "value": "\"machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_machine_id_format_check", - "entityType": "checks", - "schema": "public", - "table": "organization_machine" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"last_receipt_sequence\" > 0 and \"evaluation_revision\" > 0", - "name": "github_branch_projection_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_branch_projection_ref_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"state\" in ('active','deleted')", - "name": "github_branch_projection_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"evaluation_reason\" in ('first_observation','changed_paths','rebaseline_all_services','branch_deleted')", - "name": "github_branch_projection_evaluation_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "(\n (\"state\" = 'active' and \"evaluated_head_sha\" ~ '^[0-9a-f]{40}$' and \"evaluation_reason\" != 'branch_deleted')\n or (\"state\" = 'deleted' and \"evaluated_head_sha\" is null and \"evaluation_reason\" = 'branch_deleted')\n )", - "name": "github_branch_projection_head_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"check_suite_id\" > 0 and \"last_receipt_sequence\" > 0", - "name": "github_check_suite_projection_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_check_suite_projection_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_check_suite_projection_status_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"conclusion\" is null or \"conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_check_suite_projection_conclusion_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"transition_revision\" >= 1 and \"published_revision\" >= 0 and \"published_revision\" <= \"transition_revision\"", - "name": "github_check_suite_projection_revision_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"source_receipt_sequence\" > 0 and \"branch_evaluation_revision\" > 0", - "name": "github_environment_trigger_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_environment_trigger_ref_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_environment_trigger_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "cardinality(\"service_ids\") > 0 and array_position(\"service_ids\", null) is null", - "name": "github_environment_trigger_service_ids_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"selection_mode\" in ('paths','all_services')", - "name": "github_environment_trigger_selection_mode_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"reason\" in ('first_observation','changed_paths','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline')", - "name": "github_environment_trigger_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "(\n (\"selection_mode\" = 'paths' and \"reason\" = 'changed_paths')\n or (\"selection_mode\" = 'all_services' and \"reason\" in ('first_observation','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline'))\n )", - "name": "github_environment_trigger_selection_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"trigger_revision\" = \"branch_evaluation_revision\" and \"published_revision\" >= 0 and \"published_revision\" <= \"trigger_revision\"", - "name": "github_environment_trigger_publish_revision_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "(\n (\"publish_state\" = 'pending' and \"published_revision\" < \"trigger_revision\" and \"published_at\" is null)\n or (\"publish_state\" = 'published' and \"published_revision\" = \"trigger_revision\" and \"published_at\" is not null)\n )", - "name": "github_environment_trigger_publish_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "length(trim(\"delivery_id\")) > 0 and \"receipt_sequence\" > 0 and (\"installation_id\" is null or \"installation_id\" > 0) and (\"repository_id\" is null or \"repository_id\" > 0) and (\"check_suite_id\" is null or \"check_suite_id\" > 0)", - "name": "github_webhook_delivery_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"event_kind\" in ('push','check_suite')", - "name": "github_webhook_delivery_event_kind_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"processing_state\" in ('received','processing','processed','rejected','failed','cancelled')", - "name": "github_webhook_delivery_processing_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"outcome\" is null or \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service','malformed','identity_unresolved','unsupported_action','processing_failed','cancelled')", - "name": "github_webhook_delivery_outcome_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"branch_state\" is null or \"branch_state\" in ('active','deleted')", - "name": "github_webhook_delivery_branch_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"failure_code\" is null or \"failure_code\" in ('malformed_payload','identity_unresolved','unsupported_action','observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error','inngest_cancelled')", - "name": "github_webhook_delivery_failure_code_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_action\" is null or \"check_suite_action\" in ('requested','rerequested','completed')", - "name": "github_webhook_delivery_check_suite_action_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_status\" is null or \"check_suite_status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_webhook_delivery_check_suite_status_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_conclusion\" is null or \"check_suite_conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_webhook_delivery_check_suite_conclusion_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"head_sha\" is null or \"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_webhook_delivery_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n (\"processing_state\" = 'received' and \"processing_run_id\" is null and \"processing_started_at\" is null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processing' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service') and \"failure_code\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'rejected' and (\n (\"outcome\" = 'malformed' and \"failure_code\" = 'malformed_payload')\n or (\"outcome\" = 'identity_unresolved' and \"failure_code\" = 'identity_unresolved')\n or (\"outcome\" = 'unsupported_action' and \"failure_code\" = 'unsupported_action')\n ) and \"processing_run_id\" is null and \"processing_started_at\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'failed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'processing_failed' and \"failure_code\" in ('observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error') and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'cancelled' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'cancelled' and \"failure_code\" = 'inngest_cancelled' and \"processed_at\" is not null)\n )", - "name": "github_webhook_delivery_processing_evidence_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"processing_state\" not in ('processing','processed','failed','cancelled')\n or (\n \"installation_id\" is not null\n and \"repository_id\" is not null\n and (\n (\n \"event_kind\" = 'push'\n and \"ref\" is not null\n and \"ref\" like 'refs/heads/%'\n and \"branch_state\" is not null\n and \"check_suite_id\" is null\n and \"check_suite_action\" is null\n and \"check_suite_status\" is null\n and \"check_suite_conclusion\" is null\n and (\n (\"branch_state\" = 'active' and \"head_sha\" is not null)\n or (\"branch_state\" = 'deleted' and \"head_sha\" is null)\n )\n )\n or (\n \"event_kind\" = 'check_suite'\n and \"branch_state\" is null\n and \"head_sha\" is not null\n and \"check_suite_id\" is not null\n and \"check_suite_action\" is not null\n and \"check_suite_status\" is not null\n )\n )\n )\n )", - "name": "github_webhook_delivery_processed_summary_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"outcome\" not in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged')\n or (\"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services') and \"event_kind\" = 'push')\n or (\"outcome\" in ('check_suite_projected','check_suite_unchanged') and \"event_kind\" = 'check_suite')\n )", - "name": "github_webhook_delivery_outcome_kind_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"has_active_subscription\" = false\n OR (\n \"active_subscription_id\" IS NOT NULL\n AND \"current_plan\" IS NOT NULL\n AND \"product_id\" IS NOT NULL\n AND \"amount\" IS NOT NULL\n AND \"currency\" IS NOT NULL\n AND \"current_period_start\" IS NOT NULL\n AND \"current_period_end\" IS NOT NULL\n )\n )", - "name": "organization_billing_state_active_fields_check", - "entityType": "checks", - "schema": "public", - "table": "organization_billing_state" - }, - { - "value": "\"current_plan\" IS NULL OR \"current_plan\" IN ('free', 'solo', 'teams', 'hobby', 'pro')", - "name": "organization_billing_state_current_plan_check", - "entityType": "checks", - "schema": "public", - "table": "organization_billing_state" - } - ], - "renames": [] -} \ No newline at end of file diff --git a/dashboard/drizzle/20260920050823_cold_triathlon/migration.sql b/dashboard/drizzle/20260920050823_cold_triathlon/migration.sql deleted file mode 100644 index 91d66c4aab..0000000000 --- a/dashboard/drizzle/20260920050823_cold_triathlon/migration.sql +++ /dev/null @@ -1,4 +0,0 @@ -ALTER TABLE "github_environment_trigger" ADD COLUMN "admission_state" text DEFAULT 'waiting' NOT NULL;--> statement-breakpoint -ALTER TABLE "github_environment_trigger" ADD COLUMN "changed_paths" jsonb DEFAULT '[]' NOT NULL; ---> statement-breakpoint -UPDATE github_environment_trigger SET admission_state = 'admitted'; diff --git a/dashboard/drizzle/20260920050823_cold_triathlon/snapshot.json b/dashboard/drizzle/20260920050823_cold_triathlon/snapshot.json deleted file mode 100644 index 7663ef1350..0000000000 --- a/dashboard/drizzle/20260920050823_cold_triathlon/snapshot.json +++ /dev/null @@ -1,10105 +0,0 @@ -{ - "version": "8", - "dialect": "postgres", - "id": "a61c941a-ce26-45bb-8878-a8766a239ebc", - "prevIds": [ - "390ba3a9-7564-4527-924e-de761761e516" - ], - "ddl": [ - { - "isRlsEnabled": false, - "name": "organization", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "account", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "invitation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "member", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "session", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "user", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "verification", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "project", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "user_project_preference", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_canvas_node_position", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_resource", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_variable_group", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "resource_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service_registry_credential", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable_group_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_event", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_saved_state_snapshot", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "core_operation_event", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "core_operation_watch", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_config_snapshot", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_config_snapshot_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_introduction", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_introduction_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_pairing", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "teardown_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "volume_remove_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "enrollment_allocation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "machine_enrollment_token", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "machine_remove_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_machine", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_branch_projection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_check_suite_projection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_environment_trigger", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_installation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_repository_cache", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_webhook_delivery", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_billing_state", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "waitlist", - "entityType": "tables", - "schema": "public" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logo", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "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": "organization" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "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": "account" - }, - { - "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": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "provider_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token_expires_at", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token_expires_at", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "password", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "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": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inviter_id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "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": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'member'", - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "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": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "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": "session" - }, - { - "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": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "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": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_slug", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "sidebar_open", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ip_address", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_agent", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "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": "user" - }, - { - "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": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "email_verified", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "image", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "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": "verification" - }, - { - "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": "verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "identifier", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expires_at", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "namespace", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "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": "environment" - }, - { - "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": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "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": "project" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "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": "user_project_preference" - }, - { - "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": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_type", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "x", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "y", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "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": "environment_canvas_node_position" - }, - { - "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": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "implementation_type", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_group_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "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": "environment_resource" - }, - { - "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": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "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": "environment_variable_group" - }, - { - "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": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "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": "resource_lineage" - }, - { - "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": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"autoDeploy\":true,\"waitForCi\":false,\"watchPaths\":[],\"imageUpdate\":{\"type\":\"off\"}}'", - "generated": null, - "identity": null, - "name": "policy", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_registry_credential", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_deployed_at", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "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": "service" - }, - { - "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": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "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": "service_lineage" - }, - { - "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": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_group_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "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": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "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": "variable_group_lineage" - }, - { - "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": "variable_group_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_value", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "trigger_origin", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "saved_state_snapshot_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_action_policy", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'queued'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "core_deploy_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_producers", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_manifest", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_preview", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "runtime_progress", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancellation_requested_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "dispatch_requested_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "progress", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "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": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_runtime_outcome", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actor_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volume_deletion_authorizations", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "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": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "watch_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_type", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "schema_version", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "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": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "operation_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expected_kind", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "start_sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "next_sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cursor_state", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "observation_state", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "observation_detail", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deadline_at", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "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": "core_operation_watch" - }, - { - "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": "core_operation_watch" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "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": "environment_node_config_snapshot" - }, - { - "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": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "credential_revision", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "snapshot_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "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": "environment_node_introduction" - }, - { - "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": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "authored_intent", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_pairing_secret", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_started_at", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_endpoints", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_public_key", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_claim_machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_connect_deployment_evaluated_at", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "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": "organization_pairing" - }, - { - "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": "organization_pairing" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "targets", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_resource_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_attempt_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volumes", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "assignments", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token_hash", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "created_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "missing_identities", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_tailcat", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "is_dial_entry", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "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": "organization_machine" - }, - { - "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": "organization_machine" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluated_head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluation_reason", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "evaluation_revision", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "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": "github_branch_projection" - }, - { - "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": "github_branch_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conclusion", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "transition_revision", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "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": "github_check_suite_projection" - }, - { - "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": "github_check_suite_projection" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'waiting'", - "generated": null, - "identity": null, - "name": "admission_state", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "changed_paths", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "service_ids", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "selection_mode", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "branch_evaluation_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "trigger_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "publish_state", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "published_at", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "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": "github_environment_trigger" - }, - { - "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": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_login", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_type", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_avatar_url", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "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": "github_installation" - }, - { - "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": "github_installation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "full_name", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "default_branch", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "private", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "html_url", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repo_updated_at", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_kind", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'received'", - "generated": null, - "identity": null, - "name": "processing_state", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "branch_state", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_action", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_status", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_conclusion", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_run_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_started_at", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_subscription_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_plan", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "product_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "amount", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_period_start", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_period_end", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_active_subscription", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "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": "waitlist" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_user_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "provider_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "account_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_provider_account_idx", - "entityType": "indexes", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "email", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_email_idx", - "entityType": "indexes", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "session_user_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "identifier", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "verification_identifier_idx", - "entityType": "indexes", - "schema": "public", - "table": "verification" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_project_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "resource_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_resource_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "variable_group_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"implementation_type\" = 'variable_group'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_variable_group_variable_group_unique", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "variable_group_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_variable_group_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "variable_group_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "saved_state_snapshot_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_saved_state_snapshot_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" = 'queued'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_queued_target_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('planning','deploying')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_started_attempt_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_inngest_run_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_retry_of_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deployment_id", - "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": "environment_deployment_event_cursor_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_saved_state_snapshot_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "environment_saved_state_snapshot_environment_created_at_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_lineage_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_deployment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_lineage_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'environment'\n and \"environment_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_environment_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'project'\n and \"project_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_project_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'organization'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_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": "volume_remove_attempt_deployment_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_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": "volume_remove_attempt_resource_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_attempt_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"retry_of_attempt_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_retry_of_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('awaiting_deployment', 'pending', 'running')\n and \"environment_resource_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_one_active_resource_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "token_hash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_hash_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"state\" in ('pending', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_one_active_org_machine_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_machine_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"is_dial_entry\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_one_dial_entry_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "evaluated_head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_branch_projection_head_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_branch_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_head_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "updated_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"published_revision\" < \"transition_revision\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_unpublished_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "github_environment_trigger_environment_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "created_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"publish_state\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_environment_trigger_pending_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_installation_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_installation_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "full_name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_full_name_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processing_state", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "receipt_sequence", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_identity_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processing_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"processing_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_run_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "account_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": false, - "columns": [ - "inviter_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_inviter_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "session_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "organization_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_IqLeTQthFKCX_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "project_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_4ir4xbHMhQ0b_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_DP4bUoilqg6D_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_lineage_id_resource_lineage_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_nABwUGd5rp5C_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_krkfQwOLhWDI_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_zQ2aoOGRLIOR_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_s2Nqmux9EkpK_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "variable_group_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_variable_group_hiba8dNGKiwl_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_oOF37dttct8c_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "variable_group_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_variable_group_pbUjmr26aBQN_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_lineage_id_service_lineage_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_bvUAv6STak07_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_1xRYD1MXFhcT_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_registry_credential_service_id_service_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_service_id_service_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_variable_group_id_environment_variable_group_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_dFGv8UXjv6eg_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_AmBxCm84j9h8_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_group_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "variable_id" - ], - "schemaTo": "public", - "tableTo": "variable", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_fgbg4UfEzo6H_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "retry_of_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "NO ACTION", - "name": "environment_deployment_Lofdv4M9OTIQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "saved_state_snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_saved_state_snapshot", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_deployment_92k6WdAbc3AZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_event_nkhfxU66kCFO_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_secret_IIXCU5ibjYPq_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_QseWcaivJkoo_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_pYS3zmT4RKuQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "actor_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_saved_state_snapshot_actor_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "watch_id" - ], - "schemaTo": "public", - "tableTo": "core_operation_watch", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_event_watch_id_core_operation_watch_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_watch_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_3y0HYOFWmCwQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_CUaPaujMBOIs_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_D4DPm1gvv2Di_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_config_snapshot", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_secret_j5H7VPFuELrf_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_aSA9HOqVYGRT_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_YPW21fX4uIUZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_introduction", - "columnsTo": [ - "environment_id", - "node_type", - "node_id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_secret_sC7ALWFOnE38_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_pairing_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_pairing" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "teardown_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_2ncjupSSetid_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "retry_of_attempt_id" - ], - "schemaTo": "public", - "tableTo": "volume_remove_attempt", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_FQapB8QhQW1M_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "enrollment_allocation_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_enrollment_token_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": false, - "columns": [ - "created_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_enrollment_token_created_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_machine_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_branch_projection_Udo5xaDQmVxR_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_check_suite_projection_9FLSHaRf6WgI_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_environment_trigger_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "source_delivery_id", - "source_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_environment_trigger_dspFptTlur3h_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_installation_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_repository_cache_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_billing_state_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_billing_state" - }, - { - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_pkey", - "entityType": "pks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_secret_pkey", - "entityType": "pks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "columns": [ - "organization_id", - "cluster_key" - ], - "nameExplicit": false, - "name": "enrollment_allocation_pkey", - "entityType": "pks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "columns": [ - "organization_id", - "machine_id" - ], - "nameExplicit": false, - "name": "organization_machine_pkey", - "entityType": "pks", - "schema": "public", - "table": "organization_machine" - }, - { - "columns": [ - "installation_id", - "repository_id", - "ref" - ], - "nameExplicit": false, - "name": "github_branch_projection_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "columns": [ - "installation_id", - "repository_id", - "check_suite_id" - ], - "nameExplicit": false, - "name": "github_check_suite_projection_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "columns": [ - "user_id", - "installation_id", - "repository_id" - ], - "nameExplicit": false, - "name": "github_repository_cache_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_repository_cache" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "organization_pkey", - "schema": "public", - "table": "organization", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "account_pkey", - "schema": "public", - "table": "account", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "invitation_pkey", - "schema": "public", - "table": "invitation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "member_pkey", - "schema": "public", - "table": "member", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "session_pkey", - "schema": "public", - "table": "session", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_pkey", - "schema": "public", - "table": "user", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "verification_pkey", - "schema": "public", - "table": "verification", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_pkey", - "schema": "public", - "table": "environment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "project_pkey", - "schema": "public", - "table": "project", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_project_preference_pkey", - "schema": "public", - "table": "user_project_preference", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_canvas_node_position_pkey", - "schema": "public", - "table": "environment_canvas_node_position", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_resource_pkey", - "schema": "public", - "table": "environment_resource", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_variable_group_pkey", - "schema": "public", - "table": "environment_variable_group", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "resource_lineage_pkey", - "schema": "public", - "table": "resource_lineage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_pkey", - "schema": "public", - "table": "service", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_lineage_pkey", - "schema": "public", - "table": "service_lineage", - "entityType": "pks" - }, - { - "columns": [ - "service_id" - ], - "nameExplicit": false, - "name": "service_registry_credential_pkey", - "schema": "public", - "table": "service_registry_credential", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "variable_pkey", - "schema": "public", - "table": "variable", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "variable_group_lineage_pkey", - "schema": "public", - "table": "variable_group_lineage", - "entityType": "pks" - }, - { - "columns": [ - "variable_id" - ], - "nameExplicit": false, - "name": "variable_secret_pkey", - "schema": "public", - "table": "variable_secret", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_pkey", - "schema": "public", - "table": "environment_deployment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_event_pkey", - "schema": "public", - "table": "environment_deployment_event", - "entityType": "pks" - }, - { - "columns": [ - "environment_deployment_id" - ], - "nameExplicit": false, - "name": "environment_deployment_secret_pkey", - "schema": "public", - "table": "environment_deployment_secret", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_saved_state_snapshot_pkey", - "schema": "public", - "table": "environment_saved_state_snapshot", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_event_pkey", - "schema": "public", - "table": "core_operation_event", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_watch_pkey", - "schema": "public", - "table": "core_operation_watch", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_pkey", - "schema": "public", - "table": "environment_node_config_snapshot", - "entityType": "pks" - }, - { - "columns": [ - "snapshot_id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_secret_pkey", - "schema": "public", - "table": "environment_node_config_snapshot_secret", - "entityType": "pks" - }, - { - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_pairing_pkey", - "schema": "public", - "table": "organization_pairing", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "teardown_attempt_pkey", - "schema": "public", - "table": "teardown_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "volume_remove_attempt_pkey", - "schema": "public", - "table": "volume_remove_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_enrollment_token_pkey", - "schema": "public", - "table": "machine_enrollment_token", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_remove_attempt_pkey", - "schema": "public", - "table": "machine_remove_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_environment_trigger_pkey", - "schema": "public", - "table": "github_environment_trigger", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_installation_pkey", - "schema": "public", - "table": "github_installation", - "entityType": "pks" - }, - { - "columns": [ - "delivery_id" - ], - "nameExplicit": false, - "name": "github_webhook_delivery_pkey", - "schema": "public", - "table": "github_webhook_delivery", - "entityType": "pks" - }, - { - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_billing_state_pkey", - "schema": "public", - "table": "organization_billing_state", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "waitlist_pkey", - "schema": "public", - "table": "waitlist", - "entityType": "pks" - }, - { - "nameExplicit": false, - "columns": [ - "slug" - ], - "nullsNotDistinct": false, - "name": "organization_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "organization" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "organization_id" - ], - "nullsNotDistinct": false, - "name": "member_user_id_organization_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "token" - ], - "nullsNotDistinct": false, - "name": "session_token_unique", - "entityType": "uniques", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "user_email_unique", - "entityType": "uniques", - "schema": "public", - "table": "user" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "name" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_name_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "namespace" - ], - "nullsNotDistinct": false, - "name": "environment_organization_id_namespace_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "slug" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "id" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "project_id" - ], - "nullsNotDistinct": false, - "name": "user_project_preference_user_id_project_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "resource_type", - "resource_id" - ], - "nullsNotDistinct": false, - "name": "environment_canvas_node_position_environment_id_resource_type_resource_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_variable_group_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_variable_group_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "environment_variable_group_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "variable_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "variable_group_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "variable_group_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_saved_state_snapshot_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "watch_id", - "sequence" - ], - "nullsNotDistinct": false, - "name": "core_operation_event_watch_id_sequence_unique", - "entityType": "uniques", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "operation_id" - ], - "nullsNotDistinct": false, - "name": "core_operation_watch_organization_id_operation_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "core_operation_watch" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id", - "node_type", - "node_id" - ], - "nullsNotDistinct": false, - "name": "environment_node_config_snapshot_environment_deployment_id_node_type_node_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "installation_id", - "repository_id", - "ref", - "branch_evaluation_revision", - "environment_id" - ], - "nullsNotDistinct": false, - "name": "github_environment_trigger_installation_id_repository_id_ref_branch_evaluation_revision_environment_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "installation_id" - ], - "nullsNotDistinct": false, - "name": "github_installation_user_id_installation_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": false, - "columns": [ - "delivery_id", - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_delivery_id_receipt_sequence_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": false, - "columns": [ - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_receipt_sequence_key", - "schema": "public", - "table": "github_webhook_delivery", - "entityType": "uniques" - }, - { - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "waitlist_email_key", - "schema": "public", - "table": "waitlist", - "entityType": "uniques" - }, - { - "value": "\"implementation_type\" in ('variable_group', 'volume')", - "name": "environment_resource_implementation_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "(\"implementation_type\" != 'variable_group' or \"variable_group_id\" is not null)", - "name": "environment_resource_variable_group_reference_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "(\"implementation_type\" != 'volume' or \"variable_group_id\" is null)", - "name": "environment_resource_volume_no_variable_group_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "service_registry_credential_nonempty_check", - "entityType": "checks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "value": "num_nonnulls(\"service_id\", \"variable_group_id\") = 1", - "name": "variable_owner_check", - "entityType": "checks", - "schema": "public", - "table": "variable" - }, - { - "value": "(\n (\"status\" = 'cancelled' and \"cancellation_requested_at\" is not null and \"finished_at\" is not null)\n or (\"status\" <> 'cancelled')\n )", - "name": "environment_deployment_cancellation_shape_check", - "entityType": "checks", - "schema": "public", - "table": "environment_deployment" - }, - { - "value": "\"expected_kind\" in ('deploy','cert','machine_add','machine_update','machine_lifecycle','core_replace','credential_grant','network_repair','service_restart','managed_dns_reconcile','ingress_configure','ingress_refresh','namespace_remove','volume_create','volume_remove')", - "name": "core_operation_watch_expected_kind_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"cursor_state\" in ('more','caught_up','terminal')", - "name": "core_operation_watch_cursor_state_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"observation_state\" in ('active','core_terminal','cloud_timeout','cloud_cancelled')", - "name": "core_operation_watch_observation_state_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"node_type\" in ('service', 'variable_group', 'volume')", - "name": "environment_node_config_snapshot_node_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "environment_node_config_snapshot_secret_nonempty_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "value": "\"node_type\" in ('service', 'variable_group', 'volume')", - "name": "environment_node_introduction_node_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "value": "\n (\"removal_started_at\" is null and \"removal_endpoints\" is null)\n or (\"removal_started_at\" is not null and \"removal_endpoints\" is not null and jsonb_typeof(\"removal_endpoints\") = 'array')\n ", - "name": "organization_pairing_removal_shape_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_public_key\" is not null or \"founder_machine_id\" is not null", - "name": "organization_pairing_state_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_claim_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_claim_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_machine_id\" is null or \"founder_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"scope\" in ('environment','project','organization')", - "name": "teardown_attempt_scope_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "\"status\" in ('pending','running','completed','partial','failed','cancelled')", - "name": "teardown_attempt_status_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "(\n (\"scope\" = 'environment' and \"environment_id\" is not null\n and \"project_id\" is not null)\n or (\"scope\" = 'project' and \"project_id\" is not null\n and \"environment_id\" is null)\n or (\"scope\" = 'organization' and \"project_id\" is null\n and \"environment_id\" is null)\n )", - "name": "teardown_attempt_scope_ids_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "teardown_attempt_confirm_data_loss_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "jsonb_typeof(\"targets\") = 'object'", - "name": "teardown_attempt_targets_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "(\n (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_message\" is null)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n )", - "name": "teardown_attempt_status_shape_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "\"status\" in ('awaiting_deployment','pending','running','unknown','completed','partial','failed','cancelled')", - "name": "volume_remove_attempt_status_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "jsonb_typeof(\"volumes\") = 'array'\n and jsonb_array_length(\"volumes\") >= 1", - "name": "volume_remove_attempt_volumes_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "(\n (\"status\" = 'awaiting_deployment'\n and \"environment_deployment_id\" is not null\n and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'unknown' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"started_at\" is null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000\n and (\n (\"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255)\n or (\"inngest_run_id\" is null\n and \"environment_deployment_id\" is not null)\n ))\n )", - "name": "volume_remove_attempt_status_shape_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "enrollment_allocation_cluster_key_check", - "entityType": "checks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "value": "jsonb_typeof(\"assignments\") = 'array'", - "name": "enrollment_allocation_assignments_check", - "entityType": "checks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "value": "\"token_hash\" ~ '^[0-9a-f]{64}$'", - "name": "machine_enrollment_token_hash_check", - "entityType": "checks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "value": "length(\"machine_id\") between 1 and 64 and \"machine_id\" !~ '[[:cntrl:]]'", - "name": "machine_remove_attempt_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "machine_remove_attempt_confirm_data_loss_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "\"state\" in ('pending','running','succeeded','failed','cancelled','missing_identities')", - "name": "machine_remove_attempt_state_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "(\n (\"state\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'succeeded' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" in ('failed','cancelled')\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is not null and \"failure_message\" is not null\n and \"failure_code\" ~ '^[a-z][a-z0-9_]{0,63}$'\n and length(\"failure_message\") between 1 and 1024\n and \"missing_identities\" is null)\n or (\"state\" = 'missing_identities'\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and jsonb_typeof(\"missing_identities\") = 'array'\n and jsonb_array_length(\"missing_identities\") > 0)\n )", - "name": "machine_remove_attempt_state_shape_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "organization_machine_cluster_key_check", - "entityType": "checks", - "schema": "public", - "table": "organization_machine" - }, - { - "value": "\"machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_machine_id_format_check", - "entityType": "checks", - "schema": "public", - "table": "organization_machine" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"last_receipt_sequence\" > 0 and \"evaluation_revision\" > 0", - "name": "github_branch_projection_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_branch_projection_ref_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"state\" in ('active','deleted')", - "name": "github_branch_projection_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"evaluation_reason\" in ('first_observation','changed_paths','rebaseline_all_services','branch_deleted')", - "name": "github_branch_projection_evaluation_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "(\n (\"state\" = 'active' and \"evaluated_head_sha\" ~ '^[0-9a-f]{40}$' and \"evaluation_reason\" != 'branch_deleted')\n or (\"state\" = 'deleted' and \"evaluated_head_sha\" is null and \"evaluation_reason\" = 'branch_deleted')\n )", - "name": "github_branch_projection_head_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"check_suite_id\" > 0 and \"last_receipt_sequence\" > 0", - "name": "github_check_suite_projection_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_check_suite_projection_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_check_suite_projection_status_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"conclusion\" is null or \"conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_check_suite_projection_conclusion_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"transition_revision\" >= 1 and \"published_revision\" >= 0 and \"published_revision\" <= \"transition_revision\"", - "name": "github_check_suite_projection_revision_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"source_receipt_sequence\" > 0 and \"branch_evaluation_revision\" > 0", - "name": "github_environment_trigger_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_environment_trigger_ref_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_environment_trigger_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "cardinality(\"service_ids\") > 0 and array_position(\"service_ids\", null) is null", - "name": "github_environment_trigger_service_ids_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"selection_mode\" in ('paths','all_services')", - "name": "github_environment_trigger_selection_mode_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"reason\" in ('first_observation','changed_paths','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline')", - "name": "github_environment_trigger_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "(\n (\"selection_mode\" = 'paths' and \"reason\" = 'changed_paths')\n or (\"selection_mode\" = 'all_services' and \"reason\" in ('first_observation','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline'))\n )", - "name": "github_environment_trigger_selection_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"trigger_revision\" = \"branch_evaluation_revision\" and \"published_revision\" >= 0 and \"published_revision\" <= \"trigger_revision\"", - "name": "github_environment_trigger_publish_revision_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "(\n (\"publish_state\" = 'pending' and \"published_revision\" < \"trigger_revision\" and \"published_at\" is null)\n or (\"publish_state\" = 'published' and \"published_revision\" = \"trigger_revision\" and \"published_at\" is not null)\n )", - "name": "github_environment_trigger_publish_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "length(trim(\"delivery_id\")) > 0 and \"receipt_sequence\" > 0 and (\"installation_id\" is null or \"installation_id\" > 0) and (\"repository_id\" is null or \"repository_id\" > 0) and (\"check_suite_id\" is null or \"check_suite_id\" > 0)", - "name": "github_webhook_delivery_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"event_kind\" in ('push','check_suite')", - "name": "github_webhook_delivery_event_kind_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"processing_state\" in ('received','processing','processed','rejected','failed','cancelled')", - "name": "github_webhook_delivery_processing_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"outcome\" is null or \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service','malformed','identity_unresolved','unsupported_action','processing_failed','cancelled')", - "name": "github_webhook_delivery_outcome_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"branch_state\" is null or \"branch_state\" in ('active','deleted')", - "name": "github_webhook_delivery_branch_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"failure_code\" is null or \"failure_code\" in ('malformed_payload','identity_unresolved','unsupported_action','observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error','inngest_cancelled')", - "name": "github_webhook_delivery_failure_code_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_action\" is null or \"check_suite_action\" in ('requested','rerequested','completed')", - "name": "github_webhook_delivery_check_suite_action_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_status\" is null or \"check_suite_status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_webhook_delivery_check_suite_status_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_conclusion\" is null or \"check_suite_conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_webhook_delivery_check_suite_conclusion_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"head_sha\" is null or \"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_webhook_delivery_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n (\"processing_state\" = 'received' and \"processing_run_id\" is null and \"processing_started_at\" is null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processing' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service') and \"failure_code\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'rejected' and (\n (\"outcome\" = 'malformed' and \"failure_code\" = 'malformed_payload')\n or (\"outcome\" = 'identity_unresolved' and \"failure_code\" = 'identity_unresolved')\n or (\"outcome\" = 'unsupported_action' and \"failure_code\" = 'unsupported_action')\n ) and \"processing_run_id\" is null and \"processing_started_at\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'failed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'processing_failed' and \"failure_code\" in ('observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error') and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'cancelled' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'cancelled' and \"failure_code\" = 'inngest_cancelled' and \"processed_at\" is not null)\n )", - "name": "github_webhook_delivery_processing_evidence_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"processing_state\" not in ('processing','processed','failed','cancelled')\n or (\n \"installation_id\" is not null\n and \"repository_id\" is not null\n and (\n (\n \"event_kind\" = 'push'\n and \"ref\" is not null\n and \"ref\" like 'refs/heads/%'\n and \"branch_state\" is not null\n and \"check_suite_id\" is null\n and \"check_suite_action\" is null\n and \"check_suite_status\" is null\n and \"check_suite_conclusion\" is null\n and (\n (\"branch_state\" = 'active' and \"head_sha\" is not null)\n or (\"branch_state\" = 'deleted' and \"head_sha\" is null)\n )\n )\n or (\n \"event_kind\" = 'check_suite'\n and \"branch_state\" is null\n and \"head_sha\" is not null\n and \"check_suite_id\" is not null\n and \"check_suite_action\" is not null\n and \"check_suite_status\" is not null\n )\n )\n )\n )", - "name": "github_webhook_delivery_processed_summary_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"outcome\" not in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged')\n or (\"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services') and \"event_kind\" = 'push')\n or (\"outcome\" in ('check_suite_projected','check_suite_unchanged') and \"event_kind\" = 'check_suite')\n )", - "name": "github_webhook_delivery_outcome_kind_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"has_active_subscription\" = false\n OR (\n \"active_subscription_id\" IS NOT NULL\n AND \"current_plan\" IS NOT NULL\n AND \"product_id\" IS NOT NULL\n AND \"amount\" IS NOT NULL\n AND \"currency\" IS NOT NULL\n AND \"current_period_start\" IS NOT NULL\n AND \"current_period_end\" IS NOT NULL\n )\n )", - "name": "organization_billing_state_active_fields_check", - "entityType": "checks", - "schema": "public", - "table": "organization_billing_state" - }, - { - "value": "\"current_plan\" IS NULL OR \"current_plan\" IN ('free', 'solo', 'teams', 'hobby', 'pro')", - "name": "organization_billing_state_current_plan_check", - "entityType": "checks", - "schema": "public", - "table": "organization_billing_state" - } - ], - "renames": [] -} \ No newline at end of file diff --git a/dashboard/drizzle/20260921122546_deployment_source_pins/migration.sql b/dashboard/drizzle/20260921122546_deployment_source_pins/migration.sql deleted file mode 100644 index 25b35b1c1a..0000000000 --- a/dashboard/drizzle/20260921122546_deployment_source_pins/migration.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE "environment_deployment" ADD COLUMN "source_pins" jsonb DEFAULT '{}' NOT NULL; diff --git a/dashboard/drizzle/20260921122546_deployment_source_pins/snapshot.json b/dashboard/drizzle/20260921122546_deployment_source_pins/snapshot.json deleted file mode 100644 index 5de5acc8d7..0000000000 --- a/dashboard/drizzle/20260921122546_deployment_source_pins/snapshot.json +++ /dev/null @@ -1,10119 +0,0 @@ -{ - "version": "8", - "dialect": "postgres", - "id": "c9a2f3cb-1e24-4c56-964e-b36fa1a9c37a", - "prevIds": [ - "a61c941a-ce26-45bb-8878-a8766a239ebc", - "b2a70431-3047-4ee2-92e2-58db71000844" - ], - "ddl": [ - { - "isRlsEnabled": false, - "name": "organization", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "account", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "invitation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "member", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "session", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "user", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "verification", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "project", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "user_project_preference", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_canvas_node_position", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_resource", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_variable_group", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "resource_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service_registry_credential", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable_group_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_event", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_saved_state_snapshot", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "core_operation_event", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "core_operation_watch", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_config_snapshot", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_config_snapshot_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_introduction", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_introduction_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_pairing", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "teardown_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "volume_remove_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "enrollment_allocation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "machine_enrollment_token", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "machine_remove_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_machine", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_branch_projection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_check_suite_projection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_environment_trigger", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_installation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_repository_cache", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_webhook_delivery", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_billing_state", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "waitlist", - "entityType": "tables", - "schema": "public" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logo", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "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": "organization" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "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": "account" - }, - { - "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": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "provider_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token_expires_at", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token_expires_at", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "password", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "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": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inviter_id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "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": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'member'", - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "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": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "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": "session" - }, - { - "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": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "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": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_slug", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "sidebar_open", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ip_address", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_agent", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "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": "user" - }, - { - "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": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "email_verified", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "image", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "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": "verification" - }, - { - "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": "verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "identifier", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expires_at", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "namespace", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "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": "environment" - }, - { - "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": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "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": "project" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "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": "user_project_preference" - }, - { - "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": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_type", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "x", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "y", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "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": "environment_canvas_node_position" - }, - { - "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": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "implementation_type", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_group_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "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": "environment_resource" - }, - { - "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": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "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": "environment_variable_group" - }, - { - "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": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "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": "resource_lineage" - }, - { - "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": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"autoDeploy\":true,\"waitForCi\":false,\"watchPaths\":[],\"imageUpdate\":{\"type\":\"off\"}}'", - "generated": null, - "identity": null, - "name": "policy", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_registry_credential", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_deployed_at", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "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": "service" - }, - { - "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": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "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": "service_lineage" - }, - { - "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": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_group_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "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": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "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": "variable_group_lineage" - }, - { - "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": "variable_group_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_value", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "trigger_origin", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "saved_state_snapshot_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_action_policy", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'queued'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "core_deploy_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "source_pins", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_producers", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_manifest", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_preview", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "runtime_progress", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancellation_requested_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "dispatch_requested_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "progress", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "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": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_runtime_outcome", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actor_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volume_deletion_authorizations", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "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": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "watch_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_type", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "schema_version", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "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": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "operation_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expected_kind", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "start_sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "next_sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cursor_state", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "observation_state", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "observation_detail", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deadline_at", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "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": "core_operation_watch" - }, - { - "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": "core_operation_watch" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "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": "environment_node_config_snapshot" - }, - { - "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": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "credential_revision", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "snapshot_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "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": "environment_node_introduction" - }, - { - "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": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "authored_intent", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_pairing_secret", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_started_at", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_endpoints", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_public_key", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_claim_machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_connect_deployment_evaluated_at", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "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": "organization_pairing" - }, - { - "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": "organization_pairing" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "targets", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_resource_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_attempt_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volumes", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "assignments", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token_hash", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "created_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "missing_identities", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_capability", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "is_dial_entry", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "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": "organization_machine" - }, - { - "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": "organization_machine" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluated_head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluation_reason", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "evaluation_revision", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "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": "github_branch_projection" - }, - { - "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": "github_branch_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conclusion", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "transition_revision", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "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": "github_check_suite_projection" - }, - { - "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": "github_check_suite_projection" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'waiting'", - "generated": null, - "identity": null, - "name": "admission_state", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "changed_paths", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "service_ids", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "selection_mode", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "branch_evaluation_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "trigger_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "publish_state", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "published_at", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "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": "github_environment_trigger" - }, - { - "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": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_login", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_type", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_avatar_url", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "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": "github_installation" - }, - { - "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": "github_installation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "full_name", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "default_branch", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "private", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "html_url", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repo_updated_at", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_kind", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'received'", - "generated": null, - "identity": null, - "name": "processing_state", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "branch_state", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_action", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_status", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_conclusion", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_run_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_started_at", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_subscription_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_plan", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "product_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "amount", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_period_start", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_period_end", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_active_subscription", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "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": "waitlist" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_user_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "provider_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "account_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_provider_account_idx", - "entityType": "indexes", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "email", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_email_idx", - "entityType": "indexes", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "session_user_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "identifier", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "verification_identifier_idx", - "entityType": "indexes", - "schema": "public", - "table": "verification" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_project_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "resource_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_resource_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "variable_group_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"implementation_type\" = 'variable_group'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_variable_group_variable_group_unique", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "variable_group_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_variable_group_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "variable_group_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "saved_state_snapshot_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_saved_state_snapshot_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" = 'queued'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_queued_target_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('planning','deploying')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_started_attempt_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_inngest_run_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_retry_of_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deployment_id", - "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": "environment_deployment_event_cursor_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_saved_state_snapshot_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "environment_saved_state_snapshot_environment_created_at_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_lineage_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_deployment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_lineage_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'environment'\n and \"environment_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_environment_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'project'\n and \"project_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_project_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'organization'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_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": "volume_remove_attempt_deployment_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_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": "volume_remove_attempt_resource_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_attempt_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"retry_of_attempt_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_retry_of_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('awaiting_deployment', 'pending', 'running')\n and \"environment_resource_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_one_active_resource_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "token_hash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_hash_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"state\" in ('pending', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_one_active_org_machine_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_machine_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"is_dial_entry\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_one_dial_entry_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "evaluated_head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_branch_projection_head_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_branch_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_head_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "updated_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"published_revision\" < \"transition_revision\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_unpublished_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "github_environment_trigger_environment_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "created_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"publish_state\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_environment_trigger_pending_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_installation_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_installation_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "full_name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_full_name_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processing_state", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "receipt_sequence", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_identity_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processing_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"processing_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_run_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "account_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": false, - "columns": [ - "inviter_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_inviter_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "session_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "organization_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_IqLeTQthFKCX_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "project_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_4ir4xbHMhQ0b_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_DP4bUoilqg6D_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_lineage_id_resource_lineage_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_nABwUGd5rp5C_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_krkfQwOLhWDI_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_zQ2aoOGRLIOR_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_s2Nqmux9EkpK_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "variable_group_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_variable_group_hiba8dNGKiwl_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_oOF37dttct8c_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "variable_group_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_variable_group_pbUjmr26aBQN_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_lineage_id_service_lineage_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_bvUAv6STak07_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_1xRYD1MXFhcT_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_registry_credential_service_id_service_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_service_id_service_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_variable_group_id_environment_variable_group_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_dFGv8UXjv6eg_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_AmBxCm84j9h8_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_group_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "variable_id" - ], - "schemaTo": "public", - "tableTo": "variable", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_fgbg4UfEzo6H_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "retry_of_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "NO ACTION", - "name": "environment_deployment_Lofdv4M9OTIQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "saved_state_snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_saved_state_snapshot", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_deployment_92k6WdAbc3AZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_event_nkhfxU66kCFO_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_secret_IIXCU5ibjYPq_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_QseWcaivJkoo_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_pYS3zmT4RKuQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "actor_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_saved_state_snapshot_actor_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "watch_id" - ], - "schemaTo": "public", - "tableTo": "core_operation_watch", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_event_watch_id_core_operation_watch_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_watch_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_3y0HYOFWmCwQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_CUaPaujMBOIs_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_D4DPm1gvv2Di_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_config_snapshot", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_secret_j5H7VPFuELrf_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_aSA9HOqVYGRT_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_YPW21fX4uIUZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_introduction", - "columnsTo": [ - "environment_id", - "node_type", - "node_id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_secret_sC7ALWFOnE38_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_pairing_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_pairing" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "teardown_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_2ncjupSSetid_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "retry_of_attempt_id" - ], - "schemaTo": "public", - "tableTo": "volume_remove_attempt", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_FQapB8QhQW1M_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "enrollment_allocation_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_enrollment_token_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": false, - "columns": [ - "created_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_enrollment_token_created_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_machine_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_branch_projection_Udo5xaDQmVxR_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_check_suite_projection_9FLSHaRf6WgI_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_environment_trigger_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "source_delivery_id", - "source_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_environment_trigger_dspFptTlur3h_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_installation_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_repository_cache_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_billing_state_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_billing_state" - }, - { - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_pkey", - "entityType": "pks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_secret_pkey", - "entityType": "pks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "columns": [ - "organization_id", - "cluster_key" - ], - "nameExplicit": false, - "name": "enrollment_allocation_pkey", - "entityType": "pks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "columns": [ - "organization_id", - "machine_id" - ], - "nameExplicit": false, - "name": "organization_machine_pkey", - "entityType": "pks", - "schema": "public", - "table": "organization_machine" - }, - { - "columns": [ - "installation_id", - "repository_id", - "ref" - ], - "nameExplicit": false, - "name": "github_branch_projection_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "columns": [ - "installation_id", - "repository_id", - "check_suite_id" - ], - "nameExplicit": false, - "name": "github_check_suite_projection_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "columns": [ - "user_id", - "installation_id", - "repository_id" - ], - "nameExplicit": false, - "name": "github_repository_cache_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_repository_cache" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "organization_pkey", - "schema": "public", - "table": "organization", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "account_pkey", - "schema": "public", - "table": "account", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "invitation_pkey", - "schema": "public", - "table": "invitation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "member_pkey", - "schema": "public", - "table": "member", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "session_pkey", - "schema": "public", - "table": "session", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_pkey", - "schema": "public", - "table": "user", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "verification_pkey", - "schema": "public", - "table": "verification", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_pkey", - "schema": "public", - "table": "environment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "project_pkey", - "schema": "public", - "table": "project", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_project_preference_pkey", - "schema": "public", - "table": "user_project_preference", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_canvas_node_position_pkey", - "schema": "public", - "table": "environment_canvas_node_position", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_resource_pkey", - "schema": "public", - "table": "environment_resource", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_variable_group_pkey", - "schema": "public", - "table": "environment_variable_group", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "resource_lineage_pkey", - "schema": "public", - "table": "resource_lineage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_pkey", - "schema": "public", - "table": "service", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_lineage_pkey", - "schema": "public", - "table": "service_lineage", - "entityType": "pks" - }, - { - "columns": [ - "service_id" - ], - "nameExplicit": false, - "name": "service_registry_credential_pkey", - "schema": "public", - "table": "service_registry_credential", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "variable_pkey", - "schema": "public", - "table": "variable", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "variable_group_lineage_pkey", - "schema": "public", - "table": "variable_group_lineage", - "entityType": "pks" - }, - { - "columns": [ - "variable_id" - ], - "nameExplicit": false, - "name": "variable_secret_pkey", - "schema": "public", - "table": "variable_secret", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_pkey", - "schema": "public", - "table": "environment_deployment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_event_pkey", - "schema": "public", - "table": "environment_deployment_event", - "entityType": "pks" - }, - { - "columns": [ - "environment_deployment_id" - ], - "nameExplicit": false, - "name": "environment_deployment_secret_pkey", - "schema": "public", - "table": "environment_deployment_secret", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_saved_state_snapshot_pkey", - "schema": "public", - "table": "environment_saved_state_snapshot", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_event_pkey", - "schema": "public", - "table": "core_operation_event", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_watch_pkey", - "schema": "public", - "table": "core_operation_watch", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_pkey", - "schema": "public", - "table": "environment_node_config_snapshot", - "entityType": "pks" - }, - { - "columns": [ - "snapshot_id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_secret_pkey", - "schema": "public", - "table": "environment_node_config_snapshot_secret", - "entityType": "pks" - }, - { - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_pairing_pkey", - "schema": "public", - "table": "organization_pairing", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "teardown_attempt_pkey", - "schema": "public", - "table": "teardown_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "volume_remove_attempt_pkey", - "schema": "public", - "table": "volume_remove_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_enrollment_token_pkey", - "schema": "public", - "table": "machine_enrollment_token", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_remove_attempt_pkey", - "schema": "public", - "table": "machine_remove_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_environment_trigger_pkey", - "schema": "public", - "table": "github_environment_trigger", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_installation_pkey", - "schema": "public", - "table": "github_installation", - "entityType": "pks" - }, - { - "columns": [ - "delivery_id" - ], - "nameExplicit": false, - "name": "github_webhook_delivery_pkey", - "schema": "public", - "table": "github_webhook_delivery", - "entityType": "pks" - }, - { - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_billing_state_pkey", - "schema": "public", - "table": "organization_billing_state", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "waitlist_pkey", - "schema": "public", - "table": "waitlist", - "entityType": "pks" - }, - { - "nameExplicit": false, - "columns": [ - "slug" - ], - "nullsNotDistinct": false, - "name": "organization_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "organization" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "organization_id" - ], - "nullsNotDistinct": false, - "name": "member_user_id_organization_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "token" - ], - "nullsNotDistinct": false, - "name": "session_token_unique", - "entityType": "uniques", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "user_email_unique", - "entityType": "uniques", - "schema": "public", - "table": "user" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "name" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_name_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "namespace" - ], - "nullsNotDistinct": false, - "name": "environment_organization_id_namespace_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "slug" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "id" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "project_id" - ], - "nullsNotDistinct": false, - "name": "user_project_preference_user_id_project_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "resource_type", - "resource_id" - ], - "nullsNotDistinct": false, - "name": "environment_canvas_node_position_environment_id_resource_type_resource_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_variable_group_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_variable_group_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "environment_variable_group_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "variable_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "variable_group_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "variable_group_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_saved_state_snapshot_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "watch_id", - "sequence" - ], - "nullsNotDistinct": false, - "name": "core_operation_event_watch_id_sequence_unique", - "entityType": "uniques", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "operation_id" - ], - "nullsNotDistinct": false, - "name": "core_operation_watch_organization_id_operation_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "core_operation_watch" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id", - "node_type", - "node_id" - ], - "nullsNotDistinct": false, - "name": "environment_node_config_snapshot_environment_deployment_id_node_type_node_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "installation_id", - "repository_id", - "ref", - "branch_evaluation_revision", - "environment_id" - ], - "nullsNotDistinct": false, - "name": "github_environment_trigger_installation_id_repository_id_ref_branch_evaluation_revision_environment_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "installation_id" - ], - "nullsNotDistinct": false, - "name": "github_installation_user_id_installation_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": false, - "columns": [ - "delivery_id", - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_delivery_id_receipt_sequence_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": false, - "columns": [ - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_receipt_sequence_key", - "schema": "public", - "table": "github_webhook_delivery", - "entityType": "uniques" - }, - { - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "waitlist_email_key", - "schema": "public", - "table": "waitlist", - "entityType": "uniques" - }, - { - "value": "\"implementation_type\" in ('variable_group', 'volume')", - "name": "environment_resource_implementation_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "(\"implementation_type\" != 'variable_group' or \"variable_group_id\" is not null)", - "name": "environment_resource_variable_group_reference_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "(\"implementation_type\" != 'volume' or \"variable_group_id\" is null)", - "name": "environment_resource_volume_no_variable_group_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "service_registry_credential_nonempty_check", - "entityType": "checks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "value": "num_nonnulls(\"service_id\", \"variable_group_id\") = 1", - "name": "variable_owner_check", - "entityType": "checks", - "schema": "public", - "table": "variable" - }, - { - "value": "(\n (\"status\" = 'cancelled' and \"cancellation_requested_at\" is not null and \"finished_at\" is not null)\n or (\"status\" <> 'cancelled')\n )", - "name": "environment_deployment_cancellation_shape_check", - "entityType": "checks", - "schema": "public", - "table": "environment_deployment" - }, - { - "value": "\"expected_kind\" in ('deploy','cert','machine_add','machine_update','machine_lifecycle','core_replace','credential_grant','network_repair','service_restart','managed_dns_reconcile','ingress_configure','ingress_refresh','namespace_remove','volume_create','volume_remove')", - "name": "core_operation_watch_expected_kind_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"cursor_state\" in ('more','caught_up','terminal')", - "name": "core_operation_watch_cursor_state_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"observation_state\" in ('active','core_terminal','cloud_timeout','cloud_cancelled')", - "name": "core_operation_watch_observation_state_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"node_type\" in ('service', 'variable_group', 'volume')", - "name": "environment_node_config_snapshot_node_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "environment_node_config_snapshot_secret_nonempty_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "value": "\"node_type\" in ('service', 'variable_group', 'volume')", - "name": "environment_node_introduction_node_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "value": "\n (\"removal_started_at\" is null and \"removal_endpoints\" is null)\n or (\"removal_started_at\" is not null and \"removal_endpoints\" is not null and jsonb_typeof(\"removal_endpoints\") = 'array')\n ", - "name": "organization_pairing_removal_shape_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_public_key\" is not null or \"founder_machine_id\" is not null", - "name": "organization_pairing_state_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_claim_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_claim_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_machine_id\" is null or \"founder_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"scope\" in ('environment','project','organization')", - "name": "teardown_attempt_scope_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "\"status\" in ('pending','running','completed','partial','failed','cancelled')", - "name": "teardown_attempt_status_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "(\n (\"scope\" = 'environment' and \"environment_id\" is not null\n and \"project_id\" is not null)\n or (\"scope\" = 'project' and \"project_id\" is not null\n and \"environment_id\" is null)\n or (\"scope\" = 'organization' and \"project_id\" is null\n and \"environment_id\" is null)\n )", - "name": "teardown_attempt_scope_ids_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "teardown_attempt_confirm_data_loss_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "jsonb_typeof(\"targets\") = 'object'", - "name": "teardown_attempt_targets_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "(\n (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_message\" is null)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n )", - "name": "teardown_attempt_status_shape_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "\"status\" in ('awaiting_deployment','pending','running','unknown','completed','partial','failed','cancelled')", - "name": "volume_remove_attempt_status_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "jsonb_typeof(\"volumes\") = 'array'\n and jsonb_array_length(\"volumes\") >= 1", - "name": "volume_remove_attempt_volumes_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "(\n (\"status\" = 'awaiting_deployment'\n and \"environment_deployment_id\" is not null\n and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'unknown' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"started_at\" is null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000\n and (\n (\"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255)\n or (\"inngest_run_id\" is null\n and \"environment_deployment_id\" is not null)\n ))\n )", - "name": "volume_remove_attempt_status_shape_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "enrollment_allocation_cluster_key_check", - "entityType": "checks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "value": "jsonb_typeof(\"assignments\") = 'array'", - "name": "enrollment_allocation_assignments_check", - "entityType": "checks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "value": "\"token_hash\" ~ '^[0-9a-f]{64}$'", - "name": "machine_enrollment_token_hash_check", - "entityType": "checks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "value": "length(\"machine_id\") between 1 and 64 and \"machine_id\" !~ '[[:cntrl:]]'", - "name": "machine_remove_attempt_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "machine_remove_attempt_confirm_data_loss_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "\"state\" in ('pending','running','succeeded','failed','cancelled','missing_identities')", - "name": "machine_remove_attempt_state_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "(\n (\"state\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'succeeded' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" in ('failed','cancelled')\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is not null and \"failure_message\" is not null\n and \"failure_code\" ~ '^[a-z][a-z0-9_]{0,63}$'\n and length(\"failure_message\") between 1 and 1024\n and \"missing_identities\" is null)\n or (\"state\" = 'missing_identities'\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and jsonb_typeof(\"missing_identities\") = 'array'\n and jsonb_array_length(\"missing_identities\") > 0)\n )", - "name": "machine_remove_attempt_state_shape_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "organization_machine_cluster_key_check", - "entityType": "checks", - "schema": "public", - "table": "organization_machine" - }, - { - "value": "\"machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_machine_id_format_check", - "entityType": "checks", - "schema": "public", - "table": "organization_machine" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"last_receipt_sequence\" > 0 and \"evaluation_revision\" > 0", - "name": "github_branch_projection_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_branch_projection_ref_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"state\" in ('active','deleted')", - "name": "github_branch_projection_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"evaluation_reason\" in ('first_observation','changed_paths','rebaseline_all_services','branch_deleted')", - "name": "github_branch_projection_evaluation_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "(\n (\"state\" = 'active' and \"evaluated_head_sha\" ~ '^[0-9a-f]{40}$' and \"evaluation_reason\" != 'branch_deleted')\n or (\"state\" = 'deleted' and \"evaluated_head_sha\" is null and \"evaluation_reason\" = 'branch_deleted')\n )", - "name": "github_branch_projection_head_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"check_suite_id\" > 0 and \"last_receipt_sequence\" > 0", - "name": "github_check_suite_projection_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_check_suite_projection_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_check_suite_projection_status_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"conclusion\" is null or \"conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_check_suite_projection_conclusion_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"transition_revision\" >= 1 and \"published_revision\" >= 0 and \"published_revision\" <= \"transition_revision\"", - "name": "github_check_suite_projection_revision_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"source_receipt_sequence\" > 0 and \"branch_evaluation_revision\" > 0", - "name": "github_environment_trigger_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_environment_trigger_ref_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_environment_trigger_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "cardinality(\"service_ids\") > 0 and array_position(\"service_ids\", null) is null", - "name": "github_environment_trigger_service_ids_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"selection_mode\" in ('paths','all_services')", - "name": "github_environment_trigger_selection_mode_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"reason\" in ('first_observation','changed_paths','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline')", - "name": "github_environment_trigger_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "(\n (\"selection_mode\" = 'paths' and \"reason\" = 'changed_paths')\n or (\"selection_mode\" = 'all_services' and \"reason\" in ('first_observation','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline'))\n )", - "name": "github_environment_trigger_selection_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"trigger_revision\" = \"branch_evaluation_revision\" and \"published_revision\" >= 0 and \"published_revision\" <= \"trigger_revision\"", - "name": "github_environment_trigger_publish_revision_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "(\n (\"publish_state\" = 'pending' and \"published_revision\" < \"trigger_revision\" and \"published_at\" is null)\n or (\"publish_state\" = 'published' and \"published_revision\" = \"trigger_revision\" and \"published_at\" is not null)\n )", - "name": "github_environment_trigger_publish_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "length(trim(\"delivery_id\")) > 0 and \"receipt_sequence\" > 0 and (\"installation_id\" is null or \"installation_id\" > 0) and (\"repository_id\" is null or \"repository_id\" > 0) and (\"check_suite_id\" is null or \"check_suite_id\" > 0)", - "name": "github_webhook_delivery_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"event_kind\" in ('push','check_suite')", - "name": "github_webhook_delivery_event_kind_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"processing_state\" in ('received','processing','processed','rejected','failed','cancelled')", - "name": "github_webhook_delivery_processing_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"outcome\" is null or \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service','malformed','identity_unresolved','unsupported_action','processing_failed','cancelled')", - "name": "github_webhook_delivery_outcome_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"branch_state\" is null or \"branch_state\" in ('active','deleted')", - "name": "github_webhook_delivery_branch_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"failure_code\" is null or \"failure_code\" in ('malformed_payload','identity_unresolved','unsupported_action','observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error','inngest_cancelled')", - "name": "github_webhook_delivery_failure_code_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_action\" is null or \"check_suite_action\" in ('requested','rerequested','completed')", - "name": "github_webhook_delivery_check_suite_action_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_status\" is null or \"check_suite_status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_webhook_delivery_check_suite_status_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_conclusion\" is null or \"check_suite_conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_webhook_delivery_check_suite_conclusion_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"head_sha\" is null or \"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_webhook_delivery_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n (\"processing_state\" = 'received' and \"processing_run_id\" is null and \"processing_started_at\" is null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processing' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service') and \"failure_code\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'rejected' and (\n (\"outcome\" = 'malformed' and \"failure_code\" = 'malformed_payload')\n or (\"outcome\" = 'identity_unresolved' and \"failure_code\" = 'identity_unresolved')\n or (\"outcome\" = 'unsupported_action' and \"failure_code\" = 'unsupported_action')\n ) and \"processing_run_id\" is null and \"processing_started_at\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'failed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'processing_failed' and \"failure_code\" in ('observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error') and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'cancelled' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'cancelled' and \"failure_code\" = 'inngest_cancelled' and \"processed_at\" is not null)\n )", - "name": "github_webhook_delivery_processing_evidence_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"processing_state\" not in ('processing','processed','failed','cancelled')\n or (\n \"installation_id\" is not null\n and \"repository_id\" is not null\n and (\n (\n \"event_kind\" = 'push'\n and \"ref\" is not null\n and \"ref\" like 'refs/heads/%'\n and \"branch_state\" is not null\n and \"check_suite_id\" is null\n and \"check_suite_action\" is null\n and \"check_suite_status\" is null\n and \"check_suite_conclusion\" is null\n and (\n (\"branch_state\" = 'active' and \"head_sha\" is not null)\n or (\"branch_state\" = 'deleted' and \"head_sha\" is null)\n )\n )\n or (\n \"event_kind\" = 'check_suite'\n and \"branch_state\" is null\n and \"head_sha\" is not null\n and \"check_suite_id\" is not null\n and \"check_suite_action\" is not null\n and \"check_suite_status\" is not null\n )\n )\n )\n )", - "name": "github_webhook_delivery_processed_summary_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"outcome\" not in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged')\n or (\"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services') and \"event_kind\" = 'push')\n or (\"outcome\" in ('check_suite_projected','check_suite_unchanged') and \"event_kind\" = 'check_suite')\n )", - "name": "github_webhook_delivery_outcome_kind_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"has_active_subscription\" = false\n OR (\n \"active_subscription_id\" IS NOT NULL\n AND \"current_plan\" IS NOT NULL\n AND \"product_id\" IS NOT NULL\n AND \"amount\" IS NOT NULL\n AND \"currency\" IS NOT NULL\n AND \"current_period_start\" IS NOT NULL\n AND \"current_period_end\" IS NOT NULL\n )\n )", - "name": "organization_billing_state_active_fields_check", - "entityType": "checks", - "schema": "public", - "table": "organization_billing_state" - }, - { - "value": "\"current_plan\" IS NULL OR \"current_plan\" IN ('free', 'solo', 'teams', 'hobby', 'pro')", - "name": "organization_billing_state_current_plan_check", - "entityType": "checks", - "schema": "public", - "table": "organization_billing_state" - } - ], - "renames": [] -} \ No newline at end of file diff --git a/dashboard/drizzle/20260922124334_deployment_build_receipts/migration.sql b/dashboard/drizzle/20260922124334_deployment_build_receipts/migration.sql deleted file mode 100644 index e3c8cdd39c..0000000000 --- a/dashboard/drizzle/20260922124334_deployment_build_receipts/migration.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE "environment_deployment_secret" ADD COLUMN "encrypted_build_receipts" jsonb; \ No newline at end of file diff --git a/dashboard/drizzle/20260922124334_deployment_build_receipts/snapshot.json b/dashboard/drizzle/20260922124334_deployment_build_receipts/snapshot.json deleted file mode 100644 index f856d328c1..0000000000 --- a/dashboard/drizzle/20260922124334_deployment_build_receipts/snapshot.json +++ /dev/null @@ -1,10131 +0,0 @@ -{ - "version": "8", - "dialect": "postgres", - "id": "ca9ac376-053f-4b6e-9d4d-876a31fcc84d", - "prevIds": [ - "c9a2f3cb-1e24-4c56-964e-b36fa1a9c37a" - ], - "ddl": [ - { - "isRlsEnabled": false, - "name": "organization", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "account", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "invitation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "member", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "session", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "user", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "verification", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "project", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "user_project_preference", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_canvas_node_position", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_resource", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_variable_group", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "resource_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service_registry_credential", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable_group_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_event", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_saved_state_snapshot", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "core_operation_event", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "core_operation_watch", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_config_snapshot", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_config_snapshot_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_introduction", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_introduction_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_pairing", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "teardown_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "volume_remove_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "enrollment_allocation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "machine_enrollment_token", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "machine_remove_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_machine", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_branch_projection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_check_suite_projection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_environment_trigger", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_installation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_repository_cache", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_webhook_delivery", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_billing_state", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "waitlist", - "entityType": "tables", - "schema": "public" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logo", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "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": "organization" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "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": "account" - }, - { - "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": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "provider_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token_expires_at", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token_expires_at", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "password", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "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": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inviter_id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "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": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'member'", - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "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": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "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": "session" - }, - { - "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": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "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": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_slug", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "sidebar_open", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ip_address", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_agent", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "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": "user" - }, - { - "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": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "email_verified", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "image", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "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": "verification" - }, - { - "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": "verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "identifier", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expires_at", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "namespace", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "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": "environment" - }, - { - "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": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "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": "project" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "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": "user_project_preference" - }, - { - "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": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_type", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "x", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "y", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "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": "environment_canvas_node_position" - }, - { - "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": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "implementation_type", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_group_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "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": "environment_resource" - }, - { - "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": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "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": "environment_variable_group" - }, - { - "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": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "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": "resource_lineage" - }, - { - "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": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"autoDeploy\":true,\"waitForCi\":false,\"watchPaths\":[],\"imageUpdate\":{\"type\":\"off\"}}'", - "generated": null, - "identity": null, - "name": "policy", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_registry_credential", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_deployed_at", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "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": "service" - }, - { - "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": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "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": "service_lineage" - }, - { - "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": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_group_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "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": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "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": "variable_group_lineage" - }, - { - "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": "variable_group_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_value", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "trigger_origin", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "saved_state_snapshot_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_action_policy", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'queued'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "core_deploy_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "source_pins", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_producers", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_manifest", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_preview", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "runtime_progress", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancellation_requested_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "dispatch_requested_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "progress", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "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": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_build_receipts", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_runtime_outcome", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actor_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volume_deletion_authorizations", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "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": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "watch_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_type", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "schema_version", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "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": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "operation_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expected_kind", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "start_sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "next_sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cursor_state", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "observation_state", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "observation_detail", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deadline_at", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "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": "core_operation_watch" - }, - { - "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": "core_operation_watch" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "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": "environment_node_config_snapshot" - }, - { - "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": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "credential_revision", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "snapshot_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "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": "environment_node_introduction" - }, - { - "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": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "authored_intent", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_pairing_secret", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_started_at", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_endpoints", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_public_key", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_claim_machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_connect_deployment_evaluated_at", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "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": "organization_pairing" - }, - { - "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": "organization_pairing" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "targets", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_resource_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_attempt_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volumes", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "assignments", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token_hash", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "created_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "missing_identities", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_capability", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "is_dial_entry", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "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": "organization_machine" - }, - { - "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": "organization_machine" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluated_head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluation_reason", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "evaluation_revision", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "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": "github_branch_projection" - }, - { - "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": "github_branch_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conclusion", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "transition_revision", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "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": "github_check_suite_projection" - }, - { - "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": "github_check_suite_projection" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'waiting'", - "generated": null, - "identity": null, - "name": "admission_state", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "changed_paths", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "service_ids", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "selection_mode", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "branch_evaluation_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "trigger_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "publish_state", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "published_at", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "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": "github_environment_trigger" - }, - { - "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": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_login", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_type", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_avatar_url", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "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": "github_installation" - }, - { - "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": "github_installation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "full_name", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "default_branch", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "private", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "html_url", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repo_updated_at", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_kind", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'received'", - "generated": null, - "identity": null, - "name": "processing_state", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "branch_state", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_action", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_status", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_conclusion", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_run_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_started_at", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_subscription_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_plan", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "product_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "amount", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_period_start", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_period_end", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_active_subscription", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "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": "waitlist" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_user_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "provider_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "account_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_provider_account_idx", - "entityType": "indexes", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "email", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_email_idx", - "entityType": "indexes", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "session_user_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "identifier", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "verification_identifier_idx", - "entityType": "indexes", - "schema": "public", - "table": "verification" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_project_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "resource_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_resource_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "variable_group_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"implementation_type\" = 'variable_group'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_variable_group_variable_group_unique", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "variable_group_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_variable_group_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "variable_group_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "saved_state_snapshot_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_saved_state_snapshot_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" = 'queued'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_queued_target_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('planning','deploying')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_started_attempt_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_inngest_run_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_retry_of_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deployment_id", - "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": "environment_deployment_event_cursor_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_saved_state_snapshot_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "environment_saved_state_snapshot_environment_created_at_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_lineage_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_deployment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_lineage_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'environment'\n and \"environment_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_environment_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'project'\n and \"project_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_project_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'organization'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_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": "volume_remove_attempt_deployment_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_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": "volume_remove_attempt_resource_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_attempt_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"retry_of_attempt_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_retry_of_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('awaiting_deployment', 'pending', 'running')\n and \"environment_resource_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_one_active_resource_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "token_hash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_hash_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"state\" in ('pending', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_one_active_org_machine_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_machine_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"is_dial_entry\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_one_dial_entry_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "evaluated_head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_branch_projection_head_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_branch_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_head_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "updated_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"published_revision\" < \"transition_revision\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_unpublished_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "github_environment_trigger_environment_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "created_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"publish_state\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_environment_trigger_pending_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_installation_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_installation_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "full_name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_full_name_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processing_state", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "receipt_sequence", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_identity_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processing_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"processing_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_run_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "account_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": false, - "columns": [ - "inviter_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_inviter_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "session_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "organization_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_IqLeTQthFKCX_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "project_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_4ir4xbHMhQ0b_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_DP4bUoilqg6D_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_lineage_id_resource_lineage_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_nABwUGd5rp5C_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_krkfQwOLhWDI_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_zQ2aoOGRLIOR_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_s2Nqmux9EkpK_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "variable_group_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_variable_group_hiba8dNGKiwl_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_oOF37dttct8c_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "variable_group_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_variable_group_pbUjmr26aBQN_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_lineage_id_service_lineage_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_bvUAv6STak07_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_1xRYD1MXFhcT_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_registry_credential_service_id_service_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_service_id_service_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_variable_group_id_environment_variable_group_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_dFGv8UXjv6eg_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_AmBxCm84j9h8_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_group_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "variable_id" - ], - "schemaTo": "public", - "tableTo": "variable", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_fgbg4UfEzo6H_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "retry_of_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "NO ACTION", - "name": "environment_deployment_Lofdv4M9OTIQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "saved_state_snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_saved_state_snapshot", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_deployment_92k6WdAbc3AZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_event_nkhfxU66kCFO_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_secret_IIXCU5ibjYPq_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_QseWcaivJkoo_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_pYS3zmT4RKuQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "actor_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_saved_state_snapshot_actor_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "watch_id" - ], - "schemaTo": "public", - "tableTo": "core_operation_watch", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_event_watch_id_core_operation_watch_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_watch_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_3y0HYOFWmCwQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_CUaPaujMBOIs_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_D4DPm1gvv2Di_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_config_snapshot", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_secret_j5H7VPFuELrf_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_aSA9HOqVYGRT_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_YPW21fX4uIUZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_introduction", - "columnsTo": [ - "environment_id", - "node_type", - "node_id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_secret_sC7ALWFOnE38_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_pairing_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_pairing" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "teardown_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_2ncjupSSetid_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "retry_of_attempt_id" - ], - "schemaTo": "public", - "tableTo": "volume_remove_attempt", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_FQapB8QhQW1M_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "enrollment_allocation_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_enrollment_token_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": false, - "columns": [ - "created_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_enrollment_token_created_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_machine_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_branch_projection_Udo5xaDQmVxR_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_check_suite_projection_9FLSHaRf6WgI_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_environment_trigger_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "source_delivery_id", - "source_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_environment_trigger_dspFptTlur3h_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_installation_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_repository_cache_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_billing_state_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_billing_state" - }, - { - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_pkey", - "entityType": "pks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_secret_pkey", - "entityType": "pks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "columns": [ - "organization_id", - "cluster_key" - ], - "nameExplicit": false, - "name": "enrollment_allocation_pkey", - "entityType": "pks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "columns": [ - "organization_id", - "machine_id" - ], - "nameExplicit": false, - "name": "organization_machine_pkey", - "entityType": "pks", - "schema": "public", - "table": "organization_machine" - }, - { - "columns": [ - "installation_id", - "repository_id", - "ref" - ], - "nameExplicit": false, - "name": "github_branch_projection_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "columns": [ - "installation_id", - "repository_id", - "check_suite_id" - ], - "nameExplicit": false, - "name": "github_check_suite_projection_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "columns": [ - "user_id", - "installation_id", - "repository_id" - ], - "nameExplicit": false, - "name": "github_repository_cache_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_repository_cache" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "organization_pkey", - "schema": "public", - "table": "organization", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "account_pkey", - "schema": "public", - "table": "account", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "invitation_pkey", - "schema": "public", - "table": "invitation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "member_pkey", - "schema": "public", - "table": "member", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "session_pkey", - "schema": "public", - "table": "session", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_pkey", - "schema": "public", - "table": "user", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "verification_pkey", - "schema": "public", - "table": "verification", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_pkey", - "schema": "public", - "table": "environment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "project_pkey", - "schema": "public", - "table": "project", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_project_preference_pkey", - "schema": "public", - "table": "user_project_preference", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_canvas_node_position_pkey", - "schema": "public", - "table": "environment_canvas_node_position", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_resource_pkey", - "schema": "public", - "table": "environment_resource", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_variable_group_pkey", - "schema": "public", - "table": "environment_variable_group", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "resource_lineage_pkey", - "schema": "public", - "table": "resource_lineage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_pkey", - "schema": "public", - "table": "service", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_lineage_pkey", - "schema": "public", - "table": "service_lineage", - "entityType": "pks" - }, - { - "columns": [ - "service_id" - ], - "nameExplicit": false, - "name": "service_registry_credential_pkey", - "schema": "public", - "table": "service_registry_credential", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "variable_pkey", - "schema": "public", - "table": "variable", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "variable_group_lineage_pkey", - "schema": "public", - "table": "variable_group_lineage", - "entityType": "pks" - }, - { - "columns": [ - "variable_id" - ], - "nameExplicit": false, - "name": "variable_secret_pkey", - "schema": "public", - "table": "variable_secret", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_pkey", - "schema": "public", - "table": "environment_deployment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_event_pkey", - "schema": "public", - "table": "environment_deployment_event", - "entityType": "pks" - }, - { - "columns": [ - "environment_deployment_id" - ], - "nameExplicit": false, - "name": "environment_deployment_secret_pkey", - "schema": "public", - "table": "environment_deployment_secret", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_saved_state_snapshot_pkey", - "schema": "public", - "table": "environment_saved_state_snapshot", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_event_pkey", - "schema": "public", - "table": "core_operation_event", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_watch_pkey", - "schema": "public", - "table": "core_operation_watch", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_pkey", - "schema": "public", - "table": "environment_node_config_snapshot", - "entityType": "pks" - }, - { - "columns": [ - "snapshot_id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_secret_pkey", - "schema": "public", - "table": "environment_node_config_snapshot_secret", - "entityType": "pks" - }, - { - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_pairing_pkey", - "schema": "public", - "table": "organization_pairing", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "teardown_attempt_pkey", - "schema": "public", - "table": "teardown_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "volume_remove_attempt_pkey", - "schema": "public", - "table": "volume_remove_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_enrollment_token_pkey", - "schema": "public", - "table": "machine_enrollment_token", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_remove_attempt_pkey", - "schema": "public", - "table": "machine_remove_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_environment_trigger_pkey", - "schema": "public", - "table": "github_environment_trigger", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_installation_pkey", - "schema": "public", - "table": "github_installation", - "entityType": "pks" - }, - { - "columns": [ - "delivery_id" - ], - "nameExplicit": false, - "name": "github_webhook_delivery_pkey", - "schema": "public", - "table": "github_webhook_delivery", - "entityType": "pks" - }, - { - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_billing_state_pkey", - "schema": "public", - "table": "organization_billing_state", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "waitlist_pkey", - "schema": "public", - "table": "waitlist", - "entityType": "pks" - }, - { - "nameExplicit": false, - "columns": [ - "slug" - ], - "nullsNotDistinct": false, - "name": "organization_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "organization" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "organization_id" - ], - "nullsNotDistinct": false, - "name": "member_user_id_organization_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "token" - ], - "nullsNotDistinct": false, - "name": "session_token_unique", - "entityType": "uniques", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "user_email_unique", - "entityType": "uniques", - "schema": "public", - "table": "user" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "name" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_name_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "namespace" - ], - "nullsNotDistinct": false, - "name": "environment_organization_id_namespace_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "slug" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "id" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "project_id" - ], - "nullsNotDistinct": false, - "name": "user_project_preference_user_id_project_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "resource_type", - "resource_id" - ], - "nullsNotDistinct": false, - "name": "environment_canvas_node_position_environment_id_resource_type_resource_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_variable_group_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_variable_group_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "environment_variable_group_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "variable_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "variable_group_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "variable_group_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_saved_state_snapshot_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "watch_id", - "sequence" - ], - "nullsNotDistinct": false, - "name": "core_operation_event_watch_id_sequence_unique", - "entityType": "uniques", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "operation_id" - ], - "nullsNotDistinct": false, - "name": "core_operation_watch_organization_id_operation_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "core_operation_watch" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id", - "node_type", - "node_id" - ], - "nullsNotDistinct": false, - "name": "environment_node_config_snapshot_environment_deployment_id_node_type_node_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "installation_id", - "repository_id", - "ref", - "branch_evaluation_revision", - "environment_id" - ], - "nullsNotDistinct": false, - "name": "github_environment_trigger_installation_id_repository_id_ref_branch_evaluation_revision_environment_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "installation_id" - ], - "nullsNotDistinct": false, - "name": "github_installation_user_id_installation_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": false, - "columns": [ - "delivery_id", - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_delivery_id_receipt_sequence_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": false, - "columns": [ - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_receipt_sequence_key", - "schema": "public", - "table": "github_webhook_delivery", - "entityType": "uniques" - }, - { - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "waitlist_email_key", - "schema": "public", - "table": "waitlist", - "entityType": "uniques" - }, - { - "value": "\"implementation_type\" in ('variable_group', 'volume')", - "name": "environment_resource_implementation_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "(\"implementation_type\" != 'variable_group' or \"variable_group_id\" is not null)", - "name": "environment_resource_variable_group_reference_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "(\"implementation_type\" != 'volume' or \"variable_group_id\" is null)", - "name": "environment_resource_volume_no_variable_group_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "service_registry_credential_nonempty_check", - "entityType": "checks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "value": "num_nonnulls(\"service_id\", \"variable_group_id\") = 1", - "name": "variable_owner_check", - "entityType": "checks", - "schema": "public", - "table": "variable" - }, - { - "value": "(\n (\"status\" = 'cancelled' and \"cancellation_requested_at\" is not null and \"finished_at\" is not null)\n or (\"status\" <> 'cancelled')\n )", - "name": "environment_deployment_cancellation_shape_check", - "entityType": "checks", - "schema": "public", - "table": "environment_deployment" - }, - { - "value": "\"expected_kind\" in ('deploy','cert','machine_add','machine_update','machine_lifecycle','core_replace','credential_grant','network_repair','service_restart','managed_dns_reconcile','ingress_configure','ingress_refresh','namespace_remove','volume_create','volume_remove')", - "name": "core_operation_watch_expected_kind_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"cursor_state\" in ('more','caught_up','terminal')", - "name": "core_operation_watch_cursor_state_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"observation_state\" in ('active','core_terminal','cloud_timeout','cloud_cancelled')", - "name": "core_operation_watch_observation_state_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"node_type\" in ('service', 'variable_group', 'volume')", - "name": "environment_node_config_snapshot_node_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "environment_node_config_snapshot_secret_nonempty_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "value": "\"node_type\" in ('service', 'variable_group', 'volume')", - "name": "environment_node_introduction_node_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "value": "\n (\"removal_started_at\" is null and \"removal_endpoints\" is null)\n or (\"removal_started_at\" is not null and \"removal_endpoints\" is not null and jsonb_typeof(\"removal_endpoints\") = 'array')\n ", - "name": "organization_pairing_removal_shape_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_public_key\" is not null or \"founder_machine_id\" is not null", - "name": "organization_pairing_state_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_claim_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_claim_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_machine_id\" is null or \"founder_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"scope\" in ('environment','project','organization')", - "name": "teardown_attempt_scope_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "\"status\" in ('pending','running','completed','partial','failed','cancelled')", - "name": "teardown_attempt_status_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "(\n (\"scope\" = 'environment' and \"environment_id\" is not null\n and \"project_id\" is not null)\n or (\"scope\" = 'project' and \"project_id\" is not null\n and \"environment_id\" is null)\n or (\"scope\" = 'organization' and \"project_id\" is null\n and \"environment_id\" is null)\n )", - "name": "teardown_attempt_scope_ids_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "teardown_attempt_confirm_data_loss_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "jsonb_typeof(\"targets\") = 'object'", - "name": "teardown_attempt_targets_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "(\n (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_message\" is null)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n )", - "name": "teardown_attempt_status_shape_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "\"status\" in ('awaiting_deployment','pending','running','unknown','completed','partial','failed','cancelled')", - "name": "volume_remove_attempt_status_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "jsonb_typeof(\"volumes\") = 'array'\n and jsonb_array_length(\"volumes\") >= 1", - "name": "volume_remove_attempt_volumes_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "(\n (\"status\" = 'awaiting_deployment'\n and \"environment_deployment_id\" is not null\n and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'unknown' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"started_at\" is null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000\n and (\n (\"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255)\n or (\"inngest_run_id\" is null\n and \"environment_deployment_id\" is not null)\n ))\n )", - "name": "volume_remove_attempt_status_shape_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "enrollment_allocation_cluster_key_check", - "entityType": "checks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "value": "jsonb_typeof(\"assignments\") = 'array'", - "name": "enrollment_allocation_assignments_check", - "entityType": "checks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "value": "\"token_hash\" ~ '^[0-9a-f]{64}$'", - "name": "machine_enrollment_token_hash_check", - "entityType": "checks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "value": "length(\"machine_id\") between 1 and 64 and \"machine_id\" !~ '[[:cntrl:]]'", - "name": "machine_remove_attempt_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "machine_remove_attempt_confirm_data_loss_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "\"state\" in ('pending','running','succeeded','failed','cancelled','missing_identities')", - "name": "machine_remove_attempt_state_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "(\n (\"state\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'succeeded' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" in ('failed','cancelled')\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is not null and \"failure_message\" is not null\n and \"failure_code\" ~ '^[a-z][a-z0-9_]{0,63}$'\n and length(\"failure_message\") between 1 and 1024\n and \"missing_identities\" is null)\n or (\"state\" = 'missing_identities'\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and jsonb_typeof(\"missing_identities\") = 'array'\n and jsonb_array_length(\"missing_identities\") > 0)\n )", - "name": "machine_remove_attempt_state_shape_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "organization_machine_cluster_key_check", - "entityType": "checks", - "schema": "public", - "table": "organization_machine" - }, - { - "value": "\"machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_machine_id_format_check", - "entityType": "checks", - "schema": "public", - "table": "organization_machine" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"last_receipt_sequence\" > 0 and \"evaluation_revision\" > 0", - "name": "github_branch_projection_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_branch_projection_ref_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"state\" in ('active','deleted')", - "name": "github_branch_projection_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"evaluation_reason\" in ('first_observation','changed_paths','rebaseline_all_services','branch_deleted')", - "name": "github_branch_projection_evaluation_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "(\n (\"state\" = 'active' and \"evaluated_head_sha\" ~ '^[0-9a-f]{40}$' and \"evaluation_reason\" != 'branch_deleted')\n or (\"state\" = 'deleted' and \"evaluated_head_sha\" is null and \"evaluation_reason\" = 'branch_deleted')\n )", - "name": "github_branch_projection_head_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"check_suite_id\" > 0 and \"last_receipt_sequence\" > 0", - "name": "github_check_suite_projection_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_check_suite_projection_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_check_suite_projection_status_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"conclusion\" is null or \"conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_check_suite_projection_conclusion_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"transition_revision\" >= 1 and \"published_revision\" >= 0 and \"published_revision\" <= \"transition_revision\"", - "name": "github_check_suite_projection_revision_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"source_receipt_sequence\" > 0 and \"branch_evaluation_revision\" > 0", - "name": "github_environment_trigger_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_environment_trigger_ref_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_environment_trigger_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "cardinality(\"service_ids\") > 0 and array_position(\"service_ids\", null) is null", - "name": "github_environment_trigger_service_ids_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"selection_mode\" in ('paths','all_services')", - "name": "github_environment_trigger_selection_mode_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"reason\" in ('first_observation','changed_paths','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline')", - "name": "github_environment_trigger_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "(\n (\"selection_mode\" = 'paths' and \"reason\" = 'changed_paths')\n or (\"selection_mode\" = 'all_services' and \"reason\" in ('first_observation','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline'))\n )", - "name": "github_environment_trigger_selection_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"trigger_revision\" = \"branch_evaluation_revision\" and \"published_revision\" >= 0 and \"published_revision\" <= \"trigger_revision\"", - "name": "github_environment_trigger_publish_revision_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "(\n (\"publish_state\" = 'pending' and \"published_revision\" < \"trigger_revision\" and \"published_at\" is null)\n or (\"publish_state\" = 'published' and \"published_revision\" = \"trigger_revision\" and \"published_at\" is not null)\n )", - "name": "github_environment_trigger_publish_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "length(trim(\"delivery_id\")) > 0 and \"receipt_sequence\" > 0 and (\"installation_id\" is null or \"installation_id\" > 0) and (\"repository_id\" is null or \"repository_id\" > 0) and (\"check_suite_id\" is null or \"check_suite_id\" > 0)", - "name": "github_webhook_delivery_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"event_kind\" in ('push','check_suite')", - "name": "github_webhook_delivery_event_kind_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"processing_state\" in ('received','processing','processed','rejected','failed','cancelled')", - "name": "github_webhook_delivery_processing_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"outcome\" is null or \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service','malformed','identity_unresolved','unsupported_action','processing_failed','cancelled')", - "name": "github_webhook_delivery_outcome_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"branch_state\" is null or \"branch_state\" in ('active','deleted')", - "name": "github_webhook_delivery_branch_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"failure_code\" is null or \"failure_code\" in ('malformed_payload','identity_unresolved','unsupported_action','observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error','inngest_cancelled')", - "name": "github_webhook_delivery_failure_code_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_action\" is null or \"check_suite_action\" in ('requested','rerequested','completed')", - "name": "github_webhook_delivery_check_suite_action_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_status\" is null or \"check_suite_status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_webhook_delivery_check_suite_status_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_conclusion\" is null or \"check_suite_conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_webhook_delivery_check_suite_conclusion_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"head_sha\" is null or \"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_webhook_delivery_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n (\"processing_state\" = 'received' and \"processing_run_id\" is null and \"processing_started_at\" is null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processing' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service') and \"failure_code\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'rejected' and (\n (\"outcome\" = 'malformed' and \"failure_code\" = 'malformed_payload')\n or (\"outcome\" = 'identity_unresolved' and \"failure_code\" = 'identity_unresolved')\n or (\"outcome\" = 'unsupported_action' and \"failure_code\" = 'unsupported_action')\n ) and \"processing_run_id\" is null and \"processing_started_at\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'failed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'processing_failed' and \"failure_code\" in ('observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error') and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'cancelled' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'cancelled' and \"failure_code\" = 'inngest_cancelled' and \"processed_at\" is not null)\n )", - "name": "github_webhook_delivery_processing_evidence_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"processing_state\" not in ('processing','processed','failed','cancelled')\n or (\n \"installation_id\" is not null\n and \"repository_id\" is not null\n and (\n (\n \"event_kind\" = 'push'\n and \"ref\" is not null\n and \"ref\" like 'refs/heads/%'\n and \"branch_state\" is not null\n and \"check_suite_id\" is null\n and \"check_suite_action\" is null\n and \"check_suite_status\" is null\n and \"check_suite_conclusion\" is null\n and (\n (\"branch_state\" = 'active' and \"head_sha\" is not null)\n or (\"branch_state\" = 'deleted' and \"head_sha\" is null)\n )\n )\n or (\n \"event_kind\" = 'check_suite'\n and \"branch_state\" is null\n and \"head_sha\" is not null\n and \"check_suite_id\" is not null\n and \"check_suite_action\" is not null\n and \"check_suite_status\" is not null\n )\n )\n )\n )", - "name": "github_webhook_delivery_processed_summary_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"outcome\" not in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged')\n or (\"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services') and \"event_kind\" = 'push')\n or (\"outcome\" in ('check_suite_projected','check_suite_unchanged') and \"event_kind\" = 'check_suite')\n )", - "name": "github_webhook_delivery_outcome_kind_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"has_active_subscription\" = false\n OR (\n \"active_subscription_id\" IS NOT NULL\n AND \"current_plan\" IS NOT NULL\n AND \"product_id\" IS NOT NULL\n AND \"amount\" IS NOT NULL\n AND \"currency\" IS NOT NULL\n AND \"current_period_start\" IS NOT NULL\n AND \"current_period_end\" IS NOT NULL\n )\n )", - "name": "organization_billing_state_active_fields_check", - "entityType": "checks", - "schema": "public", - "table": "organization_billing_state" - }, - { - "value": "\"current_plan\" IS NULL OR \"current_plan\" IN ('free', 'solo', 'teams', 'hobby', 'pro')", - "name": "organization_billing_state_current_plan_check", - "entityType": "checks", - "schema": "public", - "table": "organization_billing_state" - } - ], - "renames": [] -} \ No newline at end of file diff --git a/dashboard/drizzle/20260922132640_deployment_build_log/migration.sql b/dashboard/drizzle/20260922132640_deployment_build_log/migration.sql deleted file mode 100644 index 7d619d90a1..0000000000 --- a/dashboard/drizzle/20260922132640_deployment_build_log/migration.sql +++ /dev/null @@ -1,27 +0,0 @@ -CREATE TABLE "environment_deployment_build_output" ( - "id" bigserial PRIMARY KEY, - "deployment_id" uuid NOT NULL, - "step_id" bigint NOT NULL, - "stderr" boolean DEFAULT false NOT NULL, - "text" text NOT NULL, - "created_at" timestamp with time zone DEFAULT now() NOT NULL -); ---> statement-breakpoint -CREATE TABLE "environment_deployment_build_step" ( - "id" bigserial PRIMARY KEY, - "deployment_id" uuid NOT NULL, - "key" text NOT NULL, - "name" text NOT NULL, - "started_at" timestamp with time zone, - "completed_at" timestamp with time zone, - "cached" boolean DEFAULT false NOT NULL, - "error" text, - "created_at" timestamp with time zone DEFAULT now() NOT NULL, - "updated_at" timestamp with time zone DEFAULT now() NOT NULL, - CONSTRAINT "environment_deployment_build_step_key_unique" UNIQUE("deployment_id","key") -); ---> statement-breakpoint -CREATE INDEX "environment_deployment_build_output_cursor_idx" ON "environment_deployment_build_output" ("deployment_id","id");--> statement-breakpoint -ALTER TABLE "environment_deployment_build_output" ADD CONSTRAINT "environment_deployment_build_output_Xp68IrJouNSa_fkey" FOREIGN KEY ("deployment_id") REFERENCES "environment_deployment"("id") ON DELETE CASCADE;--> statement-breakpoint -ALTER TABLE "environment_deployment_build_output" ADD CONSTRAINT "environment_deployment_build_output_XF27nu5BhEx1_fkey" FOREIGN KEY ("step_id") REFERENCES "environment_deployment_build_step"("id") ON DELETE CASCADE;--> statement-breakpoint -ALTER TABLE "environment_deployment_build_step" ADD CONSTRAINT "environment_deployment_build_step_mAOz3YRgkCxT_fkey" FOREIGN KEY ("deployment_id") REFERENCES "environment_deployment"("id") ON DELETE CASCADE; \ No newline at end of file diff --git a/dashboard/drizzle/20260922132640_deployment_build_log/snapshot.json b/dashboard/drizzle/20260922132640_deployment_build_log/snapshot.json deleted file mode 100644 index a5add924e0..0000000000 --- a/dashboard/drizzle/20260922132640_deployment_build_log/snapshot.json +++ /dev/null @@ -1,10462 +0,0 @@ -{ - "version": "8", - "dialect": "postgres", - "id": "389f24aa-e7f0-48b9-9902-8cb97c04907c", - "prevIds": [ - "ca9ac376-053f-4b6e-9d4d-876a31fcc84d" - ], - "ddl": [ - { - "isRlsEnabled": false, - "name": "organization", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "account", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "invitation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "member", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "session", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "user", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "verification", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "project", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "user_project_preference", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_canvas_node_position", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_resource", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_variable_group", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "resource_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service_registry_credential", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable_group_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_build_output", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_build_step", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_event", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_saved_state_snapshot", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "core_operation_event", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "core_operation_watch", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_config_snapshot", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_config_snapshot_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_introduction", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_introduction_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_pairing", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "teardown_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "volume_remove_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "enrollment_allocation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "machine_enrollment_token", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "machine_remove_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_machine", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_branch_projection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_check_suite_projection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_environment_trigger", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_installation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_repository_cache", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_webhook_delivery", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_billing_state", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "waitlist", - "entityType": "tables", - "schema": "public" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logo", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "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": "organization" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "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": "account" - }, - { - "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": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "provider_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token_expires_at", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token_expires_at", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "password", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "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": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inviter_id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "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": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'member'", - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "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": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "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": "session" - }, - { - "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": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "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": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_slug", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "sidebar_open", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ip_address", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_agent", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "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": "user" - }, - { - "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": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "email_verified", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "image", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "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": "verification" - }, - { - "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": "verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "identifier", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expires_at", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "namespace", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "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": "environment" - }, - { - "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": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "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": "project" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "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": "user_project_preference" - }, - { - "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": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_type", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "x", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "y", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "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": "environment_canvas_node_position" - }, - { - "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": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "implementation_type", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_group_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "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": "environment_resource" - }, - { - "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": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "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": "environment_variable_group" - }, - { - "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": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "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": "resource_lineage" - }, - { - "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": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"autoDeploy\":true,\"waitForCi\":false,\"watchPaths\":[],\"imageUpdate\":{\"type\":\"off\"}}'", - "generated": null, - "identity": null, - "name": "policy", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_registry_credential", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_deployed_at", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "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": "service" - }, - { - "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": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "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": "service_lineage" - }, - { - "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": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_group_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "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": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "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": "variable_group_lineage" - }, - { - "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": "variable_group_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_value", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "trigger_origin", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "saved_state_snapshot_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_action_policy", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'queued'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "core_deploy_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "source_pins", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_producers", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_manifest", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_preview", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "runtime_progress", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancellation_requested_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "dispatch_requested_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "step_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "stderr", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "text", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "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": "environment_deployment_build_output" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "key", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "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": "environment_deployment_build_step" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completed_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "cached", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "error", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "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": "environment_deployment_build_step" - }, - { - "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": "environment_deployment_build_step" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "progress", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "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": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_build_receipts", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_runtime_outcome", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actor_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volume_deletion_authorizations", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "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": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "watch_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_type", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "schema_version", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "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": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "operation_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expected_kind", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "start_sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "next_sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cursor_state", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "observation_state", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "observation_detail", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deadline_at", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "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": "core_operation_watch" - }, - { - "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": "core_operation_watch" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "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": "environment_node_config_snapshot" - }, - { - "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": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "credential_revision", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "snapshot_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "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": "environment_node_introduction" - }, - { - "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": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "authored_intent", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_pairing_secret", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_started_at", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_endpoints", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_public_key", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_claim_machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_connect_deployment_evaluated_at", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "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": "organization_pairing" - }, - { - "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": "organization_pairing" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "targets", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_resource_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_attempt_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volumes", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "assignments", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token_hash", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "created_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "missing_identities", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_capability", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "is_dial_entry", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "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": "organization_machine" - }, - { - "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": "organization_machine" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluated_head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluation_reason", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "evaluation_revision", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "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": "github_branch_projection" - }, - { - "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": "github_branch_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conclusion", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "transition_revision", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "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": "github_check_suite_projection" - }, - { - "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": "github_check_suite_projection" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'waiting'", - "generated": null, - "identity": null, - "name": "admission_state", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "changed_paths", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "service_ids", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "selection_mode", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "branch_evaluation_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "trigger_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "publish_state", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "published_at", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "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": "github_environment_trigger" - }, - { - "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": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_login", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_type", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_avatar_url", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "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": "github_installation" - }, - { - "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": "github_installation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "full_name", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "default_branch", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "private", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "html_url", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repo_updated_at", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_kind", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'received'", - "generated": null, - "identity": null, - "name": "processing_state", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "branch_state", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_action", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_status", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_conclusion", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_run_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_started_at", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_subscription_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_plan", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "product_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "amount", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_period_start", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_period_end", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_active_subscription", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "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": "waitlist" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_user_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "provider_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "account_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_provider_account_idx", - "entityType": "indexes", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "email", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_email_idx", - "entityType": "indexes", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "session_user_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "identifier", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "verification_identifier_idx", - "entityType": "indexes", - "schema": "public", - "table": "verification" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_project_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "resource_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_resource_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "variable_group_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"implementation_type\" = 'variable_group'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_variable_group_variable_group_unique", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "variable_group_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_variable_group_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "variable_group_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "saved_state_snapshot_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_saved_state_snapshot_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" = 'queued'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_queued_target_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('planning','deploying')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_started_attempt_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_inngest_run_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_retry_of_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deployment_id", - "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": "environment_deployment_build_output_cursor_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deployment_id", - "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": "environment_deployment_event_cursor_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_saved_state_snapshot_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "environment_saved_state_snapshot_environment_created_at_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_lineage_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_deployment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_lineage_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'environment'\n and \"environment_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_environment_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'project'\n and \"project_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_project_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'organization'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_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": "volume_remove_attempt_deployment_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_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": "volume_remove_attempt_resource_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_attempt_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"retry_of_attempt_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_retry_of_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('awaiting_deployment', 'pending', 'running')\n and \"environment_resource_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_one_active_resource_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "token_hash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_hash_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"state\" in ('pending', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_one_active_org_machine_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_machine_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"is_dial_entry\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_one_dial_entry_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "evaluated_head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_branch_projection_head_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_branch_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_head_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "updated_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"published_revision\" < \"transition_revision\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_unpublished_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "github_environment_trigger_environment_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "created_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"publish_state\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_environment_trigger_pending_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_installation_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_installation_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "full_name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_full_name_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processing_state", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "receipt_sequence", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_identity_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processing_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"processing_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_run_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "account_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": false, - "columns": [ - "inviter_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_inviter_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "session_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "organization_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_IqLeTQthFKCX_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "project_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_4ir4xbHMhQ0b_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_DP4bUoilqg6D_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_lineage_id_resource_lineage_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_nABwUGd5rp5C_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_krkfQwOLhWDI_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_zQ2aoOGRLIOR_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_s2Nqmux9EkpK_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "variable_group_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_variable_group_hiba8dNGKiwl_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_oOF37dttct8c_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "variable_group_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_variable_group_pbUjmr26aBQN_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_lineage_id_service_lineage_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_bvUAv6STak07_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_1xRYD1MXFhcT_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_registry_credential_service_id_service_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_service_id_service_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_variable_group_id_environment_variable_group_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_dFGv8UXjv6eg_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_AmBxCm84j9h8_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_group_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "variable_id" - ], - "schemaTo": "public", - "tableTo": "variable", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_fgbg4UfEzo6H_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "retry_of_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "NO ACTION", - "name": "environment_deployment_Lofdv4M9OTIQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "saved_state_snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_saved_state_snapshot", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_deployment_92k6WdAbc3AZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_output_Xp68IrJouNSa_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "nameExplicit": false, - "columns": [ - "step_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment_build_step", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_output_XF27nu5BhEx1_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_step_mAOz3YRgkCxT_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_event_nkhfxU66kCFO_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_secret_IIXCU5ibjYPq_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_QseWcaivJkoo_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_pYS3zmT4RKuQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "actor_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_saved_state_snapshot_actor_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "watch_id" - ], - "schemaTo": "public", - "tableTo": "core_operation_watch", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_event_watch_id_core_operation_watch_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_watch_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_3y0HYOFWmCwQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_CUaPaujMBOIs_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_D4DPm1gvv2Di_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_config_snapshot", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_secret_j5H7VPFuELrf_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_aSA9HOqVYGRT_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_YPW21fX4uIUZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_introduction", - "columnsTo": [ - "environment_id", - "node_type", - "node_id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_secret_sC7ALWFOnE38_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_pairing_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_pairing" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "teardown_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_2ncjupSSetid_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "retry_of_attempt_id" - ], - "schemaTo": "public", - "tableTo": "volume_remove_attempt", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_FQapB8QhQW1M_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "enrollment_allocation_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_enrollment_token_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": false, - "columns": [ - "created_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_enrollment_token_created_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_machine_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_branch_projection_Udo5xaDQmVxR_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_check_suite_projection_9FLSHaRf6WgI_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_environment_trigger_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "source_delivery_id", - "source_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_environment_trigger_dspFptTlur3h_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_installation_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_repository_cache_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_billing_state_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_billing_state" - }, - { - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_pkey", - "entityType": "pks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_secret_pkey", - "entityType": "pks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "columns": [ - "organization_id", - "cluster_key" - ], - "nameExplicit": false, - "name": "enrollment_allocation_pkey", - "entityType": "pks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "columns": [ - "organization_id", - "machine_id" - ], - "nameExplicit": false, - "name": "organization_machine_pkey", - "entityType": "pks", - "schema": "public", - "table": "organization_machine" - }, - { - "columns": [ - "installation_id", - "repository_id", - "ref" - ], - "nameExplicit": false, - "name": "github_branch_projection_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "columns": [ - "installation_id", - "repository_id", - "check_suite_id" - ], - "nameExplicit": false, - "name": "github_check_suite_projection_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "columns": [ - "user_id", - "installation_id", - "repository_id" - ], - "nameExplicit": false, - "name": "github_repository_cache_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_repository_cache" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "organization_pkey", - "schema": "public", - "table": "organization", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "account_pkey", - "schema": "public", - "table": "account", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "invitation_pkey", - "schema": "public", - "table": "invitation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "member_pkey", - "schema": "public", - "table": "member", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "session_pkey", - "schema": "public", - "table": "session", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_pkey", - "schema": "public", - "table": "user", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "verification_pkey", - "schema": "public", - "table": "verification", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_pkey", - "schema": "public", - "table": "environment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "project_pkey", - "schema": "public", - "table": "project", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_project_preference_pkey", - "schema": "public", - "table": "user_project_preference", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_canvas_node_position_pkey", - "schema": "public", - "table": "environment_canvas_node_position", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_resource_pkey", - "schema": "public", - "table": "environment_resource", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_variable_group_pkey", - "schema": "public", - "table": "environment_variable_group", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "resource_lineage_pkey", - "schema": "public", - "table": "resource_lineage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_pkey", - "schema": "public", - "table": "service", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_lineage_pkey", - "schema": "public", - "table": "service_lineage", - "entityType": "pks" - }, - { - "columns": [ - "service_id" - ], - "nameExplicit": false, - "name": "service_registry_credential_pkey", - "schema": "public", - "table": "service_registry_credential", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "variable_pkey", - "schema": "public", - "table": "variable", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "variable_group_lineage_pkey", - "schema": "public", - "table": "variable_group_lineage", - "entityType": "pks" - }, - { - "columns": [ - "variable_id" - ], - "nameExplicit": false, - "name": "variable_secret_pkey", - "schema": "public", - "table": "variable_secret", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_pkey", - "schema": "public", - "table": "environment_deployment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_build_output_pkey", - "schema": "public", - "table": "environment_deployment_build_output", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_build_step_pkey", - "schema": "public", - "table": "environment_deployment_build_step", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_event_pkey", - "schema": "public", - "table": "environment_deployment_event", - "entityType": "pks" - }, - { - "columns": [ - "environment_deployment_id" - ], - "nameExplicit": false, - "name": "environment_deployment_secret_pkey", - "schema": "public", - "table": "environment_deployment_secret", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_saved_state_snapshot_pkey", - "schema": "public", - "table": "environment_saved_state_snapshot", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_event_pkey", - "schema": "public", - "table": "core_operation_event", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_watch_pkey", - "schema": "public", - "table": "core_operation_watch", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_pkey", - "schema": "public", - "table": "environment_node_config_snapshot", - "entityType": "pks" - }, - { - "columns": [ - "snapshot_id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_secret_pkey", - "schema": "public", - "table": "environment_node_config_snapshot_secret", - "entityType": "pks" - }, - { - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_pairing_pkey", - "schema": "public", - "table": "organization_pairing", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "teardown_attempt_pkey", - "schema": "public", - "table": "teardown_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "volume_remove_attempt_pkey", - "schema": "public", - "table": "volume_remove_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_enrollment_token_pkey", - "schema": "public", - "table": "machine_enrollment_token", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_remove_attempt_pkey", - "schema": "public", - "table": "machine_remove_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_environment_trigger_pkey", - "schema": "public", - "table": "github_environment_trigger", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_installation_pkey", - "schema": "public", - "table": "github_installation", - "entityType": "pks" - }, - { - "columns": [ - "delivery_id" - ], - "nameExplicit": false, - "name": "github_webhook_delivery_pkey", - "schema": "public", - "table": "github_webhook_delivery", - "entityType": "pks" - }, - { - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_billing_state_pkey", - "schema": "public", - "table": "organization_billing_state", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "waitlist_pkey", - "schema": "public", - "table": "waitlist", - "entityType": "pks" - }, - { - "nameExplicit": false, - "columns": [ - "slug" - ], - "nullsNotDistinct": false, - "name": "organization_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "organization" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "organization_id" - ], - "nullsNotDistinct": false, - "name": "member_user_id_organization_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "token" - ], - "nullsNotDistinct": false, - "name": "session_token_unique", - "entityType": "uniques", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "user_email_unique", - "entityType": "uniques", - "schema": "public", - "table": "user" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "name" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_name_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "namespace" - ], - "nullsNotDistinct": false, - "name": "environment_organization_id_namespace_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "slug" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "id" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "project_id" - ], - "nullsNotDistinct": false, - "name": "user_project_preference_user_id_project_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "resource_type", - "resource_id" - ], - "nullsNotDistinct": false, - "name": "environment_canvas_node_position_environment_id_resource_type_resource_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_variable_group_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_variable_group_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "environment_variable_group_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "variable_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "variable_group_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "variable_group_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": true, - "columns": [ - "deployment_id", - "key" - ], - "nullsNotDistinct": false, - "name": "environment_deployment_build_step_key_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_saved_state_snapshot_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "watch_id", - "sequence" - ], - "nullsNotDistinct": false, - "name": "core_operation_event_watch_id_sequence_unique", - "entityType": "uniques", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "operation_id" - ], - "nullsNotDistinct": false, - "name": "core_operation_watch_organization_id_operation_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "core_operation_watch" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id", - "node_type", - "node_id" - ], - "nullsNotDistinct": false, - "name": "environment_node_config_snapshot_environment_deployment_id_node_type_node_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "installation_id", - "repository_id", - "ref", - "branch_evaluation_revision", - "environment_id" - ], - "nullsNotDistinct": false, - "name": "github_environment_trigger_installation_id_repository_id_ref_branch_evaluation_revision_environment_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "installation_id" - ], - "nullsNotDistinct": false, - "name": "github_installation_user_id_installation_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": false, - "columns": [ - "delivery_id", - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_delivery_id_receipt_sequence_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": false, - "columns": [ - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_receipt_sequence_key", - "schema": "public", - "table": "github_webhook_delivery", - "entityType": "uniques" - }, - { - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "waitlist_email_key", - "schema": "public", - "table": "waitlist", - "entityType": "uniques" - }, - { - "value": "\"implementation_type\" in ('variable_group', 'volume')", - "name": "environment_resource_implementation_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "(\"implementation_type\" != 'variable_group' or \"variable_group_id\" is not null)", - "name": "environment_resource_variable_group_reference_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "(\"implementation_type\" != 'volume' or \"variable_group_id\" is null)", - "name": "environment_resource_volume_no_variable_group_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "service_registry_credential_nonempty_check", - "entityType": "checks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "value": "num_nonnulls(\"service_id\", \"variable_group_id\") = 1", - "name": "variable_owner_check", - "entityType": "checks", - "schema": "public", - "table": "variable" - }, - { - "value": "(\n (\"status\" = 'cancelled' and \"cancellation_requested_at\" is not null and \"finished_at\" is not null)\n or (\"status\" <> 'cancelled')\n )", - "name": "environment_deployment_cancellation_shape_check", - "entityType": "checks", - "schema": "public", - "table": "environment_deployment" - }, - { - "value": "\"expected_kind\" in ('deploy','cert','machine_add','machine_update','machine_lifecycle','core_replace','credential_grant','network_repair','service_restart','managed_dns_reconcile','ingress_configure','ingress_refresh','namespace_remove','volume_create','volume_remove')", - "name": "core_operation_watch_expected_kind_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"cursor_state\" in ('more','caught_up','terminal')", - "name": "core_operation_watch_cursor_state_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"observation_state\" in ('active','core_terminal','cloud_timeout','cloud_cancelled')", - "name": "core_operation_watch_observation_state_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"node_type\" in ('service', 'variable_group', 'volume')", - "name": "environment_node_config_snapshot_node_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "environment_node_config_snapshot_secret_nonempty_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "value": "\"node_type\" in ('service', 'variable_group', 'volume')", - "name": "environment_node_introduction_node_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "value": "\n (\"removal_started_at\" is null and \"removal_endpoints\" is null)\n or (\"removal_started_at\" is not null and \"removal_endpoints\" is not null and jsonb_typeof(\"removal_endpoints\") = 'array')\n ", - "name": "organization_pairing_removal_shape_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_public_key\" is not null or \"founder_machine_id\" is not null", - "name": "organization_pairing_state_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_claim_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_claim_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_machine_id\" is null or \"founder_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"scope\" in ('environment','project','organization')", - "name": "teardown_attempt_scope_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "\"status\" in ('pending','running','completed','partial','failed','cancelled')", - "name": "teardown_attempt_status_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "(\n (\"scope\" = 'environment' and \"environment_id\" is not null\n and \"project_id\" is not null)\n or (\"scope\" = 'project' and \"project_id\" is not null\n and \"environment_id\" is null)\n or (\"scope\" = 'organization' and \"project_id\" is null\n and \"environment_id\" is null)\n )", - "name": "teardown_attempt_scope_ids_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "teardown_attempt_confirm_data_loss_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "jsonb_typeof(\"targets\") = 'object'", - "name": "teardown_attempt_targets_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "(\n (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_message\" is null)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n )", - "name": "teardown_attempt_status_shape_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "\"status\" in ('awaiting_deployment','pending','running','unknown','completed','partial','failed','cancelled')", - "name": "volume_remove_attempt_status_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "jsonb_typeof(\"volumes\") = 'array'\n and jsonb_array_length(\"volumes\") >= 1", - "name": "volume_remove_attempt_volumes_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "(\n (\"status\" = 'awaiting_deployment'\n and \"environment_deployment_id\" is not null\n and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'unknown' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"started_at\" is null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000\n and (\n (\"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255)\n or (\"inngest_run_id\" is null\n and \"environment_deployment_id\" is not null)\n ))\n )", - "name": "volume_remove_attempt_status_shape_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "enrollment_allocation_cluster_key_check", - "entityType": "checks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "value": "jsonb_typeof(\"assignments\") = 'array'", - "name": "enrollment_allocation_assignments_check", - "entityType": "checks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "value": "\"token_hash\" ~ '^[0-9a-f]{64}$'", - "name": "machine_enrollment_token_hash_check", - "entityType": "checks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "value": "length(\"machine_id\") between 1 and 64 and \"machine_id\" !~ '[[:cntrl:]]'", - "name": "machine_remove_attempt_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "machine_remove_attempt_confirm_data_loss_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "\"state\" in ('pending','running','succeeded','failed','cancelled','missing_identities')", - "name": "machine_remove_attempt_state_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "(\n (\"state\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'succeeded' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" in ('failed','cancelled')\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is not null and \"failure_message\" is not null\n and \"failure_code\" ~ '^[a-z][a-z0-9_]{0,63}$'\n and length(\"failure_message\") between 1 and 1024\n and \"missing_identities\" is null)\n or (\"state\" = 'missing_identities'\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and jsonb_typeof(\"missing_identities\") = 'array'\n and jsonb_array_length(\"missing_identities\") > 0)\n )", - "name": "machine_remove_attempt_state_shape_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "organization_machine_cluster_key_check", - "entityType": "checks", - "schema": "public", - "table": "organization_machine" - }, - { - "value": "\"machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_machine_id_format_check", - "entityType": "checks", - "schema": "public", - "table": "organization_machine" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"last_receipt_sequence\" > 0 and \"evaluation_revision\" > 0", - "name": "github_branch_projection_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_branch_projection_ref_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"state\" in ('active','deleted')", - "name": "github_branch_projection_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"evaluation_reason\" in ('first_observation','changed_paths','rebaseline_all_services','branch_deleted')", - "name": "github_branch_projection_evaluation_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "(\n (\"state\" = 'active' and \"evaluated_head_sha\" ~ '^[0-9a-f]{40}$' and \"evaluation_reason\" != 'branch_deleted')\n or (\"state\" = 'deleted' and \"evaluated_head_sha\" is null and \"evaluation_reason\" = 'branch_deleted')\n )", - "name": "github_branch_projection_head_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"check_suite_id\" > 0 and \"last_receipt_sequence\" > 0", - "name": "github_check_suite_projection_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_check_suite_projection_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_check_suite_projection_status_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"conclusion\" is null or \"conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_check_suite_projection_conclusion_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"transition_revision\" >= 1 and \"published_revision\" >= 0 and \"published_revision\" <= \"transition_revision\"", - "name": "github_check_suite_projection_revision_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"source_receipt_sequence\" > 0 and \"branch_evaluation_revision\" > 0", - "name": "github_environment_trigger_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_environment_trigger_ref_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_environment_trigger_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "cardinality(\"service_ids\") > 0 and array_position(\"service_ids\", null) is null", - "name": "github_environment_trigger_service_ids_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"selection_mode\" in ('paths','all_services')", - "name": "github_environment_trigger_selection_mode_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"reason\" in ('first_observation','changed_paths','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline')", - "name": "github_environment_trigger_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "(\n (\"selection_mode\" = 'paths' and \"reason\" = 'changed_paths')\n or (\"selection_mode\" = 'all_services' and \"reason\" in ('first_observation','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline'))\n )", - "name": "github_environment_trigger_selection_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"trigger_revision\" = \"branch_evaluation_revision\" and \"published_revision\" >= 0 and \"published_revision\" <= \"trigger_revision\"", - "name": "github_environment_trigger_publish_revision_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "(\n (\"publish_state\" = 'pending' and \"published_revision\" < \"trigger_revision\" and \"published_at\" is null)\n or (\"publish_state\" = 'published' and \"published_revision\" = \"trigger_revision\" and \"published_at\" is not null)\n )", - "name": "github_environment_trigger_publish_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "length(trim(\"delivery_id\")) > 0 and \"receipt_sequence\" > 0 and (\"installation_id\" is null or \"installation_id\" > 0) and (\"repository_id\" is null or \"repository_id\" > 0) and (\"check_suite_id\" is null or \"check_suite_id\" > 0)", - "name": "github_webhook_delivery_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"event_kind\" in ('push','check_suite')", - "name": "github_webhook_delivery_event_kind_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"processing_state\" in ('received','processing','processed','rejected','failed','cancelled')", - "name": "github_webhook_delivery_processing_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"outcome\" is null or \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service','malformed','identity_unresolved','unsupported_action','processing_failed','cancelled')", - "name": "github_webhook_delivery_outcome_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"branch_state\" is null or \"branch_state\" in ('active','deleted')", - "name": "github_webhook_delivery_branch_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"failure_code\" is null or \"failure_code\" in ('malformed_payload','identity_unresolved','unsupported_action','observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error','inngest_cancelled')", - "name": "github_webhook_delivery_failure_code_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_action\" is null or \"check_suite_action\" in ('requested','rerequested','completed')", - "name": "github_webhook_delivery_check_suite_action_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_status\" is null or \"check_suite_status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_webhook_delivery_check_suite_status_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_conclusion\" is null or \"check_suite_conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_webhook_delivery_check_suite_conclusion_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"head_sha\" is null or \"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_webhook_delivery_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n (\"processing_state\" = 'received' and \"processing_run_id\" is null and \"processing_started_at\" is null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processing' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service') and \"failure_code\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'rejected' and (\n (\"outcome\" = 'malformed' and \"failure_code\" = 'malformed_payload')\n or (\"outcome\" = 'identity_unresolved' and \"failure_code\" = 'identity_unresolved')\n or (\"outcome\" = 'unsupported_action' and \"failure_code\" = 'unsupported_action')\n ) and \"processing_run_id\" is null and \"processing_started_at\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'failed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'processing_failed' and \"failure_code\" in ('observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error') and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'cancelled' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'cancelled' and \"failure_code\" = 'inngest_cancelled' and \"processed_at\" is not null)\n )", - "name": "github_webhook_delivery_processing_evidence_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"processing_state\" not in ('processing','processed','failed','cancelled')\n or (\n \"installation_id\" is not null\n and \"repository_id\" is not null\n and (\n (\n \"event_kind\" = 'push'\n and \"ref\" is not null\n and \"ref\" like 'refs/heads/%'\n and \"branch_state\" is not null\n and \"check_suite_id\" is null\n and \"check_suite_action\" is null\n and \"check_suite_status\" is null\n and \"check_suite_conclusion\" is null\n and (\n (\"branch_state\" = 'active' and \"head_sha\" is not null)\n or (\"branch_state\" = 'deleted' and \"head_sha\" is null)\n )\n )\n or (\n \"event_kind\" = 'check_suite'\n and \"branch_state\" is null\n and \"head_sha\" is not null\n and \"check_suite_id\" is not null\n and \"check_suite_action\" is not null\n and \"check_suite_status\" is not null\n )\n )\n )\n )", - "name": "github_webhook_delivery_processed_summary_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"outcome\" not in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged')\n or (\"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services') and \"event_kind\" = 'push')\n or (\"outcome\" in ('check_suite_projected','check_suite_unchanged') and \"event_kind\" = 'check_suite')\n )", - "name": "github_webhook_delivery_outcome_kind_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"has_active_subscription\" = false\n OR (\n \"active_subscription_id\" IS NOT NULL\n AND \"current_plan\" IS NOT NULL\n AND \"product_id\" IS NOT NULL\n AND \"amount\" IS NOT NULL\n AND \"currency\" IS NOT NULL\n AND \"current_period_start\" IS NOT NULL\n AND \"current_period_end\" IS NOT NULL\n )\n )", - "name": "organization_billing_state_active_fields_check", - "entityType": "checks", - "schema": "public", - "table": "organization_billing_state" - }, - { - "value": "\"current_plan\" IS NULL OR \"current_plan\" IN ('free', 'solo', 'teams', 'hobby', 'pro')", - "name": "organization_billing_state_current_plan_check", - "entityType": "checks", - "schema": "public", - "table": "organization_billing_state" - } - ], - "renames": [] -} \ No newline at end of file diff --git a/dashboard/drizzle/20260922232124_build_step_run/migration.sql b/dashboard/drizzle/20260922232124_build_step_run/migration.sql deleted file mode 100644 index e3af35ea40..0000000000 --- a/dashboard/drizzle/20260922232124_build_step_run/migration.sql +++ /dev/null @@ -1,3 +0,0 @@ -ALTER TABLE "environment_deployment_build_step" ADD COLUMN "build" integer DEFAULT 0 NOT NULL;--> statement-breakpoint -ALTER TABLE "environment_deployment_build_step" DROP CONSTRAINT "environment_deployment_build_step_key_unique";--> statement-breakpoint -ALTER TABLE "environment_deployment_build_step" ADD CONSTRAINT "environment_deployment_build_step_key_unique" UNIQUE("deployment_id","build","key"); \ No newline at end of file diff --git a/dashboard/drizzle/20260922232124_build_step_run/snapshot.json b/dashboard/drizzle/20260922232124_build_step_run/snapshot.json deleted file mode 100644 index dd9745b880..0000000000 --- a/dashboard/drizzle/20260922232124_build_step_run/snapshot.json +++ /dev/null @@ -1,10476 +0,0 @@ -{ - "version": "8", - "dialect": "postgres", - "id": "27eac82f-03c2-4709-81c3-35253bfccd7e", - "prevIds": [ - "389f24aa-e7f0-48b9-9902-8cb97c04907c" - ], - "ddl": [ - { - "isRlsEnabled": false, - "name": "organization", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "account", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "invitation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "member", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "session", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "user", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "verification", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "project", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "user_project_preference", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_canvas_node_position", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_resource", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_variable_group", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "resource_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service_registry_credential", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable_group_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_build_output", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_build_step", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_event", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_saved_state_snapshot", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "core_operation_event", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "core_operation_watch", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_config_snapshot", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_config_snapshot_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_introduction", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_introduction_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_pairing", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "teardown_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "volume_remove_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "enrollment_allocation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "machine_enrollment_token", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "machine_remove_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_machine", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_branch_projection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_check_suite_projection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_environment_trigger", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_installation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_repository_cache", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_webhook_delivery", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_billing_state", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "waitlist", - "entityType": "tables", - "schema": "public" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logo", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "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": "organization" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "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": "account" - }, - { - "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": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "provider_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token_expires_at", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token_expires_at", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "password", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "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": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inviter_id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "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": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'member'", - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "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": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "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": "session" - }, - { - "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": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "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": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_slug", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "sidebar_open", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ip_address", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_agent", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "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": "user" - }, - { - "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": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "email_verified", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "image", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "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": "verification" - }, - { - "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": "verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "identifier", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expires_at", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "namespace", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "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": "environment" - }, - { - "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": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "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": "project" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "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": "user_project_preference" - }, - { - "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": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_type", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "x", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "y", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "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": "environment_canvas_node_position" - }, - { - "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": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "implementation_type", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_group_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "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": "environment_resource" - }, - { - "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": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_variable_group" - }, - { - "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": "environment_variable_group" - }, - { - "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": "environment_variable_group" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "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": "resource_lineage" - }, - { - "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": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"autoDeploy\":true,\"waitForCi\":false,\"watchPaths\":[],\"imageUpdate\":{\"type\":\"off\"}}'", - "generated": null, - "identity": null, - "name": "policy", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_registry_credential", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_deployed_at", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "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": "service" - }, - { - "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": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "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": "service_lineage" - }, - { - "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": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_group_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "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": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "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": "variable_group_lineage" - }, - { - "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": "variable_group_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_value", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "trigger_origin", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "saved_state_snapshot_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_action_policy", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'queued'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "core_deploy_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "source_pins", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_producers", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_manifest", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_preview", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "runtime_progress", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancellation_requested_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "dispatch_requested_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "step_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "stderr", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "text", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "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": "environment_deployment_build_output" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "build", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "key", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "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": "environment_deployment_build_step" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completed_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "cached", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "error", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "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": "environment_deployment_build_step" - }, - { - "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": "environment_deployment_build_step" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "progress", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "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": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_build_receipts", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_runtime_outcome", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actor_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volume_deletion_authorizations", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "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": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "watch_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_type", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "schema_version", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "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": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "operation_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expected_kind", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "start_sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "next_sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cursor_state", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "observation_state", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "observation_detail", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deadline_at", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "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": "core_operation_watch" - }, - { - "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": "core_operation_watch" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "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": "environment_node_config_snapshot" - }, - { - "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": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "credential_revision", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "snapshot_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "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": "environment_node_introduction" - }, - { - "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": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "authored_intent", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_pairing_secret", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_started_at", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_endpoints", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_public_key", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_claim_machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_connect_deployment_evaluated_at", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "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": "organization_pairing" - }, - { - "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": "organization_pairing" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "targets", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_resource_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_attempt_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volumes", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "assignments", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token_hash", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "created_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "missing_identities", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_capability", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "is_dial_entry", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "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": "organization_machine" - }, - { - "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": "organization_machine" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluated_head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluation_reason", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "evaluation_revision", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "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": "github_branch_projection" - }, - { - "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": "github_branch_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conclusion", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "transition_revision", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "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": "github_check_suite_projection" - }, - { - "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": "github_check_suite_projection" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'waiting'", - "generated": null, - "identity": null, - "name": "admission_state", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "changed_paths", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "service_ids", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "selection_mode", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "branch_evaluation_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "trigger_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "publish_state", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "published_at", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "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": "github_environment_trigger" - }, - { - "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": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_login", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_type", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_avatar_url", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "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": "github_installation" - }, - { - "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": "github_installation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "full_name", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "default_branch", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "private", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "html_url", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repo_updated_at", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_kind", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'received'", - "generated": null, - "identity": null, - "name": "processing_state", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "branch_state", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_action", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_status", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_conclusion", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_run_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_started_at", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_subscription_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_plan", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "product_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "amount", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_period_start", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_period_end", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_active_subscription", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "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": "waitlist" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_user_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "provider_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "account_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_provider_account_idx", - "entityType": "indexes", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "email", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_email_idx", - "entityType": "indexes", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "session_user_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "identifier", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "verification_identifier_idx", - "entityType": "indexes", - "schema": "public", - "table": "verification" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_project_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "resource_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_resource_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "variable_group_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"implementation_type\" = 'variable_group'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_variable_group_variable_group_unique", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "variable_group_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_variable_group_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_variable_group_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "variable_group_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "saved_state_snapshot_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_saved_state_snapshot_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" = 'queued'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_queued_target_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('planning','deploying')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_started_attempt_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_inngest_run_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_retry_of_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deployment_id", - "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": "environment_deployment_build_output_cursor_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deployment_id", - "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": "environment_deployment_event_cursor_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_saved_state_snapshot_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "environment_saved_state_snapshot_environment_created_at_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_lineage_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_deployment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_lineage_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'environment'\n and \"environment_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_environment_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'project'\n and \"project_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_project_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'organization'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_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": "volume_remove_attempt_deployment_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_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": "volume_remove_attempt_resource_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_attempt_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"retry_of_attempt_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_retry_of_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('awaiting_deployment', 'pending', 'running')\n and \"environment_resource_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_one_active_resource_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "token_hash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_hash_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"state\" in ('pending', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_one_active_org_machine_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_machine_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"is_dial_entry\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_one_dial_entry_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "evaluated_head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_branch_projection_head_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_branch_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_head_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "updated_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"published_revision\" < \"transition_revision\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_unpublished_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "github_environment_trigger_environment_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "created_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"publish_state\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_environment_trigger_pending_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_installation_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_installation_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "full_name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_full_name_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processing_state", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "receipt_sequence", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_identity_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processing_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"processing_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_run_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "account_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": false, - "columns": [ - "inviter_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_inviter_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "session_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "organization_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_IqLeTQthFKCX_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "project_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_4ir4xbHMhQ0b_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_DP4bUoilqg6D_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_lineage_id_resource_lineage_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_nABwUGd5rp5C_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_krkfQwOLhWDI_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_zQ2aoOGRLIOR_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_s2Nqmux9EkpK_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "variable_group_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_variable_group_hiba8dNGKiwl_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_variable_group_oOF37dttct8c_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "variable_group_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_variable_group_pbUjmr26aBQN_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_lineage_id_service_lineage_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_bvUAv6STak07_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_1xRYD1MXFhcT_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_registry_credential_service_id_service_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_service_id_service_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_variable_group_id_environment_variable_group_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_dFGv8UXjv6eg_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "variable_group_id" - ], - "schemaTo": "public", - "tableTo": "environment_variable_group", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_AmBxCm84j9h8_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_group_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "variable_id" - ], - "schemaTo": "public", - "tableTo": "variable", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_fgbg4UfEzo6H_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "retry_of_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "NO ACTION", - "name": "environment_deployment_Lofdv4M9OTIQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "saved_state_snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_saved_state_snapshot", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_deployment_92k6WdAbc3AZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_output_Xp68IrJouNSa_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "nameExplicit": false, - "columns": [ - "step_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment_build_step", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_output_XF27nu5BhEx1_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_step_mAOz3YRgkCxT_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_event_nkhfxU66kCFO_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_secret_IIXCU5ibjYPq_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_QseWcaivJkoo_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_pYS3zmT4RKuQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "actor_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_saved_state_snapshot_actor_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "watch_id" - ], - "schemaTo": "public", - "tableTo": "core_operation_watch", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_event_watch_id_core_operation_watch_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_watch_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_3y0HYOFWmCwQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_CUaPaujMBOIs_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_D4DPm1gvv2Di_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_config_snapshot", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_secret_j5H7VPFuELrf_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_aSA9HOqVYGRT_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_YPW21fX4uIUZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_introduction", - "columnsTo": [ - "environment_id", - "node_type", - "node_id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_secret_sC7ALWFOnE38_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_pairing_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_pairing" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "teardown_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_2ncjupSSetid_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "retry_of_attempt_id" - ], - "schemaTo": "public", - "tableTo": "volume_remove_attempt", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_FQapB8QhQW1M_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "enrollment_allocation_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_enrollment_token_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": false, - "columns": [ - "created_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_enrollment_token_created_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_machine_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_branch_projection_Udo5xaDQmVxR_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_check_suite_projection_9FLSHaRf6WgI_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_environment_trigger_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "source_delivery_id", - "source_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_environment_trigger_dspFptTlur3h_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_installation_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_repository_cache_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_billing_state_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_billing_state" - }, - { - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_pkey", - "entityType": "pks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_secret_pkey", - "entityType": "pks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "columns": [ - "organization_id", - "cluster_key" - ], - "nameExplicit": false, - "name": "enrollment_allocation_pkey", - "entityType": "pks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "columns": [ - "organization_id", - "machine_id" - ], - "nameExplicit": false, - "name": "organization_machine_pkey", - "entityType": "pks", - "schema": "public", - "table": "organization_machine" - }, - { - "columns": [ - "installation_id", - "repository_id", - "ref" - ], - "nameExplicit": false, - "name": "github_branch_projection_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "columns": [ - "installation_id", - "repository_id", - "check_suite_id" - ], - "nameExplicit": false, - "name": "github_check_suite_projection_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "columns": [ - "user_id", - "installation_id", - "repository_id" - ], - "nameExplicit": false, - "name": "github_repository_cache_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_repository_cache" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "organization_pkey", - "schema": "public", - "table": "organization", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "account_pkey", - "schema": "public", - "table": "account", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "invitation_pkey", - "schema": "public", - "table": "invitation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "member_pkey", - "schema": "public", - "table": "member", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "session_pkey", - "schema": "public", - "table": "session", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_pkey", - "schema": "public", - "table": "user", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "verification_pkey", - "schema": "public", - "table": "verification", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_pkey", - "schema": "public", - "table": "environment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "project_pkey", - "schema": "public", - "table": "project", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_project_preference_pkey", - "schema": "public", - "table": "user_project_preference", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_canvas_node_position_pkey", - "schema": "public", - "table": "environment_canvas_node_position", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_resource_pkey", - "schema": "public", - "table": "environment_resource", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_variable_group_pkey", - "schema": "public", - "table": "environment_variable_group", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "resource_lineage_pkey", - "schema": "public", - "table": "resource_lineage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_pkey", - "schema": "public", - "table": "service", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_lineage_pkey", - "schema": "public", - "table": "service_lineage", - "entityType": "pks" - }, - { - "columns": [ - "service_id" - ], - "nameExplicit": false, - "name": "service_registry_credential_pkey", - "schema": "public", - "table": "service_registry_credential", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "variable_pkey", - "schema": "public", - "table": "variable", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "variable_group_lineage_pkey", - "schema": "public", - "table": "variable_group_lineage", - "entityType": "pks" - }, - { - "columns": [ - "variable_id" - ], - "nameExplicit": false, - "name": "variable_secret_pkey", - "schema": "public", - "table": "variable_secret", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_pkey", - "schema": "public", - "table": "environment_deployment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_build_output_pkey", - "schema": "public", - "table": "environment_deployment_build_output", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_build_step_pkey", - "schema": "public", - "table": "environment_deployment_build_step", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_event_pkey", - "schema": "public", - "table": "environment_deployment_event", - "entityType": "pks" - }, - { - "columns": [ - "environment_deployment_id" - ], - "nameExplicit": false, - "name": "environment_deployment_secret_pkey", - "schema": "public", - "table": "environment_deployment_secret", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_saved_state_snapshot_pkey", - "schema": "public", - "table": "environment_saved_state_snapshot", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_event_pkey", - "schema": "public", - "table": "core_operation_event", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_watch_pkey", - "schema": "public", - "table": "core_operation_watch", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_pkey", - "schema": "public", - "table": "environment_node_config_snapshot", - "entityType": "pks" - }, - { - "columns": [ - "snapshot_id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_secret_pkey", - "schema": "public", - "table": "environment_node_config_snapshot_secret", - "entityType": "pks" - }, - { - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_pairing_pkey", - "schema": "public", - "table": "organization_pairing", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "teardown_attempt_pkey", - "schema": "public", - "table": "teardown_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "volume_remove_attempt_pkey", - "schema": "public", - "table": "volume_remove_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_enrollment_token_pkey", - "schema": "public", - "table": "machine_enrollment_token", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_remove_attempt_pkey", - "schema": "public", - "table": "machine_remove_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_environment_trigger_pkey", - "schema": "public", - "table": "github_environment_trigger", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_installation_pkey", - "schema": "public", - "table": "github_installation", - "entityType": "pks" - }, - { - "columns": [ - "delivery_id" - ], - "nameExplicit": false, - "name": "github_webhook_delivery_pkey", - "schema": "public", - "table": "github_webhook_delivery", - "entityType": "pks" - }, - { - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_billing_state_pkey", - "schema": "public", - "table": "organization_billing_state", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "waitlist_pkey", - "schema": "public", - "table": "waitlist", - "entityType": "pks" - }, - { - "nameExplicit": false, - "columns": [ - "slug" - ], - "nullsNotDistinct": false, - "name": "organization_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "organization" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "organization_id" - ], - "nullsNotDistinct": false, - "name": "member_user_id_organization_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "token" - ], - "nullsNotDistinct": false, - "name": "session_token_unique", - "entityType": "uniques", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "user_email_unique", - "entityType": "uniques", - "schema": "public", - "table": "user" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "name" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_name_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "namespace" - ], - "nullsNotDistinct": false, - "name": "environment_organization_id_namespace_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "slug" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "id" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "project_id" - ], - "nullsNotDistinct": false, - "name": "user_project_preference_user_id_project_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "resource_type", - "resource_id" - ], - "nullsNotDistinct": false, - "name": "environment_canvas_node_position_environment_id_resource_type_resource_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_variable_group_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_variable_group_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "environment_variable_group_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_variable_group" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "variable_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "variable_group_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "variable_group_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable_group_lineage" - }, - { - "nameExplicit": true, - "columns": [ - "deployment_id", - "build", - "key" - ], - "nullsNotDistinct": false, - "name": "environment_deployment_build_step_key_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_saved_state_snapshot_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "watch_id", - "sequence" - ], - "nullsNotDistinct": false, - "name": "core_operation_event_watch_id_sequence_unique", - "entityType": "uniques", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "operation_id" - ], - "nullsNotDistinct": false, - "name": "core_operation_watch_organization_id_operation_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "core_operation_watch" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id", - "node_type", - "node_id" - ], - "nullsNotDistinct": false, - "name": "environment_node_config_snapshot_environment_deployment_id_node_type_node_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "installation_id", - "repository_id", - "ref", - "branch_evaluation_revision", - "environment_id" - ], - "nullsNotDistinct": false, - "name": "github_environment_trigger_installation_id_repository_id_ref_branch_evaluation_revision_environment_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "installation_id" - ], - "nullsNotDistinct": false, - "name": "github_installation_user_id_installation_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": false, - "columns": [ - "delivery_id", - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_delivery_id_receipt_sequence_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": false, - "columns": [ - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_receipt_sequence_key", - "schema": "public", - "table": "github_webhook_delivery", - "entityType": "uniques" - }, - { - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "waitlist_email_key", - "schema": "public", - "table": "waitlist", - "entityType": "uniques" - }, - { - "value": "\"implementation_type\" in ('variable_group', 'volume')", - "name": "environment_resource_implementation_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "(\"implementation_type\" != 'variable_group' or \"variable_group_id\" is not null)", - "name": "environment_resource_variable_group_reference_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "(\"implementation_type\" != 'volume' or \"variable_group_id\" is null)", - "name": "environment_resource_volume_no_variable_group_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "service_registry_credential_nonempty_check", - "entityType": "checks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "value": "num_nonnulls(\"service_id\", \"variable_group_id\") = 1", - "name": "variable_owner_check", - "entityType": "checks", - "schema": "public", - "table": "variable" - }, - { - "value": "(\n (\"status\" = 'cancelled' and \"cancellation_requested_at\" is not null and \"finished_at\" is not null)\n or (\"status\" <> 'cancelled')\n )", - "name": "environment_deployment_cancellation_shape_check", - "entityType": "checks", - "schema": "public", - "table": "environment_deployment" - }, - { - "value": "\"expected_kind\" in ('deploy','cert','machine_add','machine_update','machine_lifecycle','core_replace','credential_grant','network_repair','service_restart','managed_dns_reconcile','ingress_configure','ingress_refresh','namespace_remove','volume_create','volume_remove')", - "name": "core_operation_watch_expected_kind_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"cursor_state\" in ('more','caught_up','terminal')", - "name": "core_operation_watch_cursor_state_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"observation_state\" in ('active','core_terminal','cloud_timeout','cloud_cancelled')", - "name": "core_operation_watch_observation_state_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"node_type\" in ('service', 'variable_group', 'volume')", - "name": "environment_node_config_snapshot_node_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "environment_node_config_snapshot_secret_nonempty_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "value": "\"node_type\" in ('service', 'variable_group', 'volume')", - "name": "environment_node_introduction_node_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "value": "\n (\"removal_started_at\" is null and \"removal_endpoints\" is null)\n or (\"removal_started_at\" is not null and \"removal_endpoints\" is not null and jsonb_typeof(\"removal_endpoints\") = 'array')\n ", - "name": "organization_pairing_removal_shape_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_public_key\" is not null or \"founder_machine_id\" is not null", - "name": "organization_pairing_state_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_claim_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_claim_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_machine_id\" is null or \"founder_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"scope\" in ('environment','project','organization')", - "name": "teardown_attempt_scope_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "\"status\" in ('pending','running','completed','partial','failed','cancelled')", - "name": "teardown_attempt_status_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "(\n (\"scope\" = 'environment' and \"environment_id\" is not null\n and \"project_id\" is not null)\n or (\"scope\" = 'project' and \"project_id\" is not null\n and \"environment_id\" is null)\n or (\"scope\" = 'organization' and \"project_id\" is null\n and \"environment_id\" is null)\n )", - "name": "teardown_attempt_scope_ids_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "teardown_attempt_confirm_data_loss_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "jsonb_typeof(\"targets\") = 'object'", - "name": "teardown_attempt_targets_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "(\n (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_message\" is null)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n )", - "name": "teardown_attempt_status_shape_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "\"status\" in ('awaiting_deployment','pending','running','unknown','completed','partial','failed','cancelled')", - "name": "volume_remove_attempt_status_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "jsonb_typeof(\"volumes\") = 'array'\n and jsonb_array_length(\"volumes\") >= 1", - "name": "volume_remove_attempt_volumes_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "(\n (\"status\" = 'awaiting_deployment'\n and \"environment_deployment_id\" is not null\n and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'unknown' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"started_at\" is null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000\n and (\n (\"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255)\n or (\"inngest_run_id\" is null\n and \"environment_deployment_id\" is not null)\n ))\n )", - "name": "volume_remove_attempt_status_shape_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "enrollment_allocation_cluster_key_check", - "entityType": "checks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "value": "jsonb_typeof(\"assignments\") = 'array'", - "name": "enrollment_allocation_assignments_check", - "entityType": "checks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "value": "\"token_hash\" ~ '^[0-9a-f]{64}$'", - "name": "machine_enrollment_token_hash_check", - "entityType": "checks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "value": "length(\"machine_id\") between 1 and 64 and \"machine_id\" !~ '[[:cntrl:]]'", - "name": "machine_remove_attempt_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "machine_remove_attempt_confirm_data_loss_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "\"state\" in ('pending','running','succeeded','failed','cancelled','missing_identities')", - "name": "machine_remove_attempt_state_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "(\n (\"state\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'succeeded' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" in ('failed','cancelled')\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is not null and \"failure_message\" is not null\n and \"failure_code\" ~ '^[a-z][a-z0-9_]{0,63}$'\n and length(\"failure_message\") between 1 and 1024\n and \"missing_identities\" is null)\n or (\"state\" = 'missing_identities'\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and jsonb_typeof(\"missing_identities\") = 'array'\n and jsonb_array_length(\"missing_identities\") > 0)\n )", - "name": "machine_remove_attempt_state_shape_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "organization_machine_cluster_key_check", - "entityType": "checks", - "schema": "public", - "table": "organization_machine" - }, - { - "value": "\"machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_machine_id_format_check", - "entityType": "checks", - "schema": "public", - "table": "organization_machine" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"last_receipt_sequence\" > 0 and \"evaluation_revision\" > 0", - "name": "github_branch_projection_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_branch_projection_ref_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"state\" in ('active','deleted')", - "name": "github_branch_projection_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"evaluation_reason\" in ('first_observation','changed_paths','rebaseline_all_services','branch_deleted')", - "name": "github_branch_projection_evaluation_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "(\n (\"state\" = 'active' and \"evaluated_head_sha\" ~ '^[0-9a-f]{40}$' and \"evaluation_reason\" != 'branch_deleted')\n or (\"state\" = 'deleted' and \"evaluated_head_sha\" is null and \"evaluation_reason\" = 'branch_deleted')\n )", - "name": "github_branch_projection_head_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"check_suite_id\" > 0 and \"last_receipt_sequence\" > 0", - "name": "github_check_suite_projection_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_check_suite_projection_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_check_suite_projection_status_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"conclusion\" is null or \"conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_check_suite_projection_conclusion_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"transition_revision\" >= 1 and \"published_revision\" >= 0 and \"published_revision\" <= \"transition_revision\"", - "name": "github_check_suite_projection_revision_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"source_receipt_sequence\" > 0 and \"branch_evaluation_revision\" > 0", - "name": "github_environment_trigger_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_environment_trigger_ref_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_environment_trigger_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "cardinality(\"service_ids\") > 0 and array_position(\"service_ids\", null) is null", - "name": "github_environment_trigger_service_ids_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"selection_mode\" in ('paths','all_services')", - "name": "github_environment_trigger_selection_mode_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"reason\" in ('first_observation','changed_paths','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline')", - "name": "github_environment_trigger_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "(\n (\"selection_mode\" = 'paths' and \"reason\" = 'changed_paths')\n or (\"selection_mode\" = 'all_services' and \"reason\" in ('first_observation','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline'))\n )", - "name": "github_environment_trigger_selection_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"trigger_revision\" = \"branch_evaluation_revision\" and \"published_revision\" >= 0 and \"published_revision\" <= \"trigger_revision\"", - "name": "github_environment_trigger_publish_revision_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "(\n (\"publish_state\" = 'pending' and \"published_revision\" < \"trigger_revision\" and \"published_at\" is null)\n or (\"publish_state\" = 'published' and \"published_revision\" = \"trigger_revision\" and \"published_at\" is not null)\n )", - "name": "github_environment_trigger_publish_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "length(trim(\"delivery_id\")) > 0 and \"receipt_sequence\" > 0 and (\"installation_id\" is null or \"installation_id\" > 0) and (\"repository_id\" is null or \"repository_id\" > 0) and (\"check_suite_id\" is null or \"check_suite_id\" > 0)", - "name": "github_webhook_delivery_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"event_kind\" in ('push','check_suite')", - "name": "github_webhook_delivery_event_kind_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"processing_state\" in ('received','processing','processed','rejected','failed','cancelled')", - "name": "github_webhook_delivery_processing_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"outcome\" is null or \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service','malformed','identity_unresolved','unsupported_action','processing_failed','cancelled')", - "name": "github_webhook_delivery_outcome_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"branch_state\" is null or \"branch_state\" in ('active','deleted')", - "name": "github_webhook_delivery_branch_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"failure_code\" is null or \"failure_code\" in ('malformed_payload','identity_unresolved','unsupported_action','observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error','inngest_cancelled')", - "name": "github_webhook_delivery_failure_code_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_action\" is null or \"check_suite_action\" in ('requested','rerequested','completed')", - "name": "github_webhook_delivery_check_suite_action_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_status\" is null or \"check_suite_status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_webhook_delivery_check_suite_status_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_conclusion\" is null or \"check_suite_conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_webhook_delivery_check_suite_conclusion_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"head_sha\" is null or \"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_webhook_delivery_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n (\"processing_state\" = 'received' and \"processing_run_id\" is null and \"processing_started_at\" is null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processing' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service') and \"failure_code\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'rejected' and (\n (\"outcome\" = 'malformed' and \"failure_code\" = 'malformed_payload')\n or (\"outcome\" = 'identity_unresolved' and \"failure_code\" = 'identity_unresolved')\n or (\"outcome\" = 'unsupported_action' and \"failure_code\" = 'unsupported_action')\n ) and \"processing_run_id\" is null and \"processing_started_at\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'failed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'processing_failed' and \"failure_code\" in ('observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error') and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'cancelled' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'cancelled' and \"failure_code\" = 'inngest_cancelled' and \"processed_at\" is not null)\n )", - "name": "github_webhook_delivery_processing_evidence_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"processing_state\" not in ('processing','processed','failed','cancelled')\n or (\n \"installation_id\" is not null\n and \"repository_id\" is not null\n and (\n (\n \"event_kind\" = 'push'\n and \"ref\" is not null\n and \"ref\" like 'refs/heads/%'\n and \"branch_state\" is not null\n and \"check_suite_id\" is null\n and \"check_suite_action\" is null\n and \"check_suite_status\" is null\n and \"check_suite_conclusion\" is null\n and (\n (\"branch_state\" = 'active' and \"head_sha\" is not null)\n or (\"branch_state\" = 'deleted' and \"head_sha\" is null)\n )\n )\n or (\n \"event_kind\" = 'check_suite'\n and \"branch_state\" is null\n and \"head_sha\" is not null\n and \"check_suite_id\" is not null\n and \"check_suite_action\" is not null\n and \"check_suite_status\" is not null\n )\n )\n )\n )", - "name": "github_webhook_delivery_processed_summary_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"outcome\" not in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged')\n or (\"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services') and \"event_kind\" = 'push')\n or (\"outcome\" in ('check_suite_projected','check_suite_unchanged') and \"event_kind\" = 'check_suite')\n )", - "name": "github_webhook_delivery_outcome_kind_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"has_active_subscription\" = false\n OR (\n \"active_subscription_id\" IS NOT NULL\n AND \"current_plan\" IS NOT NULL\n AND \"product_id\" IS NOT NULL\n AND \"amount\" IS NOT NULL\n AND \"currency\" IS NOT NULL\n AND \"current_period_start\" IS NOT NULL\n AND \"current_period_end\" IS NOT NULL\n )\n )", - "name": "organization_billing_state_active_fields_check", - "entityType": "checks", - "schema": "public", - "table": "organization_billing_state" - }, - { - "value": "\"current_plan\" IS NULL OR \"current_plan\" IN ('free', 'solo', 'teams', 'hobby', 'pro')", - "name": "organization_billing_state_current_plan_check", - "entityType": "checks", - "schema": "public", - "table": "organization_billing_state" - } - ], - "renames": [] -} \ No newline at end of file diff --git a/dashboard/drizzle/20260924143833_remove_variable_groups/migration.sql b/dashboard/drizzle/20260924143833_remove_variable_groups/migration.sql deleted file mode 100644 index 88507d0956..0000000000 --- a/dashboard/drizzle/20260924143833_remove_variable_groups/migration.sql +++ /dev/null @@ -1,24 +0,0 @@ -DELETE FROM "variable" WHERE "service_id" IS NULL;--> statement-breakpoint -DELETE FROM "environment_resource" WHERE "implementation_type" = 'variable_group';--> statement-breakpoint -DELETE FROM "environment_canvas_node_position" WHERE "resource_type" = 'variable_group';--> statement-breakpoint -DELETE FROM "environment_node_config_snapshot" WHERE "node_type" = 'variable_group';--> statement-breakpoint -DELETE FROM "environment_node_introduction" WHERE "node_type" = 'variable_group';--> statement-breakpoint -ALTER TABLE "environment_resource" DROP CONSTRAINT "environment_resource_nABwUGd5rp5C_fkey";--> statement-breakpoint -ALTER TABLE "environment_resource" DROP CONSTRAINT "environment_resource_s2Nqmux9EkpK_fkey";--> statement-breakpoint -ALTER TABLE "environment_variable_group" DROP CONSTRAINT "environment_variable_group_hiba8dNGKiwl_fkey";--> statement-breakpoint -ALTER TABLE "environment_variable_group" DROP CONSTRAINT "environment_variable_group_pbUjmr26aBQN_fkey";--> statement-breakpoint -ALTER TABLE "variable" DROP CONSTRAINT "variable_variable_group_id_environment_variable_group_id_fkey";--> statement-breakpoint -ALTER TABLE "variable" DROP CONSTRAINT "variable_AmBxCm84j9h8_fkey";--> statement-breakpoint -DROP TABLE "environment_variable_group";--> statement-breakpoint -DROP TABLE "variable_group_lineage";--> statement-breakpoint -ALTER TABLE "environment_resource" DROP CONSTRAINT "environment_resource_variable_group_reference_check";--> statement-breakpoint -ALTER TABLE "environment_resource" DROP CONSTRAINT "environment_resource_volume_no_variable_group_check";--> statement-breakpoint -ALTER TABLE "variable" DROP CONSTRAINT "variable_owner_check";--> statement-breakpoint -DROP INDEX "environment_resource_variable_group_variable_group_unique";--> statement-breakpoint -DROP INDEX "environment_resource_variable_group_id_idx";--> statement-breakpoint -ALTER TABLE "environment_resource" DROP COLUMN "variable_group_id";--> statement-breakpoint -ALTER TABLE "variable" DROP COLUMN "variable_group_id";--> statement-breakpoint -ALTER TABLE "variable" ALTER COLUMN "service_id" SET NOT NULL;--> statement-breakpoint -ALTER TABLE "environment_resource" DROP CONSTRAINT "environment_resource_implementation_type_check", ADD CONSTRAINT "environment_resource_implementation_type_check" CHECK ("implementation_type" in ('volume'));--> statement-breakpoint -ALTER TABLE "environment_node_config_snapshot" DROP CONSTRAINT "environment_node_config_snapshot_node_type_check", ADD CONSTRAINT "environment_node_config_snapshot_node_type_check" CHECK ("node_type" in ('service', 'volume'));--> statement-breakpoint -ALTER TABLE "environment_node_introduction" DROP CONSTRAINT "environment_node_introduction_node_type_check", ADD CONSTRAINT "environment_node_introduction_node_type_check" CHECK ("node_type" in ('service', 'volume')); \ No newline at end of file diff --git a/dashboard/drizzle/20260924143833_remove_variable_groups/snapshot.json b/dashboard/drizzle/20260924143833_remove_variable_groups/snapshot.json deleted file mode 100644 index 6040037a35..0000000000 --- a/dashboard/drizzle/20260924143833_remove_variable_groups/snapshot.json +++ /dev/null @@ -1,9826 +0,0 @@ -{ - "version": "8", - "dialect": "postgres", - "id": "2be1642d-f113-4b12-ae2a-b4d0f71f1000", - "prevIds": [ - "27eac82f-03c2-4709-81c3-35253bfccd7e" - ], - "ddl": [ - { - "isRlsEnabled": false, - "name": "organization", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "account", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "invitation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "member", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "session", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "user", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "verification", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "project", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "user_project_preference", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_canvas_node_position", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_resource", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "resource_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service_registry_credential", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_build_output", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_build_step", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_event", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_saved_state_snapshot", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "core_operation_event", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "core_operation_watch", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_config_snapshot", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_config_snapshot_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_introduction", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_introduction_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_pairing", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "teardown_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "volume_remove_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "enrollment_allocation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "machine_enrollment_token", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "machine_remove_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_machine", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_branch_projection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_check_suite_projection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_environment_trigger", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_installation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_repository_cache", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_webhook_delivery", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_billing_state", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "waitlist", - "entityType": "tables", - "schema": "public" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logo", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "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": "organization" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "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": "account" - }, - { - "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": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "provider_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token_expires_at", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token_expires_at", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "password", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "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": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inviter_id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "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": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'member'", - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "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": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "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": "session" - }, - { - "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": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "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": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_slug", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "sidebar_open", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ip_address", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_agent", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "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": "user" - }, - { - "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": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "email_verified", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "image", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "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": "verification" - }, - { - "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": "verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "identifier", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expires_at", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "namespace", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "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": "environment" - }, - { - "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": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "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": "project" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "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": "user_project_preference" - }, - { - "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": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_type", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "x", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "y", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "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": "environment_canvas_node_position" - }, - { - "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": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "implementation_type", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "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": "environment_resource" - }, - { - "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": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "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": "resource_lineage" - }, - { - "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": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"autoDeploy\":true,\"waitForCi\":false,\"watchPaths\":[],\"imageUpdate\":{\"type\":\"off\"}}'", - "generated": null, - "identity": null, - "name": "policy", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_registry_credential", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_deployed_at", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "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": "service" - }, - { - "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": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "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": "service_lineage" - }, - { - "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": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "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": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_value", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "trigger_origin", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "saved_state_snapshot_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_action_policy", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'queued'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "core_deploy_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "source_pins", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_producers", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_manifest", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_preview", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "runtime_progress", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancellation_requested_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "dispatch_requested_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "step_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "stderr", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "text", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "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": "environment_deployment_build_output" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "build", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "key", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "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": "environment_deployment_build_step" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completed_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "cached", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "error", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "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": "environment_deployment_build_step" - }, - { - "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": "environment_deployment_build_step" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "progress", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "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": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_build_receipts", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_runtime_outcome", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actor_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volume_deletion_authorizations", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "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": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "watch_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_type", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "schema_version", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "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": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "operation_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expected_kind", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "start_sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "next_sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cursor_state", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "observation_state", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "observation_detail", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deadline_at", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "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": "core_operation_watch" - }, - { - "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": "core_operation_watch" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "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": "environment_node_config_snapshot" - }, - { - "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": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "credential_revision", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "snapshot_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "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": "environment_node_introduction" - }, - { - "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": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "authored_intent", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_pairing_secret", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_started_at", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_endpoints", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_public_key", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_claim_machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_connect_deployment_evaluated_at", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "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": "organization_pairing" - }, - { - "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": "organization_pairing" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "targets", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_resource_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_attempt_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volumes", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "assignments", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token_hash", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "created_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "missing_identities", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_capability", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "is_dial_entry", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "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": "organization_machine" - }, - { - "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": "organization_machine" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluated_head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluation_reason", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "evaluation_revision", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "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": "github_branch_projection" - }, - { - "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": "github_branch_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conclusion", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "transition_revision", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "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": "github_check_suite_projection" - }, - { - "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": "github_check_suite_projection" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'waiting'", - "generated": null, - "identity": null, - "name": "admission_state", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "changed_paths", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "service_ids", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "selection_mode", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "branch_evaluation_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "trigger_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "publish_state", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "published_at", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "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": "github_environment_trigger" - }, - { - "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": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_login", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_type", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_avatar_url", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "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": "github_installation" - }, - { - "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": "github_installation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "full_name", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "default_branch", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "private", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "html_url", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repo_updated_at", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_kind", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'received'", - "generated": null, - "identity": null, - "name": "processing_state", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "branch_state", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_action", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_status", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_conclusion", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_run_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_started_at", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_subscription_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_plan", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "product_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "amount", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_period_start", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_period_end", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_active_subscription", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "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": "waitlist" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_user_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "provider_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "account_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_provider_account_idx", - "entityType": "indexes", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "email", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_email_idx", - "entityType": "indexes", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "session_user_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "identifier", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "verification_identifier_idx", - "entityType": "indexes", - "schema": "public", - "table": "verification" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_project_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "resource_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_resource_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "saved_state_snapshot_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_saved_state_snapshot_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" = 'queued'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_queued_target_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('planning','deploying')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_started_attempt_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_inngest_run_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_retry_of_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deployment_id", - "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": "environment_deployment_build_output_cursor_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deployment_id", - "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": "environment_deployment_event_cursor_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_saved_state_snapshot_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "environment_saved_state_snapshot_environment_created_at_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_lineage_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_deployment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_lineage_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'environment'\n and \"environment_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_environment_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'project'\n and \"project_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_project_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'organization'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_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": "volume_remove_attempt_deployment_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_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": "volume_remove_attempt_resource_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_attempt_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"retry_of_attempt_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_retry_of_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('awaiting_deployment', 'pending', 'running')\n and \"environment_resource_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_one_active_resource_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "token_hash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_hash_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"state\" in ('pending', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_one_active_org_machine_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_machine_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"is_dial_entry\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_one_dial_entry_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "evaluated_head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_branch_projection_head_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_branch_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_head_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "updated_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"published_revision\" < \"transition_revision\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_unpublished_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "github_environment_trigger_environment_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "created_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"publish_state\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_environment_trigger_pending_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_installation_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_installation_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "full_name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_full_name_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processing_state", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "receipt_sequence", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_identity_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processing_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"processing_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_run_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "account_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": false, - "columns": [ - "inviter_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_inviter_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "session_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "organization_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_IqLeTQthFKCX_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "project_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_4ir4xbHMhQ0b_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_DP4bUoilqg6D_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_lineage_id_resource_lineage_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_krkfQwOLhWDI_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_zQ2aoOGRLIOR_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_lineage_id_service_lineage_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_bvUAv6STak07_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_1xRYD1MXFhcT_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_registry_credential_service_id_service_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_service_id_service_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_dFGv8UXjv6eg_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "variable_id" - ], - "schemaTo": "public", - "tableTo": "variable", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_fgbg4UfEzo6H_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "retry_of_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "NO ACTION", - "name": "environment_deployment_Lofdv4M9OTIQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "saved_state_snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_saved_state_snapshot", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_deployment_92k6WdAbc3AZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_output_Xp68IrJouNSa_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "nameExplicit": false, - "columns": [ - "step_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment_build_step", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_output_XF27nu5BhEx1_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_step_mAOz3YRgkCxT_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_event_nkhfxU66kCFO_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_secret_IIXCU5ibjYPq_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_QseWcaivJkoo_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_pYS3zmT4RKuQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "actor_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_saved_state_snapshot_actor_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "watch_id" - ], - "schemaTo": "public", - "tableTo": "core_operation_watch", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_event_watch_id_core_operation_watch_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_watch_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_3y0HYOFWmCwQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_CUaPaujMBOIs_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_D4DPm1gvv2Di_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_config_snapshot", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_secret_j5H7VPFuELrf_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_aSA9HOqVYGRT_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_YPW21fX4uIUZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_introduction", - "columnsTo": [ - "environment_id", - "node_type", - "node_id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_secret_sC7ALWFOnE38_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_pairing_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_pairing" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "teardown_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_2ncjupSSetid_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "retry_of_attempt_id" - ], - "schemaTo": "public", - "tableTo": "volume_remove_attempt", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_FQapB8QhQW1M_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "enrollment_allocation_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_enrollment_token_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": false, - "columns": [ - "created_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_enrollment_token_created_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_machine_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_branch_projection_Udo5xaDQmVxR_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_check_suite_projection_9FLSHaRf6WgI_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_environment_trigger_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "source_delivery_id", - "source_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_environment_trigger_dspFptTlur3h_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_installation_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_repository_cache_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_billing_state_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_billing_state" - }, - { - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_pkey", - "entityType": "pks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_secret_pkey", - "entityType": "pks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "columns": [ - "organization_id", - "cluster_key" - ], - "nameExplicit": false, - "name": "enrollment_allocation_pkey", - "entityType": "pks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "columns": [ - "organization_id", - "machine_id" - ], - "nameExplicit": false, - "name": "organization_machine_pkey", - "entityType": "pks", - "schema": "public", - "table": "organization_machine" - }, - { - "columns": [ - "installation_id", - "repository_id", - "ref" - ], - "nameExplicit": false, - "name": "github_branch_projection_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "columns": [ - "installation_id", - "repository_id", - "check_suite_id" - ], - "nameExplicit": false, - "name": "github_check_suite_projection_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "columns": [ - "user_id", - "installation_id", - "repository_id" - ], - "nameExplicit": false, - "name": "github_repository_cache_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_repository_cache" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "organization_pkey", - "schema": "public", - "table": "organization", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "account_pkey", - "schema": "public", - "table": "account", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "invitation_pkey", - "schema": "public", - "table": "invitation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "member_pkey", - "schema": "public", - "table": "member", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "session_pkey", - "schema": "public", - "table": "session", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_pkey", - "schema": "public", - "table": "user", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "verification_pkey", - "schema": "public", - "table": "verification", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_pkey", - "schema": "public", - "table": "environment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "project_pkey", - "schema": "public", - "table": "project", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_project_preference_pkey", - "schema": "public", - "table": "user_project_preference", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_canvas_node_position_pkey", - "schema": "public", - "table": "environment_canvas_node_position", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_resource_pkey", - "schema": "public", - "table": "environment_resource", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "resource_lineage_pkey", - "schema": "public", - "table": "resource_lineage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_pkey", - "schema": "public", - "table": "service", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_lineage_pkey", - "schema": "public", - "table": "service_lineage", - "entityType": "pks" - }, - { - "columns": [ - "service_id" - ], - "nameExplicit": false, - "name": "service_registry_credential_pkey", - "schema": "public", - "table": "service_registry_credential", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "variable_pkey", - "schema": "public", - "table": "variable", - "entityType": "pks" - }, - { - "columns": [ - "variable_id" - ], - "nameExplicit": false, - "name": "variable_secret_pkey", - "schema": "public", - "table": "variable_secret", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_pkey", - "schema": "public", - "table": "environment_deployment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_build_output_pkey", - "schema": "public", - "table": "environment_deployment_build_output", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_build_step_pkey", - "schema": "public", - "table": "environment_deployment_build_step", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_event_pkey", - "schema": "public", - "table": "environment_deployment_event", - "entityType": "pks" - }, - { - "columns": [ - "environment_deployment_id" - ], - "nameExplicit": false, - "name": "environment_deployment_secret_pkey", - "schema": "public", - "table": "environment_deployment_secret", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_saved_state_snapshot_pkey", - "schema": "public", - "table": "environment_saved_state_snapshot", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_event_pkey", - "schema": "public", - "table": "core_operation_event", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_watch_pkey", - "schema": "public", - "table": "core_operation_watch", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_pkey", - "schema": "public", - "table": "environment_node_config_snapshot", - "entityType": "pks" - }, - { - "columns": [ - "snapshot_id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_secret_pkey", - "schema": "public", - "table": "environment_node_config_snapshot_secret", - "entityType": "pks" - }, - { - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_pairing_pkey", - "schema": "public", - "table": "organization_pairing", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "teardown_attempt_pkey", - "schema": "public", - "table": "teardown_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "volume_remove_attempt_pkey", - "schema": "public", - "table": "volume_remove_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_enrollment_token_pkey", - "schema": "public", - "table": "machine_enrollment_token", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_remove_attempt_pkey", - "schema": "public", - "table": "machine_remove_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_environment_trigger_pkey", - "schema": "public", - "table": "github_environment_trigger", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_installation_pkey", - "schema": "public", - "table": "github_installation", - "entityType": "pks" - }, - { - "columns": [ - "delivery_id" - ], - "nameExplicit": false, - "name": "github_webhook_delivery_pkey", - "schema": "public", - "table": "github_webhook_delivery", - "entityType": "pks" - }, - { - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_billing_state_pkey", - "schema": "public", - "table": "organization_billing_state", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "waitlist_pkey", - "schema": "public", - "table": "waitlist", - "entityType": "pks" - }, - { - "nameExplicit": false, - "columns": [ - "slug" - ], - "nullsNotDistinct": false, - "name": "organization_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "organization" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "organization_id" - ], - "nullsNotDistinct": false, - "name": "member_user_id_organization_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "token" - ], - "nullsNotDistinct": false, - "name": "session_token_unique", - "entityType": "uniques", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "user_email_unique", - "entityType": "uniques", - "schema": "public", - "table": "user" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "name" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_name_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "namespace" - ], - "nullsNotDistinct": false, - "name": "environment_organization_id_namespace_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "slug" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "id" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "project_id" - ], - "nullsNotDistinct": false, - "name": "user_project_preference_user_id_project_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "resource_type", - "resource_id" - ], - "nullsNotDistinct": false, - "name": "environment_canvas_node_position_environment_id_resource_type_resource_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "variable_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": true, - "columns": [ - "deployment_id", - "build", - "key" - ], - "nullsNotDistinct": false, - "name": "environment_deployment_build_step_key_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_saved_state_snapshot_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "watch_id", - "sequence" - ], - "nullsNotDistinct": false, - "name": "core_operation_event_watch_id_sequence_unique", - "entityType": "uniques", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "operation_id" - ], - "nullsNotDistinct": false, - "name": "core_operation_watch_organization_id_operation_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "core_operation_watch" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id", - "node_type", - "node_id" - ], - "nullsNotDistinct": false, - "name": "environment_node_config_snapshot_environment_deployment_id_node_type_node_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "installation_id", - "repository_id", - "ref", - "branch_evaluation_revision", - "environment_id" - ], - "nullsNotDistinct": false, - "name": "github_environment_trigger_installation_id_repository_id_ref_branch_evaluation_revision_environment_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "installation_id" - ], - "nullsNotDistinct": false, - "name": "github_installation_user_id_installation_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": false, - "columns": [ - "delivery_id", - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_delivery_id_receipt_sequence_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": false, - "columns": [ - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_receipt_sequence_key", - "schema": "public", - "table": "github_webhook_delivery", - "entityType": "uniques" - }, - { - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "waitlist_email_key", - "schema": "public", - "table": "waitlist", - "entityType": "uniques" - }, - { - "value": "\"implementation_type\" in ('volume')", - "name": "environment_resource_implementation_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "service_registry_credential_nonempty_check", - "entityType": "checks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "value": "(\n (\"status\" = 'cancelled' and \"cancellation_requested_at\" is not null and \"finished_at\" is not null)\n or (\"status\" <> 'cancelled')\n )", - "name": "environment_deployment_cancellation_shape_check", - "entityType": "checks", - "schema": "public", - "table": "environment_deployment" - }, - { - "value": "\"expected_kind\" in ('deploy','cert','machine_add','machine_update','machine_lifecycle','core_replace','credential_grant','network_repair','service_restart','managed_dns_reconcile','ingress_configure','ingress_refresh','namespace_remove','volume_create','volume_remove')", - "name": "core_operation_watch_expected_kind_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"cursor_state\" in ('more','caught_up','terminal')", - "name": "core_operation_watch_cursor_state_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"observation_state\" in ('active','core_terminal','cloud_timeout','cloud_cancelled')", - "name": "core_operation_watch_observation_state_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"node_type\" in ('service', 'volume')", - "name": "environment_node_config_snapshot_node_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "environment_node_config_snapshot_secret_nonempty_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "value": "\"node_type\" in ('service', 'volume')", - "name": "environment_node_introduction_node_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "value": "\n (\"removal_started_at\" is null and \"removal_endpoints\" is null)\n or (\"removal_started_at\" is not null and \"removal_endpoints\" is not null and jsonb_typeof(\"removal_endpoints\") = 'array')\n ", - "name": "organization_pairing_removal_shape_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_public_key\" is not null or \"founder_machine_id\" is not null", - "name": "organization_pairing_state_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_claim_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_claim_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_machine_id\" is null or \"founder_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"scope\" in ('environment','project','organization')", - "name": "teardown_attempt_scope_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "\"status\" in ('pending','running','completed','partial','failed','cancelled')", - "name": "teardown_attempt_status_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "(\n (\"scope\" = 'environment' and \"environment_id\" is not null\n and \"project_id\" is not null)\n or (\"scope\" = 'project' and \"project_id\" is not null\n and \"environment_id\" is null)\n or (\"scope\" = 'organization' and \"project_id\" is null\n and \"environment_id\" is null)\n )", - "name": "teardown_attempt_scope_ids_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "teardown_attempt_confirm_data_loss_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "jsonb_typeof(\"targets\") = 'object'", - "name": "teardown_attempt_targets_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "(\n (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_message\" is null)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n )", - "name": "teardown_attempt_status_shape_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "\"status\" in ('awaiting_deployment','pending','running','unknown','completed','partial','failed','cancelled')", - "name": "volume_remove_attempt_status_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "jsonb_typeof(\"volumes\") = 'array'\n and jsonb_array_length(\"volumes\") >= 1", - "name": "volume_remove_attempt_volumes_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "(\n (\"status\" = 'awaiting_deployment'\n and \"environment_deployment_id\" is not null\n and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'unknown' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"started_at\" is null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000\n and (\n (\"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255)\n or (\"inngest_run_id\" is null\n and \"environment_deployment_id\" is not null)\n ))\n )", - "name": "volume_remove_attempt_status_shape_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "enrollment_allocation_cluster_key_check", - "entityType": "checks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "value": "jsonb_typeof(\"assignments\") = 'array'", - "name": "enrollment_allocation_assignments_check", - "entityType": "checks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "value": "\"token_hash\" ~ '^[0-9a-f]{64}$'", - "name": "machine_enrollment_token_hash_check", - "entityType": "checks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "value": "length(\"machine_id\") between 1 and 64 and \"machine_id\" !~ '[[:cntrl:]]'", - "name": "machine_remove_attempt_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "machine_remove_attempt_confirm_data_loss_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "\"state\" in ('pending','running','succeeded','failed','cancelled','missing_identities')", - "name": "machine_remove_attempt_state_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "(\n (\"state\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'succeeded' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" in ('failed','cancelled')\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is not null and \"failure_message\" is not null\n and \"failure_code\" ~ '^[a-z][a-z0-9_]{0,63}$'\n and length(\"failure_message\") between 1 and 1024\n and \"missing_identities\" is null)\n or (\"state\" = 'missing_identities'\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and jsonb_typeof(\"missing_identities\") = 'array'\n and jsonb_array_length(\"missing_identities\") > 0)\n )", - "name": "machine_remove_attempt_state_shape_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "organization_machine_cluster_key_check", - "entityType": "checks", - "schema": "public", - "table": "organization_machine" - }, - { - "value": "\"machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_machine_id_format_check", - "entityType": "checks", - "schema": "public", - "table": "organization_machine" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"last_receipt_sequence\" > 0 and \"evaluation_revision\" > 0", - "name": "github_branch_projection_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_branch_projection_ref_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"state\" in ('active','deleted')", - "name": "github_branch_projection_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"evaluation_reason\" in ('first_observation','changed_paths','rebaseline_all_services','branch_deleted')", - "name": "github_branch_projection_evaluation_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "(\n (\"state\" = 'active' and \"evaluated_head_sha\" ~ '^[0-9a-f]{40}$' and \"evaluation_reason\" != 'branch_deleted')\n or (\"state\" = 'deleted' and \"evaluated_head_sha\" is null and \"evaluation_reason\" = 'branch_deleted')\n )", - "name": "github_branch_projection_head_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"check_suite_id\" > 0 and \"last_receipt_sequence\" > 0", - "name": "github_check_suite_projection_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_check_suite_projection_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_check_suite_projection_status_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"conclusion\" is null or \"conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_check_suite_projection_conclusion_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"transition_revision\" >= 1 and \"published_revision\" >= 0 and \"published_revision\" <= \"transition_revision\"", - "name": "github_check_suite_projection_revision_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"source_receipt_sequence\" > 0 and \"branch_evaluation_revision\" > 0", - "name": "github_environment_trigger_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_environment_trigger_ref_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_environment_trigger_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "cardinality(\"service_ids\") > 0 and array_position(\"service_ids\", null) is null", - "name": "github_environment_trigger_service_ids_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"selection_mode\" in ('paths','all_services')", - "name": "github_environment_trigger_selection_mode_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"reason\" in ('first_observation','changed_paths','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline')", - "name": "github_environment_trigger_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "(\n (\"selection_mode\" = 'paths' and \"reason\" = 'changed_paths')\n or (\"selection_mode\" = 'all_services' and \"reason\" in ('first_observation','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline'))\n )", - "name": "github_environment_trigger_selection_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"trigger_revision\" = \"branch_evaluation_revision\" and \"published_revision\" >= 0 and \"published_revision\" <= \"trigger_revision\"", - "name": "github_environment_trigger_publish_revision_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "(\n (\"publish_state\" = 'pending' and \"published_revision\" < \"trigger_revision\" and \"published_at\" is null)\n or (\"publish_state\" = 'published' and \"published_revision\" = \"trigger_revision\" and \"published_at\" is not null)\n )", - "name": "github_environment_trigger_publish_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "length(trim(\"delivery_id\")) > 0 and \"receipt_sequence\" > 0 and (\"installation_id\" is null or \"installation_id\" > 0) and (\"repository_id\" is null or \"repository_id\" > 0) and (\"check_suite_id\" is null or \"check_suite_id\" > 0)", - "name": "github_webhook_delivery_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"event_kind\" in ('push','check_suite')", - "name": "github_webhook_delivery_event_kind_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"processing_state\" in ('received','processing','processed','rejected','failed','cancelled')", - "name": "github_webhook_delivery_processing_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"outcome\" is null or \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service','malformed','identity_unresolved','unsupported_action','processing_failed','cancelled')", - "name": "github_webhook_delivery_outcome_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"branch_state\" is null or \"branch_state\" in ('active','deleted')", - "name": "github_webhook_delivery_branch_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"failure_code\" is null or \"failure_code\" in ('malformed_payload','identity_unresolved','unsupported_action','observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error','inngest_cancelled')", - "name": "github_webhook_delivery_failure_code_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_action\" is null or \"check_suite_action\" in ('requested','rerequested','completed')", - "name": "github_webhook_delivery_check_suite_action_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_status\" is null or \"check_suite_status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_webhook_delivery_check_suite_status_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_conclusion\" is null or \"check_suite_conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_webhook_delivery_check_suite_conclusion_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"head_sha\" is null or \"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_webhook_delivery_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n (\"processing_state\" = 'received' and \"processing_run_id\" is null and \"processing_started_at\" is null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processing' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service') and \"failure_code\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'rejected' and (\n (\"outcome\" = 'malformed' and \"failure_code\" = 'malformed_payload')\n or (\"outcome\" = 'identity_unresolved' and \"failure_code\" = 'identity_unresolved')\n or (\"outcome\" = 'unsupported_action' and \"failure_code\" = 'unsupported_action')\n ) and \"processing_run_id\" is null and \"processing_started_at\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'failed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'processing_failed' and \"failure_code\" in ('observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error') and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'cancelled' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'cancelled' and \"failure_code\" = 'inngest_cancelled' and \"processed_at\" is not null)\n )", - "name": "github_webhook_delivery_processing_evidence_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"processing_state\" not in ('processing','processed','failed','cancelled')\n or (\n \"installation_id\" is not null\n and \"repository_id\" is not null\n and (\n (\n \"event_kind\" = 'push'\n and \"ref\" is not null\n and \"ref\" like 'refs/heads/%'\n and \"branch_state\" is not null\n and \"check_suite_id\" is null\n and \"check_suite_action\" is null\n and \"check_suite_status\" is null\n and \"check_suite_conclusion\" is null\n and (\n (\"branch_state\" = 'active' and \"head_sha\" is not null)\n or (\"branch_state\" = 'deleted' and \"head_sha\" is null)\n )\n )\n or (\n \"event_kind\" = 'check_suite'\n and \"branch_state\" is null\n and \"head_sha\" is not null\n and \"check_suite_id\" is not null\n and \"check_suite_action\" is not null\n and \"check_suite_status\" is not null\n )\n )\n )\n )", - "name": "github_webhook_delivery_processed_summary_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"outcome\" not in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged')\n or (\"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services') and \"event_kind\" = 'push')\n or (\"outcome\" in ('check_suite_projected','check_suite_unchanged') and \"event_kind\" = 'check_suite')\n )", - "name": "github_webhook_delivery_outcome_kind_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"has_active_subscription\" = false\n OR (\n \"active_subscription_id\" IS NOT NULL\n AND \"current_plan\" IS NOT NULL\n AND \"product_id\" IS NOT NULL\n AND \"amount\" IS NOT NULL\n AND \"currency\" IS NOT NULL\n AND \"current_period_start\" IS NOT NULL\n AND \"current_period_end\" IS NOT NULL\n )\n )", - "name": "organization_billing_state_active_fields_check", - "entityType": "checks", - "schema": "public", - "table": "organization_billing_state" - }, - { - "value": "\"current_plan\" IS NULL OR \"current_plan\" IN ('free', 'solo', 'teams', 'hobby', 'pro')", - "name": "organization_billing_state_current_plan_check", - "entityType": "checks", - "schema": "public", - "table": "organization_billing_state" - } - ], - "renames": [] -} \ No newline at end of file diff --git a/dashboard/drizzle/20260924163456_organization_owned_tables/migration.sql b/dashboard/drizzle/20260924163456_organization_owned_tables/migration.sql deleted file mode 100644 index 887d3ece20..0000000000 --- a/dashboard/drizzle/20260924163456_organization_owned_tables/migration.sql +++ /dev/null @@ -1,49 +0,0 @@ --- Backfill each row's Organization from its parent row, then require it. -ALTER TABLE "service_lineage" ADD COLUMN "organization_id" uuid;--> statement-breakpoint -ALTER TABLE "service_registry_credential" ADD COLUMN "organization_id" uuid;--> statement-breakpoint -ALTER TABLE "variable" ADD COLUMN "organization_id" uuid;--> statement-breakpoint -ALTER TABLE "variable_secret" ADD COLUMN "organization_id" uuid;--> statement-breakpoint -ALTER TABLE "environment_deployment_build_output" ADD COLUMN "organization_id" uuid;--> statement-breakpoint -ALTER TABLE "environment_deployment_build_step" ADD COLUMN "organization_id" uuid;--> statement-breakpoint -ALTER TABLE "environment_deployment_event" ADD COLUMN "organization_id" uuid;--> statement-breakpoint -ALTER TABLE "environment_deployment_secret" ADD COLUMN "organization_id" uuid;--> statement-breakpoint -ALTER TABLE "core_operation_event" ADD COLUMN "organization_id" uuid;--> statement-breakpoint -ALTER TABLE "environment_node_config_snapshot_secret" ADD COLUMN "organization_id" uuid;--> statement-breakpoint -ALTER TABLE "environment_node_introduction_secret" ADD COLUMN "organization_id" uuid;--> statement-breakpoint -ALTER TABLE "github_environment_trigger" ADD COLUMN "organization_id" uuid;--> statement-breakpoint -UPDATE "service_lineage" AS t SET "organization_id" = p."organization_id" FROM "project" AS p WHERE t.project_id = p.id;--> statement-breakpoint -UPDATE "service_registry_credential" AS t SET "organization_id" = p."organization_id" FROM "service" AS p WHERE t.service_id = p.id;--> statement-breakpoint -UPDATE "variable" AS t SET "organization_id" = p."organization_id" FROM "environment" AS p WHERE t.environment_id = p.id;--> statement-breakpoint -UPDATE "variable_secret" AS t SET "organization_id" = p."organization_id" FROM "environment" AS p WHERE t.environment_id = p.id;--> statement-breakpoint -UPDATE "environment_deployment_build_output" AS t SET "organization_id" = p."organization_id" FROM "environment_deployment" AS p WHERE t.deployment_id = p.id;--> statement-breakpoint -UPDATE "environment_deployment_build_step" AS t SET "organization_id" = p."organization_id" FROM "environment_deployment" AS p WHERE t.deployment_id = p.id;--> statement-breakpoint -UPDATE "environment_deployment_event" AS t SET "organization_id" = p."organization_id" FROM "environment_deployment" AS p WHERE t.deployment_id = p.id;--> statement-breakpoint -UPDATE "environment_deployment_secret" AS t SET "organization_id" = p."organization_id" FROM "environment_deployment" AS p WHERE t.environment_deployment_id = p.id;--> statement-breakpoint -UPDATE "core_operation_event" AS t SET "organization_id" = p."organization_id" FROM "core_operation_watch" AS p WHERE t.watch_id = p.id;--> statement-breakpoint -UPDATE "environment_node_config_snapshot_secret" AS t SET "organization_id" = p."organization_id" FROM "environment_node_config_snapshot" AS p WHERE t.snapshot_id = p.id;--> statement-breakpoint -UPDATE "environment_node_introduction_secret" AS t SET "organization_id" = p."organization_id" FROM "environment_node_introduction" AS p WHERE (t.environment_id, t.node_type, t.node_id) = (p.environment_id, p.node_type, p.node_id);--> statement-breakpoint -UPDATE "github_environment_trigger" AS t SET "organization_id" = p."organization_id" FROM "environment" AS p WHERE t.environment_id = p.id;--> statement-breakpoint -ALTER TABLE "service_lineage" ALTER COLUMN "organization_id" SET NOT NULL;--> statement-breakpoint -ALTER TABLE "service_registry_credential" ALTER COLUMN "organization_id" SET NOT NULL;--> statement-breakpoint -ALTER TABLE "variable" ALTER COLUMN "organization_id" SET NOT NULL;--> statement-breakpoint -ALTER TABLE "variable_secret" ALTER COLUMN "organization_id" SET NOT NULL;--> statement-breakpoint -ALTER TABLE "environment_deployment_build_output" ALTER COLUMN "organization_id" SET NOT NULL;--> statement-breakpoint -ALTER TABLE "environment_deployment_build_step" ALTER COLUMN "organization_id" SET NOT NULL;--> statement-breakpoint -ALTER TABLE "environment_deployment_event" ALTER COLUMN "organization_id" SET NOT NULL;--> statement-breakpoint -ALTER TABLE "environment_deployment_secret" ALTER COLUMN "organization_id" SET NOT NULL;--> statement-breakpoint -ALTER TABLE "core_operation_event" ALTER COLUMN "organization_id" SET NOT NULL;--> statement-breakpoint -ALTER TABLE "environment_node_config_snapshot_secret" ALTER COLUMN "organization_id" SET NOT NULL;--> statement-breakpoint -ALTER TABLE "environment_node_introduction_secret" ALTER COLUMN "organization_id" SET NOT NULL;--> statement-breakpoint -ALTER TABLE "github_environment_trigger" ALTER COLUMN "organization_id" SET NOT NULL;--> statement-breakpoint -ALTER TABLE "service_lineage" ADD CONSTRAINT "service_lineage_organization_id_organization_id_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint -ALTER TABLE "service_registry_credential" ADD CONSTRAINT "service_registry_credential_fC7nGiZZPNsV_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint -ALTER TABLE "variable" ADD CONSTRAINT "variable_organization_id_organization_id_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint -ALTER TABLE "variable_secret" ADD CONSTRAINT "variable_secret_organization_id_organization_id_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint -ALTER TABLE "environment_deployment_build_output" ADD CONSTRAINT "environment_deployment_build_output_es7jBaLp3vH8_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint -ALTER TABLE "environment_deployment_build_step" ADD CONSTRAINT "environment_deployment_build_step_28D6Rkzs1URj_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint -ALTER TABLE "environment_deployment_event" ADD CONSTRAINT "environment_deployment_event_eW8RHtn0mFyI_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint -ALTER TABLE "environment_deployment_secret" ADD CONSTRAINT "environment_deployment_secret_IuNsdKp3NB8E_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint -ALTER TABLE "core_operation_event" ADD CONSTRAINT "core_operation_event_organization_id_organization_id_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint -ALTER TABLE "environment_node_config_snapshot_secret" ADD CONSTRAINT "environment_node_config_snapshot_secret_jZo1GvXOHIs5_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint -ALTER TABLE "environment_node_introduction_secret" ADD CONSTRAINT "environment_node_introduction_secret_HaNAhrDo0dtU_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint -ALTER TABLE "github_environment_trigger" ADD CONSTRAINT "github_environment_trigger_organization_id_organization_id_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE; \ No newline at end of file diff --git a/dashboard/drizzle/20260924163456_organization_owned_tables/snapshot.json b/dashboard/drizzle/20260924163456_organization_owned_tables/snapshot.json deleted file mode 100644 index 0c5589ff27..0000000000 --- a/dashboard/drizzle/20260924163456_organization_owned_tables/snapshot.json +++ /dev/null @@ -1,10186 +0,0 @@ -{ - "version": "8", - "dialect": "postgres", - "id": "0634ed4c-6dd7-4da2-9214-33b7fc9868e0", - "prevIds": [ - "2be1642d-f113-4b12-ae2a-b4d0f71f1000" - ], - "ddl": [ - { - "isRlsEnabled": false, - "name": "organization", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "account", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "invitation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "member", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "session", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "user", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "verification", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "project", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "user_project_preference", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_canvas_node_position", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_resource", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "resource_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service_registry_credential", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_build_output", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_build_step", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_event", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_saved_state_snapshot", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "core_operation_event", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "core_operation_watch", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_config_snapshot", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_config_snapshot_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_introduction", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_introduction_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_pairing", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "teardown_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "volume_remove_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "enrollment_allocation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "machine_enrollment_token", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "machine_remove_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_machine", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_branch_projection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_check_suite_projection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_environment_trigger", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_installation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_repository_cache", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_webhook_delivery", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_billing_state", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "waitlist", - "entityType": "tables", - "schema": "public" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logo", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "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": "organization" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "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": "account" - }, - { - "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": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "provider_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token_expires_at", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token_expires_at", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "password", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "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": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inviter_id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "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": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'member'", - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "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": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "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": "session" - }, - { - "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": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "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": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_slug", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "sidebar_open", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ip_address", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_agent", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "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": "user" - }, - { - "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": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "email_verified", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "image", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "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": "verification" - }, - { - "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": "verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "identifier", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expires_at", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "namespace", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "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": "environment" - }, - { - "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": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "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": "project" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "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": "user_project_preference" - }, - { - "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": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_type", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "x", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "y", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "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": "environment_canvas_node_position" - }, - { - "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": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "implementation_type", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "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": "environment_resource" - }, - { - "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": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "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": "resource_lineage" - }, - { - "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": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"autoDeploy\":true,\"waitForCi\":false,\"watchPaths\":[],\"imageUpdate\":{\"type\":\"off\"}}'", - "generated": null, - "identity": null, - "name": "policy", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_registry_credential", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_deployed_at", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "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": "service" - }, - { - "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": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "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": "service_lineage" - }, - { - "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": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "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": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_value", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "trigger_origin", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "saved_state_snapshot_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_action_policy", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'queued'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "core_deploy_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "source_pins", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_producers", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_manifest", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_preview", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "runtime_progress", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancellation_requested_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "dispatch_requested_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "step_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "stderr", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "text", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "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": "environment_deployment_build_output" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "build", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "key", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "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": "environment_deployment_build_step" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completed_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "cached", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "error", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "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": "environment_deployment_build_step" - }, - { - "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": "environment_deployment_build_step" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "progress", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "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": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_build_receipts", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_runtime_outcome", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actor_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volume_deletion_authorizations", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "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": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "watch_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_type", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "schema_version", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "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": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "operation_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expected_kind", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "start_sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "next_sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cursor_state", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "observation_state", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "observation_detail", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deadline_at", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "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": "core_operation_watch" - }, - { - "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": "core_operation_watch" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "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": "environment_node_config_snapshot" - }, - { - "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": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "credential_revision", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "snapshot_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "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": "environment_node_introduction" - }, - { - "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": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "authored_intent", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_pairing_secret", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_started_at", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_endpoints", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_public_key", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_claim_machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_connect_deployment_evaluated_at", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "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": "organization_pairing" - }, - { - "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": "organization_pairing" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "targets", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_resource_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_attempt_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volumes", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "assignments", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token_hash", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "created_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "missing_identities", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_capability", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "is_dial_entry", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "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": "organization_machine" - }, - { - "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": "organization_machine" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluated_head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluation_reason", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "evaluation_revision", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "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": "github_branch_projection" - }, - { - "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": "github_branch_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conclusion", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "transition_revision", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "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": "github_check_suite_projection" - }, - { - "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": "github_check_suite_projection" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'waiting'", - "generated": null, - "identity": null, - "name": "admission_state", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "changed_paths", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "service_ids", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "selection_mode", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "branch_evaluation_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "trigger_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "publish_state", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "published_at", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "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": "github_environment_trigger" - }, - { - "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": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_login", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_type", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_avatar_url", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "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": "github_installation" - }, - { - "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": "github_installation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "full_name", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "default_branch", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "private", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "html_url", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repo_updated_at", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_kind", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'received'", - "generated": null, - "identity": null, - "name": "processing_state", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "branch_state", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_action", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_status", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_conclusion", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_run_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_started_at", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_subscription_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_plan", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "product_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "amount", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_period_start", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_period_end", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_active_subscription", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "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": "waitlist" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_user_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "provider_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "account_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_provider_account_idx", - "entityType": "indexes", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "email", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_email_idx", - "entityType": "indexes", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "session_user_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "identifier", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "verification_identifier_idx", - "entityType": "indexes", - "schema": "public", - "table": "verification" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_project_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "resource_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_resource_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "saved_state_snapshot_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_saved_state_snapshot_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" = 'queued'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_queued_target_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('planning','deploying')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_started_attempt_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_inngest_run_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_retry_of_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deployment_id", - "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": "environment_deployment_build_output_cursor_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deployment_id", - "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": "environment_deployment_event_cursor_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_saved_state_snapshot_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "environment_saved_state_snapshot_environment_created_at_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_lineage_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_deployment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_lineage_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'environment'\n and \"environment_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_environment_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'project'\n and \"project_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_project_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'organization'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_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": "volume_remove_attempt_deployment_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_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": "volume_remove_attempt_resource_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_attempt_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"retry_of_attempt_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_retry_of_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('awaiting_deployment', 'pending', 'running')\n and \"environment_resource_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_one_active_resource_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "token_hash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_hash_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"state\" in ('pending', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_one_active_org_machine_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_machine_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"is_dial_entry\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_one_dial_entry_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "evaluated_head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_branch_projection_head_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_branch_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_head_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "updated_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"published_revision\" < \"transition_revision\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_unpublished_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "github_environment_trigger_environment_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "created_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"publish_state\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_environment_trigger_pending_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_installation_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_installation_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "full_name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_full_name_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processing_state", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "receipt_sequence", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_identity_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processing_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"processing_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_run_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "account_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": false, - "columns": [ - "inviter_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_inviter_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "session_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "organization_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_IqLeTQthFKCX_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "project_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_4ir4xbHMhQ0b_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_DP4bUoilqg6D_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_lineage_id_resource_lineage_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_krkfQwOLhWDI_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_zQ2aoOGRLIOR_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_lineage_id_service_lineage_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_bvUAv6STak07_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_1xRYD1MXFhcT_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_lineage_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_registry_credential_fC7nGiZZPNsV_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_registry_credential_service_id_service_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_service_id_service_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_dFGv8UXjv6eg_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "variable_id" - ], - "schemaTo": "public", - "tableTo": "variable", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_fgbg4UfEzo6H_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "retry_of_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "NO ACTION", - "name": "environment_deployment_Lofdv4M9OTIQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "saved_state_snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_saved_state_snapshot", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_deployment_92k6WdAbc3AZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_output_es7jBaLp3vH8_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_output_Xp68IrJouNSa_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "nameExplicit": false, - "columns": [ - "step_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment_build_step", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_output_XF27nu5BhEx1_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_step_28D6Rkzs1URj_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_step_mAOz3YRgkCxT_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_event_eW8RHtn0mFyI_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_event_nkhfxU66kCFO_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_secret_IuNsdKp3NB8E_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_secret_IIXCU5ibjYPq_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_QseWcaivJkoo_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_pYS3zmT4RKuQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "actor_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_saved_state_snapshot_actor_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_event_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "watch_id" - ], - "schemaTo": "public", - "tableTo": "core_operation_watch", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_event_watch_id_core_operation_watch_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_watch_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_3y0HYOFWmCwQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_CUaPaujMBOIs_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_D4DPm1gvv2Di_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_secret_jZo1GvXOHIs5_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "nameExplicit": false, - "columns": [ - "snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_config_snapshot", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_secret_j5H7VPFuELrf_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_aSA9HOqVYGRT_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_YPW21fX4uIUZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_secret_HaNAhrDo0dtU_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_introduction", - "columnsTo": [ - "environment_id", - "node_type", - "node_id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_secret_sC7ALWFOnE38_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_pairing_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_pairing" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "teardown_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_2ncjupSSetid_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "retry_of_attempt_id" - ], - "schemaTo": "public", - "tableTo": "volume_remove_attempt", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_FQapB8QhQW1M_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "enrollment_allocation_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_enrollment_token_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": false, - "columns": [ - "created_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_enrollment_token_created_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_machine_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_branch_projection_Udo5xaDQmVxR_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_check_suite_projection_9FLSHaRf6WgI_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_environment_trigger_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_environment_trigger_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "source_delivery_id", - "source_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_environment_trigger_dspFptTlur3h_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_installation_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_repository_cache_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_billing_state_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_billing_state" - }, - { - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_pkey", - "entityType": "pks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_secret_pkey", - "entityType": "pks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "columns": [ - "organization_id", - "cluster_key" - ], - "nameExplicit": false, - "name": "enrollment_allocation_pkey", - "entityType": "pks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "columns": [ - "organization_id", - "machine_id" - ], - "nameExplicit": false, - "name": "organization_machine_pkey", - "entityType": "pks", - "schema": "public", - "table": "organization_machine" - }, - { - "columns": [ - "installation_id", - "repository_id", - "ref" - ], - "nameExplicit": false, - "name": "github_branch_projection_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "columns": [ - "installation_id", - "repository_id", - "check_suite_id" - ], - "nameExplicit": false, - "name": "github_check_suite_projection_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "columns": [ - "user_id", - "installation_id", - "repository_id" - ], - "nameExplicit": false, - "name": "github_repository_cache_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_repository_cache" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "organization_pkey", - "schema": "public", - "table": "organization", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "account_pkey", - "schema": "public", - "table": "account", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "invitation_pkey", - "schema": "public", - "table": "invitation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "member_pkey", - "schema": "public", - "table": "member", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "session_pkey", - "schema": "public", - "table": "session", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_pkey", - "schema": "public", - "table": "user", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "verification_pkey", - "schema": "public", - "table": "verification", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_pkey", - "schema": "public", - "table": "environment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "project_pkey", - "schema": "public", - "table": "project", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_project_preference_pkey", - "schema": "public", - "table": "user_project_preference", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_canvas_node_position_pkey", - "schema": "public", - "table": "environment_canvas_node_position", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_resource_pkey", - "schema": "public", - "table": "environment_resource", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "resource_lineage_pkey", - "schema": "public", - "table": "resource_lineage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_pkey", - "schema": "public", - "table": "service", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_lineage_pkey", - "schema": "public", - "table": "service_lineage", - "entityType": "pks" - }, - { - "columns": [ - "service_id" - ], - "nameExplicit": false, - "name": "service_registry_credential_pkey", - "schema": "public", - "table": "service_registry_credential", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "variable_pkey", - "schema": "public", - "table": "variable", - "entityType": "pks" - }, - { - "columns": [ - "variable_id" - ], - "nameExplicit": false, - "name": "variable_secret_pkey", - "schema": "public", - "table": "variable_secret", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_pkey", - "schema": "public", - "table": "environment_deployment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_build_output_pkey", - "schema": "public", - "table": "environment_deployment_build_output", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_build_step_pkey", - "schema": "public", - "table": "environment_deployment_build_step", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_event_pkey", - "schema": "public", - "table": "environment_deployment_event", - "entityType": "pks" - }, - { - "columns": [ - "environment_deployment_id" - ], - "nameExplicit": false, - "name": "environment_deployment_secret_pkey", - "schema": "public", - "table": "environment_deployment_secret", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_saved_state_snapshot_pkey", - "schema": "public", - "table": "environment_saved_state_snapshot", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_event_pkey", - "schema": "public", - "table": "core_operation_event", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_watch_pkey", - "schema": "public", - "table": "core_operation_watch", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_pkey", - "schema": "public", - "table": "environment_node_config_snapshot", - "entityType": "pks" - }, - { - "columns": [ - "snapshot_id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_secret_pkey", - "schema": "public", - "table": "environment_node_config_snapshot_secret", - "entityType": "pks" - }, - { - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_pairing_pkey", - "schema": "public", - "table": "organization_pairing", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "teardown_attempt_pkey", - "schema": "public", - "table": "teardown_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "volume_remove_attempt_pkey", - "schema": "public", - "table": "volume_remove_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_enrollment_token_pkey", - "schema": "public", - "table": "machine_enrollment_token", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_remove_attempt_pkey", - "schema": "public", - "table": "machine_remove_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_environment_trigger_pkey", - "schema": "public", - "table": "github_environment_trigger", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_installation_pkey", - "schema": "public", - "table": "github_installation", - "entityType": "pks" - }, - { - "columns": [ - "delivery_id" - ], - "nameExplicit": false, - "name": "github_webhook_delivery_pkey", - "schema": "public", - "table": "github_webhook_delivery", - "entityType": "pks" - }, - { - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_billing_state_pkey", - "schema": "public", - "table": "organization_billing_state", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "waitlist_pkey", - "schema": "public", - "table": "waitlist", - "entityType": "pks" - }, - { - "nameExplicit": false, - "columns": [ - "slug" - ], - "nullsNotDistinct": false, - "name": "organization_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "organization" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "organization_id" - ], - "nullsNotDistinct": false, - "name": "member_user_id_organization_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "token" - ], - "nullsNotDistinct": false, - "name": "session_token_unique", - "entityType": "uniques", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "user_email_unique", - "entityType": "uniques", - "schema": "public", - "table": "user" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "name" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_name_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "namespace" - ], - "nullsNotDistinct": false, - "name": "environment_organization_id_namespace_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "slug" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "id" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "project_id" - ], - "nullsNotDistinct": false, - "name": "user_project_preference_user_id_project_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "resource_type", - "resource_id" - ], - "nullsNotDistinct": false, - "name": "environment_canvas_node_position_environment_id_resource_type_resource_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "variable_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": true, - "columns": [ - "deployment_id", - "build", - "key" - ], - "nullsNotDistinct": false, - "name": "environment_deployment_build_step_key_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_saved_state_snapshot_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "watch_id", - "sequence" - ], - "nullsNotDistinct": false, - "name": "core_operation_event_watch_id_sequence_unique", - "entityType": "uniques", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "operation_id" - ], - "nullsNotDistinct": false, - "name": "core_operation_watch_organization_id_operation_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "core_operation_watch" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id", - "node_type", - "node_id" - ], - "nullsNotDistinct": false, - "name": "environment_node_config_snapshot_environment_deployment_id_node_type_node_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "installation_id", - "repository_id", - "ref", - "branch_evaluation_revision", - "environment_id" - ], - "nullsNotDistinct": false, - "name": "github_environment_trigger_installation_id_repository_id_ref_branch_evaluation_revision_environment_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "installation_id" - ], - "nullsNotDistinct": false, - "name": "github_installation_user_id_installation_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": false, - "columns": [ - "delivery_id", - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_delivery_id_receipt_sequence_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": false, - "columns": [ - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_receipt_sequence_key", - "schema": "public", - "table": "github_webhook_delivery", - "entityType": "uniques" - }, - { - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "waitlist_email_key", - "schema": "public", - "table": "waitlist", - "entityType": "uniques" - }, - { - "value": "\"implementation_type\" in ('volume')", - "name": "environment_resource_implementation_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "service_registry_credential_nonempty_check", - "entityType": "checks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "value": "(\n (\"status\" = 'cancelled' and \"cancellation_requested_at\" is not null and \"finished_at\" is not null)\n or (\"status\" <> 'cancelled')\n )", - "name": "environment_deployment_cancellation_shape_check", - "entityType": "checks", - "schema": "public", - "table": "environment_deployment" - }, - { - "value": "\"expected_kind\" in ('deploy','cert','machine_add','machine_update','machine_lifecycle','core_replace','credential_grant','network_repair','service_restart','managed_dns_reconcile','ingress_configure','ingress_refresh','namespace_remove','volume_create','volume_remove')", - "name": "core_operation_watch_expected_kind_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"cursor_state\" in ('more','caught_up','terminal')", - "name": "core_operation_watch_cursor_state_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"observation_state\" in ('active','core_terminal','cloud_timeout','cloud_cancelled')", - "name": "core_operation_watch_observation_state_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"node_type\" in ('service', 'volume')", - "name": "environment_node_config_snapshot_node_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "environment_node_config_snapshot_secret_nonempty_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "value": "\"node_type\" in ('service', 'volume')", - "name": "environment_node_introduction_node_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "value": "\n (\"removal_started_at\" is null and \"removal_endpoints\" is null)\n or (\"removal_started_at\" is not null and \"removal_endpoints\" is not null and jsonb_typeof(\"removal_endpoints\") = 'array')\n ", - "name": "organization_pairing_removal_shape_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_public_key\" is not null or \"founder_machine_id\" is not null", - "name": "organization_pairing_state_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_claim_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_claim_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_machine_id\" is null or \"founder_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"scope\" in ('environment','project','organization')", - "name": "teardown_attempt_scope_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "\"status\" in ('pending','running','completed','partial','failed','cancelled')", - "name": "teardown_attempt_status_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "(\n (\"scope\" = 'environment' and \"environment_id\" is not null\n and \"project_id\" is not null)\n or (\"scope\" = 'project' and \"project_id\" is not null\n and \"environment_id\" is null)\n or (\"scope\" = 'organization' and \"project_id\" is null\n and \"environment_id\" is null)\n )", - "name": "teardown_attempt_scope_ids_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "teardown_attempt_confirm_data_loss_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "jsonb_typeof(\"targets\") = 'object'", - "name": "teardown_attempt_targets_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "(\n (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_message\" is null)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n )", - "name": "teardown_attempt_status_shape_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "\"status\" in ('awaiting_deployment','pending','running','unknown','completed','partial','failed','cancelled')", - "name": "volume_remove_attempt_status_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "jsonb_typeof(\"volumes\") = 'array'\n and jsonb_array_length(\"volumes\") >= 1", - "name": "volume_remove_attempt_volumes_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "(\n (\"status\" = 'awaiting_deployment'\n and \"environment_deployment_id\" is not null\n and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'unknown' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"started_at\" is null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000\n and (\n (\"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255)\n or (\"inngest_run_id\" is null\n and \"environment_deployment_id\" is not null)\n ))\n )", - "name": "volume_remove_attempt_status_shape_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "enrollment_allocation_cluster_key_check", - "entityType": "checks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "value": "jsonb_typeof(\"assignments\") = 'array'", - "name": "enrollment_allocation_assignments_check", - "entityType": "checks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "value": "\"token_hash\" ~ '^[0-9a-f]{64}$'", - "name": "machine_enrollment_token_hash_check", - "entityType": "checks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "value": "length(\"machine_id\") between 1 and 64 and \"machine_id\" !~ '[[:cntrl:]]'", - "name": "machine_remove_attempt_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "machine_remove_attempt_confirm_data_loss_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "\"state\" in ('pending','running','succeeded','failed','cancelled','missing_identities')", - "name": "machine_remove_attempt_state_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "(\n (\"state\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'succeeded' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" in ('failed','cancelled')\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is not null and \"failure_message\" is not null\n and \"failure_code\" ~ '^[a-z][a-z0-9_]{0,63}$'\n and length(\"failure_message\") between 1 and 1024\n and \"missing_identities\" is null)\n or (\"state\" = 'missing_identities'\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and jsonb_typeof(\"missing_identities\") = 'array'\n and jsonb_array_length(\"missing_identities\") > 0)\n )", - "name": "machine_remove_attempt_state_shape_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "organization_machine_cluster_key_check", - "entityType": "checks", - "schema": "public", - "table": "organization_machine" - }, - { - "value": "\"machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_machine_id_format_check", - "entityType": "checks", - "schema": "public", - "table": "organization_machine" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"last_receipt_sequence\" > 0 and \"evaluation_revision\" > 0", - "name": "github_branch_projection_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_branch_projection_ref_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"state\" in ('active','deleted')", - "name": "github_branch_projection_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"evaluation_reason\" in ('first_observation','changed_paths','rebaseline_all_services','branch_deleted')", - "name": "github_branch_projection_evaluation_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "(\n (\"state\" = 'active' and \"evaluated_head_sha\" ~ '^[0-9a-f]{40}$' and \"evaluation_reason\" != 'branch_deleted')\n or (\"state\" = 'deleted' and \"evaluated_head_sha\" is null and \"evaluation_reason\" = 'branch_deleted')\n )", - "name": "github_branch_projection_head_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"check_suite_id\" > 0 and \"last_receipt_sequence\" > 0", - "name": "github_check_suite_projection_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_check_suite_projection_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_check_suite_projection_status_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"conclusion\" is null or \"conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_check_suite_projection_conclusion_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"transition_revision\" >= 1 and \"published_revision\" >= 0 and \"published_revision\" <= \"transition_revision\"", - "name": "github_check_suite_projection_revision_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"source_receipt_sequence\" > 0 and \"branch_evaluation_revision\" > 0", - "name": "github_environment_trigger_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_environment_trigger_ref_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_environment_trigger_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "cardinality(\"service_ids\") > 0 and array_position(\"service_ids\", null) is null", - "name": "github_environment_trigger_service_ids_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"selection_mode\" in ('paths','all_services')", - "name": "github_environment_trigger_selection_mode_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"reason\" in ('first_observation','changed_paths','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline')", - "name": "github_environment_trigger_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "(\n (\"selection_mode\" = 'paths' and \"reason\" = 'changed_paths')\n or (\"selection_mode\" = 'all_services' and \"reason\" in ('first_observation','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline'))\n )", - "name": "github_environment_trigger_selection_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"trigger_revision\" = \"branch_evaluation_revision\" and \"published_revision\" >= 0 and \"published_revision\" <= \"trigger_revision\"", - "name": "github_environment_trigger_publish_revision_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "(\n (\"publish_state\" = 'pending' and \"published_revision\" < \"trigger_revision\" and \"published_at\" is null)\n or (\"publish_state\" = 'published' and \"published_revision\" = \"trigger_revision\" and \"published_at\" is not null)\n )", - "name": "github_environment_trigger_publish_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "length(trim(\"delivery_id\")) > 0 and \"receipt_sequence\" > 0 and (\"installation_id\" is null or \"installation_id\" > 0) and (\"repository_id\" is null or \"repository_id\" > 0) and (\"check_suite_id\" is null or \"check_suite_id\" > 0)", - "name": "github_webhook_delivery_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"event_kind\" in ('push','check_suite')", - "name": "github_webhook_delivery_event_kind_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"processing_state\" in ('received','processing','processed','rejected','failed','cancelled')", - "name": "github_webhook_delivery_processing_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"outcome\" is null or \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service','malformed','identity_unresolved','unsupported_action','processing_failed','cancelled')", - "name": "github_webhook_delivery_outcome_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"branch_state\" is null or \"branch_state\" in ('active','deleted')", - "name": "github_webhook_delivery_branch_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"failure_code\" is null or \"failure_code\" in ('malformed_payload','identity_unresolved','unsupported_action','observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error','inngest_cancelled')", - "name": "github_webhook_delivery_failure_code_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_action\" is null or \"check_suite_action\" in ('requested','rerequested','completed')", - "name": "github_webhook_delivery_check_suite_action_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_status\" is null or \"check_suite_status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_webhook_delivery_check_suite_status_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_conclusion\" is null or \"check_suite_conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_webhook_delivery_check_suite_conclusion_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"head_sha\" is null or \"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_webhook_delivery_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n (\"processing_state\" = 'received' and \"processing_run_id\" is null and \"processing_started_at\" is null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processing' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service') and \"failure_code\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'rejected' and (\n (\"outcome\" = 'malformed' and \"failure_code\" = 'malformed_payload')\n or (\"outcome\" = 'identity_unresolved' and \"failure_code\" = 'identity_unresolved')\n or (\"outcome\" = 'unsupported_action' and \"failure_code\" = 'unsupported_action')\n ) and \"processing_run_id\" is null and \"processing_started_at\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'failed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'processing_failed' and \"failure_code\" in ('observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error') and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'cancelled' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'cancelled' and \"failure_code\" = 'inngest_cancelled' and \"processed_at\" is not null)\n )", - "name": "github_webhook_delivery_processing_evidence_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"processing_state\" not in ('processing','processed','failed','cancelled')\n or (\n \"installation_id\" is not null\n and \"repository_id\" is not null\n and (\n (\n \"event_kind\" = 'push'\n and \"ref\" is not null\n and \"ref\" like 'refs/heads/%'\n and \"branch_state\" is not null\n and \"check_suite_id\" is null\n and \"check_suite_action\" is null\n and \"check_suite_status\" is null\n and \"check_suite_conclusion\" is null\n and (\n (\"branch_state\" = 'active' and \"head_sha\" is not null)\n or (\"branch_state\" = 'deleted' and \"head_sha\" is null)\n )\n )\n or (\n \"event_kind\" = 'check_suite'\n and \"branch_state\" is null\n and \"head_sha\" is not null\n and \"check_suite_id\" is not null\n and \"check_suite_action\" is not null\n and \"check_suite_status\" is not null\n )\n )\n )\n )", - "name": "github_webhook_delivery_processed_summary_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"outcome\" not in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged')\n or (\"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services') and \"event_kind\" = 'push')\n or (\"outcome\" in ('check_suite_projected','check_suite_unchanged') and \"event_kind\" = 'check_suite')\n )", - "name": "github_webhook_delivery_outcome_kind_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"has_active_subscription\" = false\n OR (\n \"active_subscription_id\" IS NOT NULL\n AND \"current_plan\" IS NOT NULL\n AND \"product_id\" IS NOT NULL\n AND \"amount\" IS NOT NULL\n AND \"currency\" IS NOT NULL\n AND \"current_period_start\" IS NOT NULL\n AND \"current_period_end\" IS NOT NULL\n )\n )", - "name": "organization_billing_state_active_fields_check", - "entityType": "checks", - "schema": "public", - "table": "organization_billing_state" - }, - { - "value": "\"current_plan\" IS NULL OR \"current_plan\" IN ('free', 'solo', 'teams', 'hobby', 'pro')", - "name": "organization_billing_state_current_plan_check", - "entityType": "checks", - "schema": "public", - "table": "organization_billing_state" - } - ], - "renames": [] -} \ No newline at end of file diff --git a/dashboard/drizzle/20260924164659_organization_change_log/migration.sql b/dashboard/drizzle/20260924164659_organization_change_log/migration.sql deleted file mode 100644 index ff0c6769b6..0000000000 --- a/dashboard/drizzle/20260924164659_organization_change_log/migration.sql +++ /dev/null @@ -1,132 +0,0 @@ -CREATE TABLE "organization_change" ( - "seq" bigint PRIMARY KEY GENERATED ALWAYS AS IDENTITY (sequence name "organization_change_seq_seq" INCREMENT BY 1 MINVALUE 1 MAXVALUE 9223372036854775807 START WITH 1 CACHE 1), - "xid" xid8 DEFAULT pg_current_xact_id() NOT NULL, - "organization_id" uuid NOT NULL, - "source_table" text NOT NULL, - "changed_ids" text[] NOT NULL, - "deleted_ids" text[] NOT NULL, - "all_rows" boolean NOT NULL, - "created_at" timestamp with time zone DEFAULT now() NOT NULL -); ---> statement-breakpoint -CREATE INDEX "organization_change_organization_id_xid_idx" ON "organization_change" ("organization_id","xid"); ---> statement-breakpoint -CREATE INDEX "organization_change_xid_idx" ON "organization_change" ("xid"); ---> statement-breakpoint --- One log row per statement per Organization. Arguments: the Organization column, then the key columns --- (joined with ':' into the collection key). Over 100 keys set all_rows and drop the ids. -CREATE FUNCTION organization_change_log() RETURNS trigger LANGUAGE plpgsql AS $$ -DECLARE - key_expression text; - old_keys text := 'SELECT NULL::uuid AS organization_id, NULL::text AS key WHERE false'; - new_keys text := old_keys; -BEGIN - SELECT string_agg(format('%I::text', key_column), ' || '':'' || ') - INTO key_expression FROM unnest(TG_ARGV[1:TG_NARGS - 1]) AS key_column; - IF TG_OP IN ('INSERT', 'UPDATE') THEN - new_keys := format('SELECT %I AS organization_id, %s AS key FROM new_rows', TG_ARGV[0], key_expression); - END IF; - IF TG_OP IN ('UPDATE', 'DELETE') THEN - old_keys := format('SELECT %I AS organization_id, %s AS key FROM old_rows', TG_ARGV[0], key_expression); - END IF; - EXECUTE format($sql$ - INSERT INTO organization_change (organization_id, source_table, changed_ids, deleted_ids, all_rows) - SELECT organization_id, %L, - CASE WHEN count(*) > 100 THEN '{}' ELSE coalesce(array_agg(key) FILTER (WHERE NOT deleted), '{}') END, - CASE WHEN count(*) > 100 THEN '{}' ELSE coalesce(array_agg(key) FILTER (WHERE deleted), '{}') END, - count(*) > 100 - FROM ( - SELECT DISTINCT organization_id, key, false AS deleted FROM (%s) changed - UNION ALL - (SELECT organization_id, key, true FROM (%s) gone EXCEPT SELECT organization_id, key, true FROM (%s) changed) - ) keys - GROUP BY organization_id - $sql$, TG_TABLE_NAME, new_keys, old_keys, new_keys); - RETURN NULL; -END -$$;--> statement-breakpoint --- Transition tables allow one event per trigger, so each table gets three. -CREATE FUNCTION organization_change_attach(target regclass, organization_column text, VARIADIC key_columns text[]) -RETURNS void LANGUAGE plpgsql AS $$ -DECLARE - arguments text := (SELECT string_agg(quote_literal(argument), ', ') FROM unnest(organization_column || key_columns) AS argument); -BEGIN - EXECUTE format('CREATE TRIGGER organization_change_insert AFTER INSERT ON %s REFERENCING NEW TABLE AS new_rows - FOR EACH STATEMENT EXECUTE FUNCTION organization_change_log(%s)', target, arguments); - EXECUTE format('CREATE TRIGGER organization_change_update AFTER UPDATE ON %s REFERENCING OLD TABLE AS old_rows NEW TABLE AS new_rows - FOR EACH STATEMENT EXECUTE FUNCTION organization_change_log(%s)', target, arguments); - EXECUTE format('CREATE TRIGGER organization_change_delete AFTER DELETE ON %s REFERENCING OLD TABLE AS old_rows - FOR EACH STATEMENT EXECUTE FUNCTION organization_change_log(%s)', target, arguments); -END -$$;--> statement-breakpoint --- Every organization-owned table logs its changes; `organization` is keyed by its own id. --- Organization and key columns match changeSources in src/modules/organization/change-log.sources.ts. -SELECT organization_change_attach('organization', 'id', 'id'); ---> statement-breakpoint -SELECT organization_change_attach('project', 'organization_id', 'id'); ---> statement-breakpoint -SELECT organization_change_attach('environment', 'organization_id', 'id'); ---> statement-breakpoint -SELECT organization_change_attach('user_project_preference', 'organization_id', 'project_id'); ---> statement-breakpoint -SELECT organization_change_attach('service', 'organization_id', 'id'); ---> statement-breakpoint -SELECT organization_change_attach('resource_lineage', 'organization_id', 'id'); ---> statement-breakpoint -SELECT organization_change_attach('environment_resource', 'organization_id', 'id'); ---> statement-breakpoint -SELECT organization_change_attach('environment_canvas_node_position', 'organization_id', 'resource_type', 'resource_id'); ---> statement-breakpoint -SELECT organization_change_attach('environment_deployment', 'organization_id', 'id'); ---> statement-breakpoint -SELECT organization_change_attach('environment_deployment_event', 'organization_id', 'deployment_id'); ---> statement-breakpoint -SELECT organization_change_attach('environment_saved_state_snapshot', 'organization_id', 'id'); ---> statement-breakpoint -SELECT organization_change_attach('environment_node_config_snapshot', 'organization_id', 'id'); ---> statement-breakpoint -SELECT organization_change_attach('environment_node_introduction', 'organization_id', 'node_type', 'node_id'); ---> statement-breakpoint -SELECT organization_change_attach('volume_remove_attempt', 'organization_id', 'id'); ---> statement-breakpoint -SELECT organization_change_attach('organization_pairing', 'organization_id', 'organization_id'); ---> statement-breakpoint -SELECT organization_change_attach('core_operation_event', 'organization_id', 'id'); ---> statement-breakpoint -SELECT organization_change_attach('core_operation_watch', 'organization_id', 'id'); ---> statement-breakpoint -SELECT organization_change_attach('enrollment_allocation', 'organization_id', 'cluster_key'); ---> statement-breakpoint -SELECT organization_change_attach('environment_deployment_build_output', 'organization_id', 'id'); ---> statement-breakpoint -SELECT organization_change_attach('environment_deployment_build_step', 'organization_id', 'id'); ---> statement-breakpoint -SELECT organization_change_attach('environment_deployment_secret', 'organization_id', 'environment_deployment_id'); ---> statement-breakpoint -SELECT organization_change_attach('environment_node_config_snapshot_secret', 'organization_id', 'snapshot_id'); ---> statement-breakpoint -SELECT organization_change_attach('environment_node_introduction_secret', 'organization_id', 'environment_id', 'node_type', 'node_id'); ---> statement-breakpoint -SELECT organization_change_attach('github_environment_trigger', 'organization_id', 'id'); ---> statement-breakpoint -SELECT organization_change_attach('invitation', 'organization_id', 'id'); ---> statement-breakpoint -SELECT organization_change_attach('machine_enrollment_token', 'organization_id', 'id'); ---> statement-breakpoint -SELECT organization_change_attach('machine_remove_attempt', 'organization_id', 'id'); ---> statement-breakpoint -SELECT organization_change_attach('member', 'organization_id', 'id'); ---> statement-breakpoint -SELECT organization_change_attach('organization_billing_state', 'organization_id', 'organization_id'); ---> statement-breakpoint -SELECT organization_change_attach('organization_machine', 'organization_id', 'machine_id'); ---> statement-breakpoint -SELECT organization_change_attach('service_lineage', 'organization_id', 'id'); ---> statement-breakpoint -SELECT organization_change_attach('service_registry_credential', 'organization_id', 'service_id'); ---> statement-breakpoint -SELECT organization_change_attach('teardown_attempt', 'organization_id', 'id'); ---> statement-breakpoint -SELECT organization_change_attach('variable', 'organization_id', 'id'); ---> statement-breakpoint -SELECT organization_change_attach('variable_secret', 'organization_id', 'variable_id'); diff --git a/dashboard/drizzle/20260924164659_organization_change_log/snapshot.json b/dashboard/drizzle/20260924164659_organization_change_log/snapshot.json deleted file mode 100644 index 7df8b33348..0000000000 --- a/dashboard/drizzle/20260924164659_organization_change_log/snapshot.json +++ /dev/null @@ -1,10364 +0,0 @@ -{ - "version": "8", - "dialect": "postgres", - "id": "8e727755-ea1f-48ce-b6fc-8a0efffb508d", - "prevIds": [ - "0634ed4c-6dd7-4da2-9214-33b7fc9868e0" - ], - "ddl": [ - { - "isRlsEnabled": false, - "name": "organization", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_change", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "account", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "invitation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "member", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "session", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "user", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "verification", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "project", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "user_project_preference", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_canvas_node_position", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_resource", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "resource_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service_registry_credential", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_build_output", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_build_step", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_event", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_saved_state_snapshot", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "core_operation_event", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "core_operation_watch", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_config_snapshot", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_config_snapshot_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_introduction", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_introduction_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_pairing", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "teardown_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "volume_remove_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "enrollment_allocation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "machine_enrollment_token", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "machine_remove_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_machine", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_branch_projection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_check_suite_projection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_environment_trigger", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_installation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_repository_cache", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_webhook_delivery", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_billing_state", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "waitlist", - "entityType": "tables", - "schema": "public" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logo", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "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": "organization" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": { - "type": "always", - "name": "organization_change_seq_seq", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "9223372036854775807", - "cache": 1, - "cycle": false - }, - "name": "seq", - "entityType": "columns", - "schema": "public", - "table": "organization_change" - }, - { - "type": "xid8", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "pg_current_xact_id()", - "generated": null, - "identity": null, - "name": "xid", - "entityType": "columns", - "schema": "public", - "table": "organization_change" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_change" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_table", - "entityType": "columns", - "schema": "public", - "table": "organization_change" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "changed_ids", - "entityType": "columns", - "schema": "public", - "table": "organization_change" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "deleted_ids", - "entityType": "columns", - "schema": "public", - "table": "organization_change" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "all_rows", - "entityType": "columns", - "schema": "public", - "table": "organization_change" - }, - { - "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": "organization_change" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "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": "account" - }, - { - "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": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "provider_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token_expires_at", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token_expires_at", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "password", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "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": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inviter_id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "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": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'member'", - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "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": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "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": "session" - }, - { - "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": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "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": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_slug", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "sidebar_open", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ip_address", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_agent", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "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": "user" - }, - { - "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": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "email_verified", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "image", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "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": "verification" - }, - { - "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": "verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "identifier", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expires_at", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "namespace", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "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": "environment" - }, - { - "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": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "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": "project" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "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": "user_project_preference" - }, - { - "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": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_type", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "x", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "y", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "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": "environment_canvas_node_position" - }, - { - "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": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "implementation_type", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "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": "environment_resource" - }, - { - "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": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "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": "resource_lineage" - }, - { - "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": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"autoDeploy\":true,\"waitForCi\":false,\"watchPaths\":[],\"imageUpdate\":{\"type\":\"off\"}}'", - "generated": null, - "identity": null, - "name": "policy", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_registry_credential", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_deployed_at", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "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": "service" - }, - { - "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": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "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": "service_lineage" - }, - { - "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": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "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": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_value", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "trigger_origin", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "saved_state_snapshot_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_action_policy", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'queued'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "core_deploy_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "source_pins", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_producers", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_manifest", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_preview", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "runtime_progress", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancellation_requested_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "dispatch_requested_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "step_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "stderr", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "text", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "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": "environment_deployment_build_output" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "build", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "key", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "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": "environment_deployment_build_step" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completed_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "cached", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "error", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "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": "environment_deployment_build_step" - }, - { - "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": "environment_deployment_build_step" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "progress", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "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": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_build_receipts", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_runtime_outcome", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actor_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volume_deletion_authorizations", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "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": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "watch_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_type", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "schema_version", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "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": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "operation_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expected_kind", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "start_sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "next_sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cursor_state", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "observation_state", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "observation_detail", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deadline_at", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "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": "core_operation_watch" - }, - { - "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": "core_operation_watch" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "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": "environment_node_config_snapshot" - }, - { - "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": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "credential_revision", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "snapshot_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "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": "environment_node_introduction" - }, - { - "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": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "authored_intent", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_pairing_secret", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_started_at", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_endpoints", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_public_key", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_claim_machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_connect_deployment_evaluated_at", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "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": "organization_pairing" - }, - { - "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": "organization_pairing" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "targets", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_resource_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_attempt_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volumes", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "assignments", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token_hash", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "created_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "missing_identities", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_capability", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "is_dial_entry", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "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": "organization_machine" - }, - { - "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": "organization_machine" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluated_head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluation_reason", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "evaluation_revision", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "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": "github_branch_projection" - }, - { - "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": "github_branch_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conclusion", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "transition_revision", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "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": "github_check_suite_projection" - }, - { - "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": "github_check_suite_projection" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'waiting'", - "generated": null, - "identity": null, - "name": "admission_state", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "changed_paths", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "service_ids", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "selection_mode", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "branch_evaluation_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "trigger_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "publish_state", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "published_at", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "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": "github_environment_trigger" - }, - { - "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": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_login", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_type", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_avatar_url", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "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": "github_installation" - }, - { - "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": "github_installation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "full_name", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "default_branch", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "private", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "html_url", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repo_updated_at", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_kind", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'received'", - "generated": null, - "identity": null, - "name": "processing_state", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "branch_state", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_action", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_status", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_conclusion", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_run_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_started_at", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_subscription_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_plan", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "product_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "amount", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_period_start", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_period_end", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_active_subscription", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "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": "waitlist" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "xid", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_change_organization_id_xid_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_change" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "xid", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_change_xid_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_change" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_user_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "provider_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "account_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_provider_account_idx", - "entityType": "indexes", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "email", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_email_idx", - "entityType": "indexes", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "session_user_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "identifier", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "verification_identifier_idx", - "entityType": "indexes", - "schema": "public", - "table": "verification" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_project_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "resource_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_resource_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "saved_state_snapshot_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_saved_state_snapshot_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" = 'queued'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_queued_target_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('planning','deploying')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_started_attempt_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_inngest_run_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_retry_of_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deployment_id", - "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": "environment_deployment_build_output_cursor_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deployment_id", - "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": "environment_deployment_event_cursor_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_saved_state_snapshot_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "environment_saved_state_snapshot_environment_created_at_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_lineage_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_deployment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_lineage_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'environment'\n and \"environment_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_environment_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'project'\n and \"project_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_project_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'organization'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_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": "volume_remove_attempt_deployment_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_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": "volume_remove_attempt_resource_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_attempt_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"retry_of_attempt_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_retry_of_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('awaiting_deployment', 'pending', 'running')\n and \"environment_resource_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_one_active_resource_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "token_hash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_hash_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"state\" in ('pending', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_one_active_org_machine_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_machine_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"is_dial_entry\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_one_dial_entry_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "evaluated_head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_branch_projection_head_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_branch_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_head_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "updated_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"published_revision\" < \"transition_revision\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_unpublished_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "github_environment_trigger_environment_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "created_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"publish_state\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_environment_trigger_pending_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_installation_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_installation_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "full_name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_full_name_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processing_state", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "receipt_sequence", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_identity_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processing_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"processing_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_run_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "account_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": false, - "columns": [ - "inviter_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_inviter_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "session_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "organization_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_IqLeTQthFKCX_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "project_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_4ir4xbHMhQ0b_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_DP4bUoilqg6D_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_lineage_id_resource_lineage_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_krkfQwOLhWDI_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_zQ2aoOGRLIOR_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_lineage_id_service_lineage_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_bvUAv6STak07_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_1xRYD1MXFhcT_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_lineage_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_registry_credential_fC7nGiZZPNsV_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_registry_credential_service_id_service_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_service_id_service_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_dFGv8UXjv6eg_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "variable_id" - ], - "schemaTo": "public", - "tableTo": "variable", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_fgbg4UfEzo6H_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "retry_of_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "NO ACTION", - "name": "environment_deployment_Lofdv4M9OTIQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "saved_state_snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_saved_state_snapshot", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_deployment_92k6WdAbc3AZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_output_es7jBaLp3vH8_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_output_Xp68IrJouNSa_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "nameExplicit": false, - "columns": [ - "step_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment_build_step", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_output_XF27nu5BhEx1_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_step_28D6Rkzs1URj_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_step_mAOz3YRgkCxT_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_event_eW8RHtn0mFyI_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_event_nkhfxU66kCFO_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_secret_IuNsdKp3NB8E_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_secret_IIXCU5ibjYPq_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_QseWcaivJkoo_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_pYS3zmT4RKuQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "actor_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_saved_state_snapshot_actor_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_event_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "watch_id" - ], - "schemaTo": "public", - "tableTo": "core_operation_watch", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_event_watch_id_core_operation_watch_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_watch_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_3y0HYOFWmCwQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_CUaPaujMBOIs_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_D4DPm1gvv2Di_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_secret_jZo1GvXOHIs5_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "nameExplicit": false, - "columns": [ - "snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_config_snapshot", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_secret_j5H7VPFuELrf_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_aSA9HOqVYGRT_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_YPW21fX4uIUZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_secret_HaNAhrDo0dtU_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_introduction", - "columnsTo": [ - "environment_id", - "node_type", - "node_id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_secret_sC7ALWFOnE38_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_pairing_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_pairing" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "teardown_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_2ncjupSSetid_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "retry_of_attempt_id" - ], - "schemaTo": "public", - "tableTo": "volume_remove_attempt", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_FQapB8QhQW1M_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "enrollment_allocation_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_enrollment_token_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": false, - "columns": [ - "created_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_enrollment_token_created_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_machine_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_branch_projection_Udo5xaDQmVxR_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_check_suite_projection_9FLSHaRf6WgI_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_environment_trigger_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_environment_trigger_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "source_delivery_id", - "source_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_environment_trigger_dspFptTlur3h_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_installation_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_repository_cache_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_billing_state_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_billing_state" - }, - { - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_pkey", - "entityType": "pks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_secret_pkey", - "entityType": "pks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "columns": [ - "organization_id", - "cluster_key" - ], - "nameExplicit": false, - "name": "enrollment_allocation_pkey", - "entityType": "pks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "columns": [ - "organization_id", - "machine_id" - ], - "nameExplicit": false, - "name": "organization_machine_pkey", - "entityType": "pks", - "schema": "public", - "table": "organization_machine" - }, - { - "columns": [ - "installation_id", - "repository_id", - "ref" - ], - "nameExplicit": false, - "name": "github_branch_projection_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "columns": [ - "installation_id", - "repository_id", - "check_suite_id" - ], - "nameExplicit": false, - "name": "github_check_suite_projection_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "columns": [ - "user_id", - "installation_id", - "repository_id" - ], - "nameExplicit": false, - "name": "github_repository_cache_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_repository_cache" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "organization_pkey", - "schema": "public", - "table": "organization", - "entityType": "pks" - }, - { - "columns": [ - "seq" - ], - "nameExplicit": false, - "name": "organization_change_pkey", - "schema": "public", - "table": "organization_change", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "account_pkey", - "schema": "public", - "table": "account", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "invitation_pkey", - "schema": "public", - "table": "invitation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "member_pkey", - "schema": "public", - "table": "member", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "session_pkey", - "schema": "public", - "table": "session", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_pkey", - "schema": "public", - "table": "user", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "verification_pkey", - "schema": "public", - "table": "verification", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_pkey", - "schema": "public", - "table": "environment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "project_pkey", - "schema": "public", - "table": "project", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_project_preference_pkey", - "schema": "public", - "table": "user_project_preference", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_canvas_node_position_pkey", - "schema": "public", - "table": "environment_canvas_node_position", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_resource_pkey", - "schema": "public", - "table": "environment_resource", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "resource_lineage_pkey", - "schema": "public", - "table": "resource_lineage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_pkey", - "schema": "public", - "table": "service", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_lineage_pkey", - "schema": "public", - "table": "service_lineage", - "entityType": "pks" - }, - { - "columns": [ - "service_id" - ], - "nameExplicit": false, - "name": "service_registry_credential_pkey", - "schema": "public", - "table": "service_registry_credential", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "variable_pkey", - "schema": "public", - "table": "variable", - "entityType": "pks" - }, - { - "columns": [ - "variable_id" - ], - "nameExplicit": false, - "name": "variable_secret_pkey", - "schema": "public", - "table": "variable_secret", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_pkey", - "schema": "public", - "table": "environment_deployment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_build_output_pkey", - "schema": "public", - "table": "environment_deployment_build_output", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_build_step_pkey", - "schema": "public", - "table": "environment_deployment_build_step", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_event_pkey", - "schema": "public", - "table": "environment_deployment_event", - "entityType": "pks" - }, - { - "columns": [ - "environment_deployment_id" - ], - "nameExplicit": false, - "name": "environment_deployment_secret_pkey", - "schema": "public", - "table": "environment_deployment_secret", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_saved_state_snapshot_pkey", - "schema": "public", - "table": "environment_saved_state_snapshot", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_event_pkey", - "schema": "public", - "table": "core_operation_event", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_watch_pkey", - "schema": "public", - "table": "core_operation_watch", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_pkey", - "schema": "public", - "table": "environment_node_config_snapshot", - "entityType": "pks" - }, - { - "columns": [ - "snapshot_id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_secret_pkey", - "schema": "public", - "table": "environment_node_config_snapshot_secret", - "entityType": "pks" - }, - { - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_pairing_pkey", - "schema": "public", - "table": "organization_pairing", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "teardown_attempt_pkey", - "schema": "public", - "table": "teardown_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "volume_remove_attempt_pkey", - "schema": "public", - "table": "volume_remove_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_enrollment_token_pkey", - "schema": "public", - "table": "machine_enrollment_token", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_remove_attempt_pkey", - "schema": "public", - "table": "machine_remove_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_environment_trigger_pkey", - "schema": "public", - "table": "github_environment_trigger", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_installation_pkey", - "schema": "public", - "table": "github_installation", - "entityType": "pks" - }, - { - "columns": [ - "delivery_id" - ], - "nameExplicit": false, - "name": "github_webhook_delivery_pkey", - "schema": "public", - "table": "github_webhook_delivery", - "entityType": "pks" - }, - { - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_billing_state_pkey", - "schema": "public", - "table": "organization_billing_state", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "waitlist_pkey", - "schema": "public", - "table": "waitlist", - "entityType": "pks" - }, - { - "nameExplicit": false, - "columns": [ - "slug" - ], - "nullsNotDistinct": false, - "name": "organization_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "organization" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "organization_id" - ], - "nullsNotDistinct": false, - "name": "member_user_id_organization_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "token" - ], - "nullsNotDistinct": false, - "name": "session_token_unique", - "entityType": "uniques", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "user_email_unique", - "entityType": "uniques", - "schema": "public", - "table": "user" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "name" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_name_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "namespace" - ], - "nullsNotDistinct": false, - "name": "environment_organization_id_namespace_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "slug" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "id" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "project_id" - ], - "nullsNotDistinct": false, - "name": "user_project_preference_user_id_project_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "resource_type", - "resource_id" - ], - "nullsNotDistinct": false, - "name": "environment_canvas_node_position_environment_id_resource_type_resource_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "variable_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": true, - "columns": [ - "deployment_id", - "build", - "key" - ], - "nullsNotDistinct": false, - "name": "environment_deployment_build_step_key_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_saved_state_snapshot_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "watch_id", - "sequence" - ], - "nullsNotDistinct": false, - "name": "core_operation_event_watch_id_sequence_unique", - "entityType": "uniques", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "operation_id" - ], - "nullsNotDistinct": false, - "name": "core_operation_watch_organization_id_operation_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "core_operation_watch" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id", - "node_type", - "node_id" - ], - "nullsNotDistinct": false, - "name": "environment_node_config_snapshot_environment_deployment_id_node_type_node_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "installation_id", - "repository_id", - "ref", - "branch_evaluation_revision", - "environment_id" - ], - "nullsNotDistinct": false, - "name": "github_environment_trigger_installation_id_repository_id_ref_branch_evaluation_revision_environment_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "installation_id" - ], - "nullsNotDistinct": false, - "name": "github_installation_user_id_installation_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": false, - "columns": [ - "delivery_id", - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_delivery_id_receipt_sequence_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": false, - "columns": [ - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_receipt_sequence_key", - "schema": "public", - "table": "github_webhook_delivery", - "entityType": "uniques" - }, - { - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "waitlist_email_key", - "schema": "public", - "table": "waitlist", - "entityType": "uniques" - }, - { - "value": "\"implementation_type\" in ('volume')", - "name": "environment_resource_implementation_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "service_registry_credential_nonempty_check", - "entityType": "checks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "value": "(\n (\"status\" = 'cancelled' and \"cancellation_requested_at\" is not null and \"finished_at\" is not null)\n or (\"status\" <> 'cancelled')\n )", - "name": "environment_deployment_cancellation_shape_check", - "entityType": "checks", - "schema": "public", - "table": "environment_deployment" - }, - { - "value": "\"expected_kind\" in ('deploy','cert','machine_add','machine_update','machine_lifecycle','core_replace','credential_grant','network_repair','service_restart','managed_dns_reconcile','ingress_configure','ingress_refresh','namespace_remove','volume_create','volume_remove')", - "name": "core_operation_watch_expected_kind_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"cursor_state\" in ('more','caught_up','terminal')", - "name": "core_operation_watch_cursor_state_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"observation_state\" in ('active','core_terminal','cloud_timeout','cloud_cancelled')", - "name": "core_operation_watch_observation_state_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"node_type\" in ('service', 'volume')", - "name": "environment_node_config_snapshot_node_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "environment_node_config_snapshot_secret_nonempty_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "value": "\"node_type\" in ('service', 'volume')", - "name": "environment_node_introduction_node_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "value": "\n (\"removal_started_at\" is null and \"removal_endpoints\" is null)\n or (\"removal_started_at\" is not null and \"removal_endpoints\" is not null and jsonb_typeof(\"removal_endpoints\") = 'array')\n ", - "name": "organization_pairing_removal_shape_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_public_key\" is not null or \"founder_machine_id\" is not null", - "name": "organization_pairing_state_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_claim_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_claim_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_machine_id\" is null or \"founder_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"scope\" in ('environment','project','organization')", - "name": "teardown_attempt_scope_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "\"status\" in ('pending','running','completed','partial','failed','cancelled')", - "name": "teardown_attempt_status_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "(\n (\"scope\" = 'environment' and \"environment_id\" is not null\n and \"project_id\" is not null)\n or (\"scope\" = 'project' and \"project_id\" is not null\n and \"environment_id\" is null)\n or (\"scope\" = 'organization' and \"project_id\" is null\n and \"environment_id\" is null)\n )", - "name": "teardown_attempt_scope_ids_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "teardown_attempt_confirm_data_loss_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "jsonb_typeof(\"targets\") = 'object'", - "name": "teardown_attempt_targets_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "(\n (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_message\" is null)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n )", - "name": "teardown_attempt_status_shape_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "\"status\" in ('awaiting_deployment','pending','running','unknown','completed','partial','failed','cancelled')", - "name": "volume_remove_attempt_status_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "jsonb_typeof(\"volumes\") = 'array'\n and jsonb_array_length(\"volumes\") >= 1", - "name": "volume_remove_attempt_volumes_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "(\n (\"status\" = 'awaiting_deployment'\n and \"environment_deployment_id\" is not null\n and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'unknown' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"started_at\" is null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000\n and (\n (\"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255)\n or (\"inngest_run_id\" is null\n and \"environment_deployment_id\" is not null)\n ))\n )", - "name": "volume_remove_attempt_status_shape_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "enrollment_allocation_cluster_key_check", - "entityType": "checks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "value": "jsonb_typeof(\"assignments\") = 'array'", - "name": "enrollment_allocation_assignments_check", - "entityType": "checks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "value": "\"token_hash\" ~ '^[0-9a-f]{64}$'", - "name": "machine_enrollment_token_hash_check", - "entityType": "checks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "value": "length(\"machine_id\") between 1 and 64 and \"machine_id\" !~ '[[:cntrl:]]'", - "name": "machine_remove_attempt_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "machine_remove_attempt_confirm_data_loss_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "\"state\" in ('pending','running','succeeded','failed','cancelled','missing_identities')", - "name": "machine_remove_attempt_state_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "(\n (\"state\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'succeeded' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" in ('failed','cancelled')\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is not null and \"failure_message\" is not null\n and \"failure_code\" ~ '^[a-z][a-z0-9_]{0,63}$'\n and length(\"failure_message\") between 1 and 1024\n and \"missing_identities\" is null)\n or (\"state\" = 'missing_identities'\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and jsonb_typeof(\"missing_identities\") = 'array'\n and jsonb_array_length(\"missing_identities\") > 0)\n )", - "name": "machine_remove_attempt_state_shape_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "organization_machine_cluster_key_check", - "entityType": "checks", - "schema": "public", - "table": "organization_machine" - }, - { - "value": "\"machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_machine_id_format_check", - "entityType": "checks", - "schema": "public", - "table": "organization_machine" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"last_receipt_sequence\" > 0 and \"evaluation_revision\" > 0", - "name": "github_branch_projection_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_branch_projection_ref_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"state\" in ('active','deleted')", - "name": "github_branch_projection_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"evaluation_reason\" in ('first_observation','changed_paths','rebaseline_all_services','branch_deleted')", - "name": "github_branch_projection_evaluation_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "(\n (\"state\" = 'active' and \"evaluated_head_sha\" ~ '^[0-9a-f]{40}$' and \"evaluation_reason\" != 'branch_deleted')\n or (\"state\" = 'deleted' and \"evaluated_head_sha\" is null and \"evaluation_reason\" = 'branch_deleted')\n )", - "name": "github_branch_projection_head_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"check_suite_id\" > 0 and \"last_receipt_sequence\" > 0", - "name": "github_check_suite_projection_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_check_suite_projection_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_check_suite_projection_status_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"conclusion\" is null or \"conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_check_suite_projection_conclusion_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"transition_revision\" >= 1 and \"published_revision\" >= 0 and \"published_revision\" <= \"transition_revision\"", - "name": "github_check_suite_projection_revision_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"source_receipt_sequence\" > 0 and \"branch_evaluation_revision\" > 0", - "name": "github_environment_trigger_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_environment_trigger_ref_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_environment_trigger_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "cardinality(\"service_ids\") > 0 and array_position(\"service_ids\", null) is null", - "name": "github_environment_trigger_service_ids_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"selection_mode\" in ('paths','all_services')", - "name": "github_environment_trigger_selection_mode_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"reason\" in ('first_observation','changed_paths','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline')", - "name": "github_environment_trigger_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "(\n (\"selection_mode\" = 'paths' and \"reason\" = 'changed_paths')\n or (\"selection_mode\" = 'all_services' and \"reason\" in ('first_observation','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline'))\n )", - "name": "github_environment_trigger_selection_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"trigger_revision\" = \"branch_evaluation_revision\" and \"published_revision\" >= 0 and \"published_revision\" <= \"trigger_revision\"", - "name": "github_environment_trigger_publish_revision_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "(\n (\"publish_state\" = 'pending' and \"published_revision\" < \"trigger_revision\" and \"published_at\" is null)\n or (\"publish_state\" = 'published' and \"published_revision\" = \"trigger_revision\" and \"published_at\" is not null)\n )", - "name": "github_environment_trigger_publish_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "length(trim(\"delivery_id\")) > 0 and \"receipt_sequence\" > 0 and (\"installation_id\" is null or \"installation_id\" > 0) and (\"repository_id\" is null or \"repository_id\" > 0) and (\"check_suite_id\" is null or \"check_suite_id\" > 0)", - "name": "github_webhook_delivery_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"event_kind\" in ('push','check_suite')", - "name": "github_webhook_delivery_event_kind_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"processing_state\" in ('received','processing','processed','rejected','failed','cancelled')", - "name": "github_webhook_delivery_processing_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"outcome\" is null or \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service','malformed','identity_unresolved','unsupported_action','processing_failed','cancelled')", - "name": "github_webhook_delivery_outcome_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"branch_state\" is null or \"branch_state\" in ('active','deleted')", - "name": "github_webhook_delivery_branch_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"failure_code\" is null or \"failure_code\" in ('malformed_payload','identity_unresolved','unsupported_action','observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error','inngest_cancelled')", - "name": "github_webhook_delivery_failure_code_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_action\" is null or \"check_suite_action\" in ('requested','rerequested','completed')", - "name": "github_webhook_delivery_check_suite_action_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_status\" is null or \"check_suite_status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_webhook_delivery_check_suite_status_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_conclusion\" is null or \"check_suite_conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_webhook_delivery_check_suite_conclusion_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"head_sha\" is null or \"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_webhook_delivery_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n (\"processing_state\" = 'received' and \"processing_run_id\" is null and \"processing_started_at\" is null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processing' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service') and \"failure_code\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'rejected' and (\n (\"outcome\" = 'malformed' and \"failure_code\" = 'malformed_payload')\n or (\"outcome\" = 'identity_unresolved' and \"failure_code\" = 'identity_unresolved')\n or (\"outcome\" = 'unsupported_action' and \"failure_code\" = 'unsupported_action')\n ) and \"processing_run_id\" is null and \"processing_started_at\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'failed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'processing_failed' and \"failure_code\" in ('observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error') and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'cancelled' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'cancelled' and \"failure_code\" = 'inngest_cancelled' and \"processed_at\" is not null)\n )", - "name": "github_webhook_delivery_processing_evidence_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"processing_state\" not in ('processing','processed','failed','cancelled')\n or (\n \"installation_id\" is not null\n and \"repository_id\" is not null\n and (\n (\n \"event_kind\" = 'push'\n and \"ref\" is not null\n and \"ref\" like 'refs/heads/%'\n and \"branch_state\" is not null\n and \"check_suite_id\" is null\n and \"check_suite_action\" is null\n and \"check_suite_status\" is null\n and \"check_suite_conclusion\" is null\n and (\n (\"branch_state\" = 'active' and \"head_sha\" is not null)\n or (\"branch_state\" = 'deleted' and \"head_sha\" is null)\n )\n )\n or (\n \"event_kind\" = 'check_suite'\n and \"branch_state\" is null\n and \"head_sha\" is not null\n and \"check_suite_id\" is not null\n and \"check_suite_action\" is not null\n and \"check_suite_status\" is not null\n )\n )\n )\n )", - "name": "github_webhook_delivery_processed_summary_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"outcome\" not in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged')\n or (\"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services') and \"event_kind\" = 'push')\n or (\"outcome\" in ('check_suite_projected','check_suite_unchanged') and \"event_kind\" = 'check_suite')\n )", - "name": "github_webhook_delivery_outcome_kind_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"has_active_subscription\" = false\n OR (\n \"active_subscription_id\" IS NOT NULL\n AND \"current_plan\" IS NOT NULL\n AND \"product_id\" IS NOT NULL\n AND \"amount\" IS NOT NULL\n AND \"currency\" IS NOT NULL\n AND \"current_period_start\" IS NOT NULL\n AND \"current_period_end\" IS NOT NULL\n )\n )", - "name": "organization_billing_state_active_fields_check", - "entityType": "checks", - "schema": "public", - "table": "organization_billing_state" - }, - { - "value": "\"current_plan\" IS NULL OR \"current_plan\" IN ('free', 'solo', 'teams', 'hobby', 'pro')", - "name": "organization_billing_state_current_plan_check", - "entityType": "checks", - "schema": "public", - "table": "organization_billing_state" - } - ], - "renames": [] -} \ No newline at end of file diff --git a/dashboard/drizzle/20260925035041_single_billing_plan/migration.sql b/dashboard/drizzle/20260925035041_single_billing_plan/migration.sql deleted file mode 100644 index 684218c396..0000000000 --- a/dashboard/drizzle/20260925035041_single_billing_plan/migration.sql +++ /dev/null @@ -1,14 +0,0 @@ -ALTER TABLE "organization_billing_state" DROP CONSTRAINT "organization_billing_state_current_plan_check";--> statement-breakpoint -ALTER TABLE "organization_billing_state" DROP CONSTRAINT "organization_billing_state_active_fields_check";--> statement-breakpoint -ALTER TABLE "organization_billing_state" DROP COLUMN "current_plan";--> statement-breakpoint -ALTER TABLE "organization_billing_state" DROP COLUMN "product_id";--> statement-breakpoint -ALTER TABLE "organization_billing_state" DROP COLUMN "amount";--> statement-breakpoint -ALTER TABLE "organization_billing_state" DROP COLUMN "currency";--> statement-breakpoint -ALTER TABLE "organization_billing_state" DROP COLUMN "current_period_start";--> statement-breakpoint -ALTER TABLE "organization_billing_state" ADD CONSTRAINT "organization_billing_state_active_fields_check" CHECK (( - "has_active_subscription" = false - OR ( - "active_subscription_id" IS NOT NULL - AND "current_period_end" IS NOT NULL - ) - )); diff --git a/dashboard/drizzle/20260925035041_single_billing_plan/snapshot.json b/dashboard/drizzle/20260925035041_single_billing_plan/snapshot.json deleted file mode 100644 index fe9efc879c..0000000000 --- a/dashboard/drizzle/20260925035041_single_billing_plan/snapshot.json +++ /dev/null @@ -1,10292 +0,0 @@ -{ - "version": "8", - "dialect": "postgres", - "id": "fc143b08-cafd-4414-98ed-403fed75594e", - "prevIds": [ - "8e727755-ea1f-48ce-b6fc-8a0efffb508d" - ], - "ddl": [ - { - "isRlsEnabled": false, - "name": "organization", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_change", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "account", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "invitation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "member", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "session", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "user", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "verification", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "project", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "user_project_preference", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_canvas_node_position", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_resource", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "resource_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service_registry_credential", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_build_output", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_build_step", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_event", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_saved_state_snapshot", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "core_operation_event", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "core_operation_watch", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_config_snapshot", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_config_snapshot_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_introduction", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_introduction_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_pairing", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "teardown_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "volume_remove_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "enrollment_allocation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "machine_enrollment_token", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "machine_remove_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_machine", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_branch_projection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_check_suite_projection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_environment_trigger", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_installation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_repository_cache", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_webhook_delivery", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_billing_state", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "waitlist", - "entityType": "tables", - "schema": "public" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logo", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "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": "organization" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": { - "type": "always", - "name": "organization_change_seq_seq", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "9223372036854775807", - "cache": 1, - "cycle": false - }, - "name": "seq", - "entityType": "columns", - "schema": "public", - "table": "organization_change" - }, - { - "type": "xid8", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "pg_current_xact_id()", - "generated": null, - "identity": null, - "name": "xid", - "entityType": "columns", - "schema": "public", - "table": "organization_change" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_change" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_table", - "entityType": "columns", - "schema": "public", - "table": "organization_change" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "changed_ids", - "entityType": "columns", - "schema": "public", - "table": "organization_change" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "deleted_ids", - "entityType": "columns", - "schema": "public", - "table": "organization_change" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "all_rows", - "entityType": "columns", - "schema": "public", - "table": "organization_change" - }, - { - "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": "organization_change" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "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": "account" - }, - { - "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": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "provider_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token_expires_at", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token_expires_at", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "password", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "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": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inviter_id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "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": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'member'", - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "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": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "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": "session" - }, - { - "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": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "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": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_slug", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "sidebar_open", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ip_address", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_agent", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "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": "user" - }, - { - "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": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "email_verified", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "image", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "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": "verification" - }, - { - "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": "verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "identifier", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expires_at", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "namespace", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "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": "environment" - }, - { - "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": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "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": "project" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "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": "user_project_preference" - }, - { - "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": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_type", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "x", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "y", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "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": "environment_canvas_node_position" - }, - { - "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": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "implementation_type", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "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": "environment_resource" - }, - { - "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": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "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": "resource_lineage" - }, - { - "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": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"autoDeploy\":true,\"waitForCi\":false,\"watchPaths\":[],\"imageUpdate\":{\"type\":\"off\"}}'", - "generated": null, - "identity": null, - "name": "policy", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_registry_credential", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_deployed_at", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "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": "service" - }, - { - "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": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "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": "service_lineage" - }, - { - "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": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "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": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_value", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "trigger_origin", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "saved_state_snapshot_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_action_policy", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'queued'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "core_deploy_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "source_pins", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_producers", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_manifest", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_preview", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "runtime_progress", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancellation_requested_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "dispatch_requested_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "step_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "stderr", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "text", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "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": "environment_deployment_build_output" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "build", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "key", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "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": "environment_deployment_build_step" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completed_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "cached", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "error", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "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": "environment_deployment_build_step" - }, - { - "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": "environment_deployment_build_step" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "progress", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "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": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_build_receipts", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_runtime_outcome", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actor_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volume_deletion_authorizations", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "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": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "watch_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_type", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "schema_version", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "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": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "operation_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expected_kind", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "start_sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "next_sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cursor_state", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "observation_state", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "observation_detail", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deadline_at", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "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": "core_operation_watch" - }, - { - "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": "core_operation_watch" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "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": "environment_node_config_snapshot" - }, - { - "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": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "credential_revision", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "snapshot_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "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": "environment_node_introduction" - }, - { - "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": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "authored_intent", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_pairing_secret", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_started_at", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_endpoints", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_public_key", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_claim_machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_connect_deployment_evaluated_at", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "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": "organization_pairing" - }, - { - "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": "organization_pairing" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "targets", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_resource_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_attempt_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volumes", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "assignments", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token_hash", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "created_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "missing_identities", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_capability", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "is_dial_entry", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "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": "organization_machine" - }, - { - "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": "organization_machine" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluated_head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluation_reason", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "evaluation_revision", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "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": "github_branch_projection" - }, - { - "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": "github_branch_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conclusion", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "transition_revision", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "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": "github_check_suite_projection" - }, - { - "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": "github_check_suite_projection" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'waiting'", - "generated": null, - "identity": null, - "name": "admission_state", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "changed_paths", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "service_ids", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "selection_mode", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "branch_evaluation_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "trigger_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "publish_state", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "published_at", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "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": "github_environment_trigger" - }, - { - "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": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_login", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_type", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_avatar_url", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "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": "github_installation" - }, - { - "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": "github_installation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "full_name", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "default_branch", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "private", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "html_url", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repo_updated_at", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_kind", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'received'", - "generated": null, - "identity": null, - "name": "processing_state", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "branch_state", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_action", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_status", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_conclusion", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_run_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_started_at", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_subscription_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_period_end", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_active_subscription", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "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": "waitlist" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "xid", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_change_organization_id_xid_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_change" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "xid", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_change_xid_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_change" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_user_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "provider_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "account_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_provider_account_idx", - "entityType": "indexes", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "email", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_email_idx", - "entityType": "indexes", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "session_user_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "identifier", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "verification_identifier_idx", - "entityType": "indexes", - "schema": "public", - "table": "verification" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_project_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "resource_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_resource_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "saved_state_snapshot_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_saved_state_snapshot_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" = 'queued'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_queued_target_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('planning','deploying')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_started_attempt_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_inngest_run_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_retry_of_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deployment_id", - "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": "environment_deployment_build_output_cursor_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deployment_id", - "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": "environment_deployment_event_cursor_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_saved_state_snapshot_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "environment_saved_state_snapshot_environment_created_at_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_lineage_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_deployment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_lineage_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'environment'\n and \"environment_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_environment_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'project'\n and \"project_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_project_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'organization'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_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": "volume_remove_attempt_deployment_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_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": "volume_remove_attempt_resource_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_attempt_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"retry_of_attempt_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_retry_of_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('awaiting_deployment', 'pending', 'running')\n and \"environment_resource_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_one_active_resource_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "token_hash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_hash_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"state\" in ('pending', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_one_active_org_machine_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_machine_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"is_dial_entry\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_one_dial_entry_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "evaluated_head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_branch_projection_head_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_branch_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_head_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "updated_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"published_revision\" < \"transition_revision\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_unpublished_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "github_environment_trigger_environment_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "created_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"publish_state\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_environment_trigger_pending_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_installation_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_installation_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "full_name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_full_name_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processing_state", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "receipt_sequence", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_identity_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processing_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"processing_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_run_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "account_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": false, - "columns": [ - "inviter_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_inviter_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "session_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "organization_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_IqLeTQthFKCX_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "project_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_4ir4xbHMhQ0b_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_DP4bUoilqg6D_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_lineage_id_resource_lineage_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_krkfQwOLhWDI_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_zQ2aoOGRLIOR_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_lineage_id_service_lineage_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_bvUAv6STak07_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_1xRYD1MXFhcT_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_lineage_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_registry_credential_fC7nGiZZPNsV_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_registry_credential_service_id_service_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_service_id_service_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_dFGv8UXjv6eg_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "variable_id" - ], - "schemaTo": "public", - "tableTo": "variable", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_fgbg4UfEzo6H_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "retry_of_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "NO ACTION", - "name": "environment_deployment_Lofdv4M9OTIQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "saved_state_snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_saved_state_snapshot", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_deployment_92k6WdAbc3AZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_output_es7jBaLp3vH8_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_output_Xp68IrJouNSa_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "nameExplicit": false, - "columns": [ - "step_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment_build_step", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_output_XF27nu5BhEx1_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_step_28D6Rkzs1URj_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_step_mAOz3YRgkCxT_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_event_eW8RHtn0mFyI_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_event_nkhfxU66kCFO_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_secret_IuNsdKp3NB8E_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_secret_IIXCU5ibjYPq_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_QseWcaivJkoo_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_pYS3zmT4RKuQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "actor_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_saved_state_snapshot_actor_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_event_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "watch_id" - ], - "schemaTo": "public", - "tableTo": "core_operation_watch", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_event_watch_id_core_operation_watch_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_watch_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_3y0HYOFWmCwQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_CUaPaujMBOIs_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_D4DPm1gvv2Di_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_secret_jZo1GvXOHIs5_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "nameExplicit": false, - "columns": [ - "snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_config_snapshot", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_secret_j5H7VPFuELrf_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_aSA9HOqVYGRT_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_YPW21fX4uIUZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_secret_HaNAhrDo0dtU_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_introduction", - "columnsTo": [ - "environment_id", - "node_type", - "node_id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_secret_sC7ALWFOnE38_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_pairing_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_pairing" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "teardown_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_2ncjupSSetid_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "retry_of_attempt_id" - ], - "schemaTo": "public", - "tableTo": "volume_remove_attempt", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_FQapB8QhQW1M_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "enrollment_allocation_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_enrollment_token_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": false, - "columns": [ - "created_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_enrollment_token_created_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_machine_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_branch_projection_Udo5xaDQmVxR_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_check_suite_projection_9FLSHaRf6WgI_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_environment_trigger_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_environment_trigger_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "source_delivery_id", - "source_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_environment_trigger_dspFptTlur3h_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_installation_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_repository_cache_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_billing_state_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_billing_state" - }, - { - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_pkey", - "entityType": "pks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_secret_pkey", - "entityType": "pks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "columns": [ - "organization_id", - "cluster_key" - ], - "nameExplicit": false, - "name": "enrollment_allocation_pkey", - "entityType": "pks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "columns": [ - "organization_id", - "machine_id" - ], - "nameExplicit": false, - "name": "organization_machine_pkey", - "entityType": "pks", - "schema": "public", - "table": "organization_machine" - }, - { - "columns": [ - "installation_id", - "repository_id", - "ref" - ], - "nameExplicit": false, - "name": "github_branch_projection_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "columns": [ - "installation_id", - "repository_id", - "check_suite_id" - ], - "nameExplicit": false, - "name": "github_check_suite_projection_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "columns": [ - "user_id", - "installation_id", - "repository_id" - ], - "nameExplicit": false, - "name": "github_repository_cache_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_repository_cache" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "organization_pkey", - "schema": "public", - "table": "organization", - "entityType": "pks" - }, - { - "columns": [ - "seq" - ], - "nameExplicit": false, - "name": "organization_change_pkey", - "schema": "public", - "table": "organization_change", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "account_pkey", - "schema": "public", - "table": "account", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "invitation_pkey", - "schema": "public", - "table": "invitation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "member_pkey", - "schema": "public", - "table": "member", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "session_pkey", - "schema": "public", - "table": "session", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_pkey", - "schema": "public", - "table": "user", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "verification_pkey", - "schema": "public", - "table": "verification", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_pkey", - "schema": "public", - "table": "environment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "project_pkey", - "schema": "public", - "table": "project", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_project_preference_pkey", - "schema": "public", - "table": "user_project_preference", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_canvas_node_position_pkey", - "schema": "public", - "table": "environment_canvas_node_position", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_resource_pkey", - "schema": "public", - "table": "environment_resource", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "resource_lineage_pkey", - "schema": "public", - "table": "resource_lineage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_pkey", - "schema": "public", - "table": "service", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_lineage_pkey", - "schema": "public", - "table": "service_lineage", - "entityType": "pks" - }, - { - "columns": [ - "service_id" - ], - "nameExplicit": false, - "name": "service_registry_credential_pkey", - "schema": "public", - "table": "service_registry_credential", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "variable_pkey", - "schema": "public", - "table": "variable", - "entityType": "pks" - }, - { - "columns": [ - "variable_id" - ], - "nameExplicit": false, - "name": "variable_secret_pkey", - "schema": "public", - "table": "variable_secret", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_pkey", - "schema": "public", - "table": "environment_deployment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_build_output_pkey", - "schema": "public", - "table": "environment_deployment_build_output", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_build_step_pkey", - "schema": "public", - "table": "environment_deployment_build_step", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_event_pkey", - "schema": "public", - "table": "environment_deployment_event", - "entityType": "pks" - }, - { - "columns": [ - "environment_deployment_id" - ], - "nameExplicit": false, - "name": "environment_deployment_secret_pkey", - "schema": "public", - "table": "environment_deployment_secret", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_saved_state_snapshot_pkey", - "schema": "public", - "table": "environment_saved_state_snapshot", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_event_pkey", - "schema": "public", - "table": "core_operation_event", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_watch_pkey", - "schema": "public", - "table": "core_operation_watch", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_pkey", - "schema": "public", - "table": "environment_node_config_snapshot", - "entityType": "pks" - }, - { - "columns": [ - "snapshot_id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_secret_pkey", - "schema": "public", - "table": "environment_node_config_snapshot_secret", - "entityType": "pks" - }, - { - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_pairing_pkey", - "schema": "public", - "table": "organization_pairing", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "teardown_attempt_pkey", - "schema": "public", - "table": "teardown_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "volume_remove_attempt_pkey", - "schema": "public", - "table": "volume_remove_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_enrollment_token_pkey", - "schema": "public", - "table": "machine_enrollment_token", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_remove_attempt_pkey", - "schema": "public", - "table": "machine_remove_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_environment_trigger_pkey", - "schema": "public", - "table": "github_environment_trigger", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_installation_pkey", - "schema": "public", - "table": "github_installation", - "entityType": "pks" - }, - { - "columns": [ - "delivery_id" - ], - "nameExplicit": false, - "name": "github_webhook_delivery_pkey", - "schema": "public", - "table": "github_webhook_delivery", - "entityType": "pks" - }, - { - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_billing_state_pkey", - "schema": "public", - "table": "organization_billing_state", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "waitlist_pkey", - "schema": "public", - "table": "waitlist", - "entityType": "pks" - }, - { - "nameExplicit": false, - "columns": [ - "slug" - ], - "nullsNotDistinct": false, - "name": "organization_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "organization" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "organization_id" - ], - "nullsNotDistinct": false, - "name": "member_user_id_organization_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "token" - ], - "nullsNotDistinct": false, - "name": "session_token_unique", - "entityType": "uniques", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "user_email_unique", - "entityType": "uniques", - "schema": "public", - "table": "user" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "name" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_name_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "namespace" - ], - "nullsNotDistinct": false, - "name": "environment_organization_id_namespace_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "slug" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "id" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "project_id" - ], - "nullsNotDistinct": false, - "name": "user_project_preference_user_id_project_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "resource_type", - "resource_id" - ], - "nullsNotDistinct": false, - "name": "environment_canvas_node_position_environment_id_resource_type_resource_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "variable_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": true, - "columns": [ - "deployment_id", - "build", - "key" - ], - "nullsNotDistinct": false, - "name": "environment_deployment_build_step_key_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_saved_state_snapshot_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "watch_id", - "sequence" - ], - "nullsNotDistinct": false, - "name": "core_operation_event_watch_id_sequence_unique", - "entityType": "uniques", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "operation_id" - ], - "nullsNotDistinct": false, - "name": "core_operation_watch_organization_id_operation_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "core_operation_watch" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id", - "node_type", - "node_id" - ], - "nullsNotDistinct": false, - "name": "environment_node_config_snapshot_environment_deployment_id_node_type_node_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "installation_id", - "repository_id", - "ref", - "branch_evaluation_revision", - "environment_id" - ], - "nullsNotDistinct": false, - "name": "github_environment_trigger_installation_id_repository_id_ref_branch_evaluation_revision_environment_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "installation_id" - ], - "nullsNotDistinct": false, - "name": "github_installation_user_id_installation_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": false, - "columns": [ - "delivery_id", - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_delivery_id_receipt_sequence_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": false, - "columns": [ - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_receipt_sequence_key", - "schema": "public", - "table": "github_webhook_delivery", - "entityType": "uniques" - }, - { - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "waitlist_email_key", - "schema": "public", - "table": "waitlist", - "entityType": "uniques" - }, - { - "value": "\"implementation_type\" in ('volume')", - "name": "environment_resource_implementation_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "service_registry_credential_nonempty_check", - "entityType": "checks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "value": "(\n (\"status\" = 'cancelled' and \"cancellation_requested_at\" is not null and \"finished_at\" is not null)\n or (\"status\" <> 'cancelled')\n )", - "name": "environment_deployment_cancellation_shape_check", - "entityType": "checks", - "schema": "public", - "table": "environment_deployment" - }, - { - "value": "\"expected_kind\" in ('deploy','cert','machine_add','machine_update','machine_lifecycle','core_replace','credential_grant','network_repair','service_restart','managed_dns_reconcile','ingress_configure','ingress_refresh','namespace_remove','volume_create','volume_remove')", - "name": "core_operation_watch_expected_kind_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"cursor_state\" in ('more','caught_up','terminal')", - "name": "core_operation_watch_cursor_state_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"observation_state\" in ('active','core_terminal','cloud_timeout','cloud_cancelled')", - "name": "core_operation_watch_observation_state_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"node_type\" in ('service', 'volume')", - "name": "environment_node_config_snapshot_node_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "environment_node_config_snapshot_secret_nonempty_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "value": "\"node_type\" in ('service', 'volume')", - "name": "environment_node_introduction_node_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "value": "\n (\"removal_started_at\" is null and \"removal_endpoints\" is null)\n or (\"removal_started_at\" is not null and \"removal_endpoints\" is not null and jsonb_typeof(\"removal_endpoints\") = 'array')\n ", - "name": "organization_pairing_removal_shape_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_public_key\" is not null or \"founder_machine_id\" is not null", - "name": "organization_pairing_state_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_claim_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_claim_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_machine_id\" is null or \"founder_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"scope\" in ('environment','project','organization')", - "name": "teardown_attempt_scope_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "\"status\" in ('pending','running','completed','partial','failed','cancelled')", - "name": "teardown_attempt_status_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "(\n (\"scope\" = 'environment' and \"environment_id\" is not null\n and \"project_id\" is not null)\n or (\"scope\" = 'project' and \"project_id\" is not null\n and \"environment_id\" is null)\n or (\"scope\" = 'organization' and \"project_id\" is null\n and \"environment_id\" is null)\n )", - "name": "teardown_attempt_scope_ids_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "teardown_attempt_confirm_data_loss_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "jsonb_typeof(\"targets\") = 'object'", - "name": "teardown_attempt_targets_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "(\n (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_message\" is null)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n )", - "name": "teardown_attempt_status_shape_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "\"status\" in ('awaiting_deployment','pending','running','unknown','completed','partial','failed','cancelled')", - "name": "volume_remove_attempt_status_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "jsonb_typeof(\"volumes\") = 'array'\n and jsonb_array_length(\"volumes\") >= 1", - "name": "volume_remove_attempt_volumes_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "(\n (\"status\" = 'awaiting_deployment'\n and \"environment_deployment_id\" is not null\n and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'unknown' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"started_at\" is null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000\n and (\n (\"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255)\n or (\"inngest_run_id\" is null\n and \"environment_deployment_id\" is not null)\n ))\n )", - "name": "volume_remove_attempt_status_shape_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "enrollment_allocation_cluster_key_check", - "entityType": "checks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "value": "jsonb_typeof(\"assignments\") = 'array'", - "name": "enrollment_allocation_assignments_check", - "entityType": "checks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "value": "\"token_hash\" ~ '^[0-9a-f]{64}$'", - "name": "machine_enrollment_token_hash_check", - "entityType": "checks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "value": "length(\"machine_id\") between 1 and 64 and \"machine_id\" !~ '[[:cntrl:]]'", - "name": "machine_remove_attempt_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "machine_remove_attempt_confirm_data_loss_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "\"state\" in ('pending','running','succeeded','failed','cancelled','missing_identities')", - "name": "machine_remove_attempt_state_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "(\n (\"state\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'succeeded' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" in ('failed','cancelled')\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is not null and \"failure_message\" is not null\n and \"failure_code\" ~ '^[a-z][a-z0-9_]{0,63}$'\n and length(\"failure_message\") between 1 and 1024\n and \"missing_identities\" is null)\n or (\"state\" = 'missing_identities'\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and jsonb_typeof(\"missing_identities\") = 'array'\n and jsonb_array_length(\"missing_identities\") > 0)\n )", - "name": "machine_remove_attempt_state_shape_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "organization_machine_cluster_key_check", - "entityType": "checks", - "schema": "public", - "table": "organization_machine" - }, - { - "value": "\"machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_machine_id_format_check", - "entityType": "checks", - "schema": "public", - "table": "organization_machine" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"last_receipt_sequence\" > 0 and \"evaluation_revision\" > 0", - "name": "github_branch_projection_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_branch_projection_ref_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"state\" in ('active','deleted')", - "name": "github_branch_projection_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"evaluation_reason\" in ('first_observation','changed_paths','rebaseline_all_services','branch_deleted')", - "name": "github_branch_projection_evaluation_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "(\n (\"state\" = 'active' and \"evaluated_head_sha\" ~ '^[0-9a-f]{40}$' and \"evaluation_reason\" != 'branch_deleted')\n or (\"state\" = 'deleted' and \"evaluated_head_sha\" is null and \"evaluation_reason\" = 'branch_deleted')\n )", - "name": "github_branch_projection_head_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"check_suite_id\" > 0 and \"last_receipt_sequence\" > 0", - "name": "github_check_suite_projection_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_check_suite_projection_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_check_suite_projection_status_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"conclusion\" is null or \"conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_check_suite_projection_conclusion_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"transition_revision\" >= 1 and \"published_revision\" >= 0 and \"published_revision\" <= \"transition_revision\"", - "name": "github_check_suite_projection_revision_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"source_receipt_sequence\" > 0 and \"branch_evaluation_revision\" > 0", - "name": "github_environment_trigger_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_environment_trigger_ref_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_environment_trigger_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "cardinality(\"service_ids\") > 0 and array_position(\"service_ids\", null) is null", - "name": "github_environment_trigger_service_ids_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"selection_mode\" in ('paths','all_services')", - "name": "github_environment_trigger_selection_mode_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"reason\" in ('first_observation','changed_paths','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline')", - "name": "github_environment_trigger_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "(\n (\"selection_mode\" = 'paths' and \"reason\" = 'changed_paths')\n or (\"selection_mode\" = 'all_services' and \"reason\" in ('first_observation','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline'))\n )", - "name": "github_environment_trigger_selection_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"trigger_revision\" = \"branch_evaluation_revision\" and \"published_revision\" >= 0 and \"published_revision\" <= \"trigger_revision\"", - "name": "github_environment_trigger_publish_revision_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "(\n (\"publish_state\" = 'pending' and \"published_revision\" < \"trigger_revision\" and \"published_at\" is null)\n or (\"publish_state\" = 'published' and \"published_revision\" = \"trigger_revision\" and \"published_at\" is not null)\n )", - "name": "github_environment_trigger_publish_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "length(trim(\"delivery_id\")) > 0 and \"receipt_sequence\" > 0 and (\"installation_id\" is null or \"installation_id\" > 0) and (\"repository_id\" is null or \"repository_id\" > 0) and (\"check_suite_id\" is null or \"check_suite_id\" > 0)", - "name": "github_webhook_delivery_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"event_kind\" in ('push','check_suite')", - "name": "github_webhook_delivery_event_kind_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"processing_state\" in ('received','processing','processed','rejected','failed','cancelled')", - "name": "github_webhook_delivery_processing_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"outcome\" is null or \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service','malformed','identity_unresolved','unsupported_action','processing_failed','cancelled')", - "name": "github_webhook_delivery_outcome_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"branch_state\" is null or \"branch_state\" in ('active','deleted')", - "name": "github_webhook_delivery_branch_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"failure_code\" is null or \"failure_code\" in ('malformed_payload','identity_unresolved','unsupported_action','observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error','inngest_cancelled')", - "name": "github_webhook_delivery_failure_code_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_action\" is null or \"check_suite_action\" in ('requested','rerequested','completed')", - "name": "github_webhook_delivery_check_suite_action_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_status\" is null or \"check_suite_status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_webhook_delivery_check_suite_status_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_conclusion\" is null or \"check_suite_conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_webhook_delivery_check_suite_conclusion_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"head_sha\" is null or \"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_webhook_delivery_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n (\"processing_state\" = 'received' and \"processing_run_id\" is null and \"processing_started_at\" is null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processing' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service') and \"failure_code\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'rejected' and (\n (\"outcome\" = 'malformed' and \"failure_code\" = 'malformed_payload')\n or (\"outcome\" = 'identity_unresolved' and \"failure_code\" = 'identity_unresolved')\n or (\"outcome\" = 'unsupported_action' and \"failure_code\" = 'unsupported_action')\n ) and \"processing_run_id\" is null and \"processing_started_at\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'failed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'processing_failed' and \"failure_code\" in ('observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error') and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'cancelled' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'cancelled' and \"failure_code\" = 'inngest_cancelled' and \"processed_at\" is not null)\n )", - "name": "github_webhook_delivery_processing_evidence_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"processing_state\" not in ('processing','processed','failed','cancelled')\n or (\n \"installation_id\" is not null\n and \"repository_id\" is not null\n and (\n (\n \"event_kind\" = 'push'\n and \"ref\" is not null\n and \"ref\" like 'refs/heads/%'\n and \"branch_state\" is not null\n and \"check_suite_id\" is null\n and \"check_suite_action\" is null\n and \"check_suite_status\" is null\n and \"check_suite_conclusion\" is null\n and (\n (\"branch_state\" = 'active' and \"head_sha\" is not null)\n or (\"branch_state\" = 'deleted' and \"head_sha\" is null)\n )\n )\n or (\n \"event_kind\" = 'check_suite'\n and \"branch_state\" is null\n and \"head_sha\" is not null\n and \"check_suite_id\" is not null\n and \"check_suite_action\" is not null\n and \"check_suite_status\" is not null\n )\n )\n )\n )", - "name": "github_webhook_delivery_processed_summary_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"outcome\" not in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged')\n or (\"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services') and \"event_kind\" = 'push')\n or (\"outcome\" in ('check_suite_projected','check_suite_unchanged') and \"event_kind\" = 'check_suite')\n )", - "name": "github_webhook_delivery_outcome_kind_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"has_active_subscription\" = false\n OR (\n \"active_subscription_id\" IS NOT NULL\n AND \"current_period_end\" IS NOT NULL\n )\n )", - "name": "organization_billing_state_active_fields_check", - "entityType": "checks", - "schema": "public", - "table": "organization_billing_state" - } - ], - "renames": [] -} \ No newline at end of file diff --git a/dashboard/drizzle/20260925035042_open_started_deployments/migration.sql b/dashboard/drizzle/20260925035042_open_started_deployments/migration.sql deleted file mode 100644 index 0b1311f41a..0000000000 --- a/dashboard/drizzle/20260925035042_open_started_deployments/migration.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE "user" ADD COLUMN "open_started_deployments" boolean DEFAULT true NOT NULL; \ No newline at end of file diff --git a/dashboard/drizzle/20260925035042_open_started_deployments/snapshot.json b/dashboard/drizzle/20260925035042_open_started_deployments/snapshot.json deleted file mode 100644 index d93bbdfc16..0000000000 --- a/dashboard/drizzle/20260925035042_open_started_deployments/snapshot.json +++ /dev/null @@ -1,10377 +0,0 @@ -{ - "version": "8", - "dialect": "postgres", - "id": "75f56b1f-011a-46cc-8822-b6d50bd7c1ec", - "prevIds": [ - "8e727755-ea1f-48ce-b6fc-8a0efffb508d" - ], - "ddl": [ - { - "isRlsEnabled": false, - "name": "organization", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_change", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "account", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "invitation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "member", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "session", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "user", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "verification", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "project", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "user_project_preference", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_canvas_node_position", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_resource", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "resource_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service_lineage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "service_registry_credential", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "variable_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_build_output", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_build_step", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_event", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_deployment_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_saved_state_snapshot", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "core_operation_event", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "core_operation_watch", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_config_snapshot", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_config_snapshot_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_introduction", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "environment_node_introduction_secret", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_pairing", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "teardown_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "volume_remove_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "enrollment_allocation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "machine_enrollment_token", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "machine_remove_attempt", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_machine", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_branch_projection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_check_suite_projection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_environment_trigger", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_installation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_repository_cache", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "github_webhook_delivery", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_billing_state", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "waitlist", - "entityType": "tables", - "schema": "public" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logo", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "organization" - }, - { - "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": "organization" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": { - "type": "always", - "name": "organization_change_seq_seq", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "9223372036854775807", - "cache": 1, - "cycle": false - }, - "name": "seq", - "entityType": "columns", - "schema": "public", - "table": "organization_change" - }, - { - "type": "xid8", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "pg_current_xact_id()", - "generated": null, - "identity": null, - "name": "xid", - "entityType": "columns", - "schema": "public", - "table": "organization_change" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_change" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_table", - "entityType": "columns", - "schema": "public", - "table": "organization_change" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "changed_ids", - "entityType": "columns", - "schema": "public", - "table": "organization_change" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "deleted_ids", - "entityType": "columns", - "schema": "public", - "table": "organization_change" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "all_rows", - "entityType": "columns", - "schema": "public", - "table": "organization_change" - }, - { - "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": "organization_change" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "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": "account" - }, - { - "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": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "provider_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id_token", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token_expires_at", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token_expires_at", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "password", - "entityType": "columns", - "schema": "public", - "table": "account" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "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": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inviter_id", - "entityType": "columns", - "schema": "public", - "table": "invitation" - }, - { - "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": "invitation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'member'", - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "member" - }, - { - "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": "member" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "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": "session" - }, - { - "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": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "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": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_id", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_slug", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "sidebar_open", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ip_address", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_agent", - "entityType": "columns", - "schema": "public", - "table": "session" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "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": "user" - }, - { - "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": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "email_verified", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "image", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "open_started_deployments", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "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": "verification" - }, - { - "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": "verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "identifier", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expires_at", - "entityType": "columns", - "schema": "public", - "table": "verification" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "namespace", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "environment" - }, - { - "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": "environment" - }, - { - "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": "environment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns", - "schema": "public", - "table": "project" - }, - { - "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": "project" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "user_project_preference" - }, - { - "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": "user_project_preference" - }, - { - "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": "user_project_preference" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_type", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_id", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "x", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "y", - "entityType": "columns", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "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": "environment_canvas_node_position" - }, - { - "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": "environment_canvas_node_position" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "implementation_type", - "entityType": "columns", - "schema": "public", - "table": "environment_resource" - }, - { - "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": "environment_resource" - }, - { - "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": "environment_resource" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "resource_lineage" - }, - { - "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": "resource_lineage" - }, - { - "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": "resource_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"autoDeploy\":true,\"waitForCi\":false,\"watchPaths\":[],\"imageUpdate\":{\"type\":\"off\"}}'", - "generated": null, - "identity": null, - "name": "policy", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_registry_credential", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_deployed_at", - "entityType": "columns", - "schema": "public", - "table": "service" - }, - { - "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": "service" - }, - { - "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": "service" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns", - "schema": "public", - "table": "service_lineage" - }, - { - "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": "service_lineage" - }, - { - "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": "service_lineage" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns", - "schema": "public", - "table": "service_registry_credential" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns", - "schema": "public", - "table": "variable" - }, - { - "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": "variable" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_value", - "entityType": "columns", - "schema": "public", - "table": "variable_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "trigger_origin", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "saved_state_snapshot_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_action_policy", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'queued'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "core_deploy_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "source_pins", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_producers", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_manifest", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_preview", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "runtime_progress", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancellation_requested_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "dispatch_requested_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "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": "environment_deployment" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "step_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "stderr", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "text", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "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": "environment_deployment_build_output" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "build", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "key", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "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": "environment_deployment_build_step" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completed_at", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "cached", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "error", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "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": "environment_deployment_build_step" - }, - { - "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": "environment_deployment_build_step" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "progress", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "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": "environment_deployment_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_build_receipts", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_runtime_outcome", - "entityType": "columns", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actor_id", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volume_deletion_authorizations", - "entityType": "columns", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "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": "environment_saved_state_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "watch_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_type", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "schema_version", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "core_operation_event" - }, - { - "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": "core_operation_event" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "operation_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expected_kind", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "start_sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "next_sequence", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cursor_state", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "observation_state", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "observation_detail", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deadline_at", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "core_operation_watch" - }, - { - "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": "core_operation_watch" - }, - { - "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": "core_operation_watch" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "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": "environment_node_config_snapshot" - }, - { - "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": "environment_node_config_snapshot" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "credential_revision", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "snapshot_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "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": "environment_node_introduction" - }, - { - "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": "environment_node_introduction" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "authored_intent", - "entityType": "columns", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_pairing_secret", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_started_at", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_endpoints", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_public_key", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_claim_machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_connect_deployment_evaluated_at", - "entityType": "columns", - "schema": "public", - "table": "organization_pairing" - }, - { - "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": "organization_pairing" - }, - { - "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": "organization_pairing" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "targets", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "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": "teardown_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_resource_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_attempt_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volumes", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "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": "volume_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "assignments", - "entityType": "columns", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token_hash", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "created_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "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": "machine_enrollment_token" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "missing_identities", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "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": "machine_remove_attempt" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_capability", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "is_dial_entry", - "entityType": "columns", - "schema": "public", - "table": "organization_machine" - }, - { - "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": "organization_machine" - }, - { - "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": "organization_machine" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluated_head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluation_reason", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "evaluation_revision", - "entityType": "columns", - "schema": "public", - "table": "github_branch_projection" - }, - { - "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": "github_branch_projection" - }, - { - "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": "github_branch_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conclusion", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "transition_revision", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "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": "github_check_suite_projection" - }, - { - "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": "github_check_suite_projection" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'waiting'", - "generated": null, - "identity": null, - "name": "admission_state", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "changed_paths", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "service_ids", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "selection_mode", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "branch_evaluation_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "trigger_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "publish_state", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "published_at", - "entityType": "columns", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "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": "github_environment_trigger" - }, - { - "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": "github_environment_trigger" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_login", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_type", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_avatar_url", - "entityType": "columns", - "schema": "public", - "table": "github_installation" - }, - { - "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": "github_installation" - }, - { - "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": "github_installation" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "full_name", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "default_branch", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "private", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "html_url", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repo_updated_at", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns", - "schema": "public", - "table": "github_repository_cache" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "delivery_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "receipt_sequence", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_kind", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'received'", - "generated": null, - "identity": null, - "name": "processing_state", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "branch_state", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_action", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_status", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_conclusion", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_run_id", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_started_at", - "entityType": "columns", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "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": "github_webhook_delivery" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_subscription_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_plan", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "product_id", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "amount", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_period_start", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_period_end", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_active_subscription", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns", - "schema": "public", - "table": "organization_billing_state" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "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": "waitlist" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "xid", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_change_organization_id_xid_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_change" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "xid", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_change_xid_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_change" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_user_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "provider_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "account_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_provider_account_idx", - "entityType": "indexes", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "email", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_email_idx", - "entityType": "indexes", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "session_user_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "identifier", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "verification_identifier_idx", - "entityType": "indexes", - "schema": "public", - "table": "verification" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_project_idx", - "entityType": "indexes", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "resource_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_resource_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "saved_state_snapshot_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_saved_state_snapshot_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" = 'queued'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_queued_target_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('planning','deploying')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_started_attempt_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_inngest_run_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_retry_of_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deployment_id", - "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": "environment_deployment_build_output_cursor_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deployment_id", - "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": "environment_deployment_event_cursor_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_saved_state_snapshot_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "environment_saved_state_snapshot_environment_created_at_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_lineage_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_deployment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_lineage_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_project_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'environment'\n and \"environment_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_environment_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'project'\n and \"project_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_project_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'organization'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_organization_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_environment_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_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": "volume_remove_attempt_deployment_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_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": "volume_remove_attempt_resource_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_attempt_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"retry_of_attempt_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_retry_of_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('awaiting_deployment', 'pending', 'running')\n and \"environment_resource_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_one_active_resource_idx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "token_hash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_hash_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_organization_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_inngest_run_uidx", - "entityType": "indexes", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"state\" in ('pending', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_one_active_org_machine_idx", - "entityType": "indexes", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_machine_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"is_dial_entry\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_one_dial_entry_idx", - "entityType": "indexes", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "evaluated_head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_branch_projection_head_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_branch_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_head_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "updated_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"published_revision\" < \"transition_revision\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_unpublished_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "github_environment_trigger_environment_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "created_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"publish_state\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_environment_trigger_pending_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_installation_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_installation_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_user_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "full_name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_full_name_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processing_state", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "receipt_sequence", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_identity_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processing_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"processing_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_run_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "account_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "account" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": false, - "columns": [ - "inviter_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_inviter_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "invitation" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "session_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "organization_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_IqLeTQthFKCX_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "project_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_4ir4xbHMhQ0b_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_DP4bUoilqg6D_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_lineage_id_resource_lineage_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_krkfQwOLhWDI_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_zQ2aoOGRLIOR_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_lineage_id_service_lineage_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_bvUAv6STak07_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_1xRYD1MXFhcT_fkey", - "entityType": "fks", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_lineage_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_lineage_project_id_project_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_registry_credential_fC7nGiZZPNsV_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_registry_credential_service_id_service_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_service_id_service_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_dFGv8UXjv6eg_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "variable_id" - ], - "schemaTo": "public", - "tableTo": "variable", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_fgbg4UfEzo6H_fkey", - "entityType": "fks", - "schema": "public", - "table": "variable_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "retry_of_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "NO ACTION", - "name": "environment_deployment_Lofdv4M9OTIQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "saved_state_snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_saved_state_snapshot", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_deployment_92k6WdAbc3AZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_output_es7jBaLp3vH8_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_output_Xp68IrJouNSa_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "nameExplicit": false, - "columns": [ - "step_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment_build_step", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_output_XF27nu5BhEx1_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_output" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_step_28D6Rkzs1URj_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_step_mAOz3YRgkCxT_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_event_eW8RHtn0mFyI_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_event_nkhfxU66kCFO_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_secret_IuNsdKp3NB8E_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_secret_IIXCU5ibjYPq_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_deployment_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_QseWcaivJkoo_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_pYS3zmT4RKuQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "actor_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_saved_state_snapshot_actor_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_event_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "watch_id" - ], - "schemaTo": "public", - "tableTo": "core_operation_watch", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_event_watch_id_core_operation_watch_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_watch_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_3y0HYOFWmCwQ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_CUaPaujMBOIs_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_D4DPm1gvv2Di_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_secret_jZo1GvXOHIs5_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "nameExplicit": false, - "columns": [ - "snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_config_snapshot", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_secret_j5H7VPFuELrf_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_aSA9HOqVYGRT_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_YPW21fX4uIUZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_secret_HaNAhrDo0dtU_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_introduction", - "columnsTo": [ - "environment_id", - "node_type", - "node_id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_secret_sC7ALWFOnE38_fkey", - "entityType": "fks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_pairing_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_pairing" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "teardown_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_2ncjupSSetid_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "retry_of_attempt_id" - ], - "schemaTo": "public", - "tableTo": "volume_remove_attempt", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_FQapB8QhQW1M_fkey", - "entityType": "fks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "enrollment_allocation_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_enrollment_token_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": false, - "columns": [ - "created_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_enrollment_token_created_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_machine_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_machine" - }, - { - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_branch_projection_Udo5xaDQmVxR_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_check_suite_projection_9FLSHaRf6WgI_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_environment_trigger_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_environment_trigger_environment_id_environment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "source_delivery_id", - "source_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_environment_trigger_dspFptTlur3h_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_installation_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_repository_cache_user_id_user_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "github_repository_cache" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_billing_state_organization_id_organization_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_billing_state" - }, - { - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_pkey", - "entityType": "pks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_secret_pkey", - "entityType": "pks", - "schema": "public", - "table": "environment_node_introduction_secret" - }, - { - "columns": [ - "organization_id", - "cluster_key" - ], - "nameExplicit": false, - "name": "enrollment_allocation_pkey", - "entityType": "pks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "columns": [ - "organization_id", - "machine_id" - ], - "nameExplicit": false, - "name": "organization_machine_pkey", - "entityType": "pks", - "schema": "public", - "table": "organization_machine" - }, - { - "columns": [ - "installation_id", - "repository_id", - "ref" - ], - "nameExplicit": false, - "name": "github_branch_projection_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "columns": [ - "installation_id", - "repository_id", - "check_suite_id" - ], - "nameExplicit": false, - "name": "github_check_suite_projection_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "columns": [ - "user_id", - "installation_id", - "repository_id" - ], - "nameExplicit": false, - "name": "github_repository_cache_pkey", - "entityType": "pks", - "schema": "public", - "table": "github_repository_cache" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "organization_pkey", - "schema": "public", - "table": "organization", - "entityType": "pks" - }, - { - "columns": [ - "seq" - ], - "nameExplicit": false, - "name": "organization_change_pkey", - "schema": "public", - "table": "organization_change", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "account_pkey", - "schema": "public", - "table": "account", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "invitation_pkey", - "schema": "public", - "table": "invitation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "member_pkey", - "schema": "public", - "table": "member", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "session_pkey", - "schema": "public", - "table": "session", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_pkey", - "schema": "public", - "table": "user", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "verification_pkey", - "schema": "public", - "table": "verification", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_pkey", - "schema": "public", - "table": "environment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "project_pkey", - "schema": "public", - "table": "project", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_project_preference_pkey", - "schema": "public", - "table": "user_project_preference", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_canvas_node_position_pkey", - "schema": "public", - "table": "environment_canvas_node_position", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_resource_pkey", - "schema": "public", - "table": "environment_resource", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "resource_lineage_pkey", - "schema": "public", - "table": "resource_lineage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_pkey", - "schema": "public", - "table": "service", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_lineage_pkey", - "schema": "public", - "table": "service_lineage", - "entityType": "pks" - }, - { - "columns": [ - "service_id" - ], - "nameExplicit": false, - "name": "service_registry_credential_pkey", - "schema": "public", - "table": "service_registry_credential", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "variable_pkey", - "schema": "public", - "table": "variable", - "entityType": "pks" - }, - { - "columns": [ - "variable_id" - ], - "nameExplicit": false, - "name": "variable_secret_pkey", - "schema": "public", - "table": "variable_secret", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_pkey", - "schema": "public", - "table": "environment_deployment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_build_output_pkey", - "schema": "public", - "table": "environment_deployment_build_output", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_build_step_pkey", - "schema": "public", - "table": "environment_deployment_build_step", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_event_pkey", - "schema": "public", - "table": "environment_deployment_event", - "entityType": "pks" - }, - { - "columns": [ - "environment_deployment_id" - ], - "nameExplicit": false, - "name": "environment_deployment_secret_pkey", - "schema": "public", - "table": "environment_deployment_secret", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_saved_state_snapshot_pkey", - "schema": "public", - "table": "environment_saved_state_snapshot", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_event_pkey", - "schema": "public", - "table": "core_operation_event", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_watch_pkey", - "schema": "public", - "table": "core_operation_watch", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_pkey", - "schema": "public", - "table": "environment_node_config_snapshot", - "entityType": "pks" - }, - { - "columns": [ - "snapshot_id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_secret_pkey", - "schema": "public", - "table": "environment_node_config_snapshot_secret", - "entityType": "pks" - }, - { - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_pairing_pkey", - "schema": "public", - "table": "organization_pairing", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "teardown_attempt_pkey", - "schema": "public", - "table": "teardown_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "volume_remove_attempt_pkey", - "schema": "public", - "table": "volume_remove_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_enrollment_token_pkey", - "schema": "public", - "table": "machine_enrollment_token", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_remove_attempt_pkey", - "schema": "public", - "table": "machine_remove_attempt", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_environment_trigger_pkey", - "schema": "public", - "table": "github_environment_trigger", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_installation_pkey", - "schema": "public", - "table": "github_installation", - "entityType": "pks" - }, - { - "columns": [ - "delivery_id" - ], - "nameExplicit": false, - "name": "github_webhook_delivery_pkey", - "schema": "public", - "table": "github_webhook_delivery", - "entityType": "pks" - }, - { - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_billing_state_pkey", - "schema": "public", - "table": "organization_billing_state", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "waitlist_pkey", - "schema": "public", - "table": "waitlist", - "entityType": "pks" - }, - { - "nameExplicit": false, - "columns": [ - "slug" - ], - "nullsNotDistinct": false, - "name": "organization_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "organization" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "organization_id" - ], - "nullsNotDistinct": false, - "name": "member_user_id_organization_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "member" - }, - { - "nameExplicit": false, - "columns": [ - "token" - ], - "nullsNotDistinct": false, - "name": "session_token_unique", - "entityType": "uniques", - "schema": "public", - "table": "session" - }, - { - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "user_email_unique", - "entityType": "uniques", - "schema": "public", - "table": "user" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "name" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_name_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "namespace" - ], - "nullsNotDistinct": false, - "name": "environment_organization_id_namespace_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "slug" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "id" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "project" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "project_id" - ], - "nullsNotDistinct": false, - "name": "user_project_preference_user_id_project_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "user_project_preference" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "resource_type", - "resource_id" - ], - "nullsNotDistinct": false, - "name": "environment_canvas_node_position_environment_id_resource_type_resource_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_canvas_node_position" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_resource" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "resource_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_lineage_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_canonical_slug_unique", - "entityType": "uniques", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "service_lineage" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "variable_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "variable" - }, - { - "nameExplicit": true, - "columns": [ - "deployment_id", - "build", - "key" - ], - "nullsNotDistinct": false, - "name": "environment_deployment_build_step_key_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_deployment_build_step" - }, - { - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_saved_state_snapshot_environment_id_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_saved_state_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "watch_id", - "sequence" - ], - "nullsNotDistinct": false, - "name": "core_operation_event_watch_id_sequence_unique", - "entityType": "uniques", - "schema": "public", - "table": "core_operation_event" - }, - { - "nameExplicit": false, - "columns": [ - "organization_id", - "operation_id" - ], - "nullsNotDistinct": false, - "name": "core_operation_watch_organization_id_operation_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "core_operation_watch" - }, - { - "nameExplicit": false, - "columns": [ - "environment_deployment_id", - "node_type", - "node_id" - ], - "nullsNotDistinct": false, - "name": "environment_node_config_snapshot_environment_deployment_id_node_type_node_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "nameExplicit": false, - "columns": [ - "installation_id", - "repository_id", - "ref", - "branch_evaluation_revision", - "environment_id" - ], - "nullsNotDistinct": false, - "name": "github_environment_trigger_installation_id_repository_id_ref_branch_evaluation_revision_environment_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "nameExplicit": false, - "columns": [ - "user_id", - "installation_id" - ], - "nullsNotDistinct": false, - "name": "github_installation_user_id_installation_id_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_installation" - }, - { - "nameExplicit": false, - "columns": [ - "delivery_id", - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_delivery_id_receipt_sequence_unique", - "entityType": "uniques", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "nameExplicit": false, - "columns": [ - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_receipt_sequence_key", - "schema": "public", - "table": "github_webhook_delivery", - "entityType": "uniques" - }, - { - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "waitlist_email_key", - "schema": "public", - "table": "waitlist", - "entityType": "uniques" - }, - { - "value": "\"implementation_type\" in ('volume')", - "name": "environment_resource_implementation_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_resource" - }, - { - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "service_registry_credential_nonempty_check", - "entityType": "checks", - "schema": "public", - "table": "service_registry_credential" - }, - { - "value": "(\n (\"status\" = 'cancelled' and \"cancellation_requested_at\" is not null and \"finished_at\" is not null)\n or (\"status\" <> 'cancelled')\n )", - "name": "environment_deployment_cancellation_shape_check", - "entityType": "checks", - "schema": "public", - "table": "environment_deployment" - }, - { - "value": "\"expected_kind\" in ('deploy','cert','machine_add','machine_update','machine_lifecycle','core_replace','credential_grant','network_repair','service_restart','managed_dns_reconcile','ingress_configure','ingress_refresh','namespace_remove','volume_create','volume_remove')", - "name": "core_operation_watch_expected_kind_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"cursor_state\" in ('more','caught_up','terminal')", - "name": "core_operation_watch_cursor_state_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"observation_state\" in ('active','core_terminal','cloud_timeout','cloud_cancelled')", - "name": "core_operation_watch_observation_state_check", - "entityType": "checks", - "schema": "public", - "table": "core_operation_watch" - }, - { - "value": "\"node_type\" in ('service', 'volume')", - "name": "environment_node_config_snapshot_node_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_config_snapshot" - }, - { - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "environment_node_config_snapshot_secret_nonempty_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_config_snapshot_secret" - }, - { - "value": "\"node_type\" in ('service', 'volume')", - "name": "environment_node_introduction_node_type_check", - "entityType": "checks", - "schema": "public", - "table": "environment_node_introduction" - }, - { - "value": "\n (\"removal_started_at\" is null and \"removal_endpoints\" is null)\n or (\"removal_started_at\" is not null and \"removal_endpoints\" is not null and jsonb_typeof(\"removal_endpoints\") = 'array')\n ", - "name": "organization_pairing_removal_shape_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_public_key\" is not null or \"founder_machine_id\" is not null", - "name": "organization_pairing_state_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_claim_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_claim_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"founder_machine_id\" is null or \"founder_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "organization_pairing" - }, - { - "value": "\"scope\" in ('environment','project','organization')", - "name": "teardown_attempt_scope_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "\"status\" in ('pending','running','completed','partial','failed','cancelled')", - "name": "teardown_attempt_status_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "(\n (\"scope\" = 'environment' and \"environment_id\" is not null\n and \"project_id\" is not null)\n or (\"scope\" = 'project' and \"project_id\" is not null\n and \"environment_id\" is null)\n or (\"scope\" = 'organization' and \"project_id\" is null\n and \"environment_id\" is null)\n )", - "name": "teardown_attempt_scope_ids_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "teardown_attempt_confirm_data_loss_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "jsonb_typeof(\"targets\") = 'object'", - "name": "teardown_attempt_targets_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "(\n (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_message\" is null)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n )", - "name": "teardown_attempt_status_shape_check", - "entityType": "checks", - "schema": "public", - "table": "teardown_attempt" - }, - { - "value": "\"status\" in ('awaiting_deployment','pending','running','unknown','completed','partial','failed','cancelled')", - "name": "volume_remove_attempt_status_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "jsonb_typeof(\"volumes\") = 'array'\n and jsonb_array_length(\"volumes\") >= 1", - "name": "volume_remove_attempt_volumes_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "(\n (\"status\" = 'awaiting_deployment'\n and \"environment_deployment_id\" is not null\n and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'unknown' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"started_at\" is null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000\n and (\n (\"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255)\n or (\"inngest_run_id\" is null\n and \"environment_deployment_id\" is not null)\n ))\n )", - "name": "volume_remove_attempt_status_shape_check", - "entityType": "checks", - "schema": "public", - "table": "volume_remove_attempt" - }, - { - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "enrollment_allocation_cluster_key_check", - "entityType": "checks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "value": "jsonb_typeof(\"assignments\") = 'array'", - "name": "enrollment_allocation_assignments_check", - "entityType": "checks", - "schema": "public", - "table": "enrollment_allocation" - }, - { - "value": "\"token_hash\" ~ '^[0-9a-f]{64}$'", - "name": "machine_enrollment_token_hash_check", - "entityType": "checks", - "schema": "public", - "table": "machine_enrollment_token" - }, - { - "value": "length(\"machine_id\") between 1 and 64 and \"machine_id\" !~ '[[:cntrl:]]'", - "name": "machine_remove_attempt_machine_id_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "machine_remove_attempt_confirm_data_loss_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "\"state\" in ('pending','running','succeeded','failed','cancelled','missing_identities')", - "name": "machine_remove_attempt_state_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "(\n (\"state\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'succeeded' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" in ('failed','cancelled')\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is not null and \"failure_message\" is not null\n and \"failure_code\" ~ '^[a-z][a-z0-9_]{0,63}$'\n and length(\"failure_message\") between 1 and 1024\n and \"missing_identities\" is null)\n or (\"state\" = 'missing_identities'\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and jsonb_typeof(\"missing_identities\") = 'array'\n and jsonb_array_length(\"missing_identities\") > 0)\n )", - "name": "machine_remove_attempt_state_shape_check", - "entityType": "checks", - "schema": "public", - "table": "machine_remove_attempt" - }, - { - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "organization_machine_cluster_key_check", - "entityType": "checks", - "schema": "public", - "table": "organization_machine" - }, - { - "value": "\"machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_machine_id_format_check", - "entityType": "checks", - "schema": "public", - "table": "organization_machine" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"last_receipt_sequence\" > 0 and \"evaluation_revision\" > 0", - "name": "github_branch_projection_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_branch_projection_ref_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"state\" in ('active','deleted')", - "name": "github_branch_projection_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"evaluation_reason\" in ('first_observation','changed_paths','rebaseline_all_services','branch_deleted')", - "name": "github_branch_projection_evaluation_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "(\n (\"state\" = 'active' and \"evaluated_head_sha\" ~ '^[0-9a-f]{40}$' and \"evaluation_reason\" != 'branch_deleted')\n or (\"state\" = 'deleted' and \"evaluated_head_sha\" is null and \"evaluation_reason\" = 'branch_deleted')\n )", - "name": "github_branch_projection_head_check", - "entityType": "checks", - "schema": "public", - "table": "github_branch_projection" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"check_suite_id\" > 0 and \"last_receipt_sequence\" > 0", - "name": "github_check_suite_projection_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_check_suite_projection_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_check_suite_projection_status_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"conclusion\" is null or \"conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_check_suite_projection_conclusion_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"transition_revision\" >= 1 and \"published_revision\" >= 0 and \"published_revision\" <= \"transition_revision\"", - "name": "github_check_suite_projection_revision_check", - "entityType": "checks", - "schema": "public", - "table": "github_check_suite_projection" - }, - { - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"source_receipt_sequence\" > 0 and \"branch_evaluation_revision\" > 0", - "name": "github_environment_trigger_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_environment_trigger_ref_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_environment_trigger_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "cardinality(\"service_ids\") > 0 and array_position(\"service_ids\", null) is null", - "name": "github_environment_trigger_service_ids_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"selection_mode\" in ('paths','all_services')", - "name": "github_environment_trigger_selection_mode_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"reason\" in ('first_observation','changed_paths','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline')", - "name": "github_environment_trigger_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "(\n (\"selection_mode\" = 'paths' and \"reason\" = 'changed_paths')\n or (\"selection_mode\" = 'all_services' and \"reason\" in ('first_observation','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline'))\n )", - "name": "github_environment_trigger_selection_reason_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "\"trigger_revision\" = \"branch_evaluation_revision\" and \"published_revision\" >= 0 and \"published_revision\" <= \"trigger_revision\"", - "name": "github_environment_trigger_publish_revision_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "(\n (\"publish_state\" = 'pending' and \"published_revision\" < \"trigger_revision\" and \"published_at\" is null)\n or (\"publish_state\" = 'published' and \"published_revision\" = \"trigger_revision\" and \"published_at\" is not null)\n )", - "name": "github_environment_trigger_publish_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_environment_trigger" - }, - { - "value": "length(trim(\"delivery_id\")) > 0 and \"receipt_sequence\" > 0 and (\"installation_id\" is null or \"installation_id\" > 0) and (\"repository_id\" is null or \"repository_id\" > 0) and (\"check_suite_id\" is null or \"check_suite_id\" > 0)", - "name": "github_webhook_delivery_identity_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"event_kind\" in ('push','check_suite')", - "name": "github_webhook_delivery_event_kind_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"processing_state\" in ('received','processing','processed','rejected','failed','cancelled')", - "name": "github_webhook_delivery_processing_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"outcome\" is null or \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service','malformed','identity_unresolved','unsupported_action','processing_failed','cancelled')", - "name": "github_webhook_delivery_outcome_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"branch_state\" is null or \"branch_state\" in ('active','deleted')", - "name": "github_webhook_delivery_branch_state_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"failure_code\" is null or \"failure_code\" in ('malformed_payload','identity_unresolved','unsupported_action','observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error','inngest_cancelled')", - "name": "github_webhook_delivery_failure_code_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_action\" is null or \"check_suite_action\" in ('requested','rerequested','completed')", - "name": "github_webhook_delivery_check_suite_action_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_status\" is null or \"check_suite_status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_webhook_delivery_check_suite_status_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"check_suite_conclusion\" is null or \"check_suite_conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_webhook_delivery_check_suite_conclusion_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "\"head_sha\" is null or \"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_webhook_delivery_head_sha_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n (\"processing_state\" = 'received' and \"processing_run_id\" is null and \"processing_started_at\" is null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processing' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service') and \"failure_code\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'rejected' and (\n (\"outcome\" = 'malformed' and \"failure_code\" = 'malformed_payload')\n or (\"outcome\" = 'identity_unresolved' and \"failure_code\" = 'identity_unresolved')\n or (\"outcome\" = 'unsupported_action' and \"failure_code\" = 'unsupported_action')\n ) and \"processing_run_id\" is null and \"processing_started_at\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'failed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'processing_failed' and \"failure_code\" in ('observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error') and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'cancelled' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'cancelled' and \"failure_code\" = 'inngest_cancelled' and \"processed_at\" is not null)\n )", - "name": "github_webhook_delivery_processing_evidence_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"processing_state\" not in ('processing','processed','failed','cancelled')\n or (\n \"installation_id\" is not null\n and \"repository_id\" is not null\n and (\n (\n \"event_kind\" = 'push'\n and \"ref\" is not null\n and \"ref\" like 'refs/heads/%'\n and \"branch_state\" is not null\n and \"check_suite_id\" is null\n and \"check_suite_action\" is null\n and \"check_suite_status\" is null\n and \"check_suite_conclusion\" is null\n and (\n (\"branch_state\" = 'active' and \"head_sha\" is not null)\n or (\"branch_state\" = 'deleted' and \"head_sha\" is null)\n )\n )\n or (\n \"event_kind\" = 'check_suite'\n and \"branch_state\" is null\n and \"head_sha\" is not null\n and \"check_suite_id\" is not null\n and \"check_suite_action\" is not null\n and \"check_suite_status\" is not null\n )\n )\n )\n )", - "name": "github_webhook_delivery_processed_summary_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"outcome\" not in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged')\n or (\"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services') and \"event_kind\" = 'push')\n or (\"outcome\" in ('check_suite_projected','check_suite_unchanged') and \"event_kind\" = 'check_suite')\n )", - "name": "github_webhook_delivery_outcome_kind_check", - "entityType": "checks", - "schema": "public", - "table": "github_webhook_delivery" - }, - { - "value": "(\n \"has_active_subscription\" = false\n OR (\n \"active_subscription_id\" IS NOT NULL\n AND \"current_plan\" IS NOT NULL\n AND \"product_id\" IS NOT NULL\n AND \"amount\" IS NOT NULL\n AND \"currency\" IS NOT NULL\n AND \"current_period_start\" IS NOT NULL\n AND \"current_period_end\" IS NOT NULL\n )\n )", - "name": "organization_billing_state_active_fields_check", - "entityType": "checks", - "schema": "public", - "table": "organization_billing_state" - }, - { - "value": "\"current_plan\" IS NULL OR \"current_plan\" IN ('free', 'solo', 'teams', 'hobby', 'pro')", - "name": "organization_billing_state_current_plan_check", - "entityType": "checks", - "schema": "public", - "table": "organization_billing_state" - } - ], - "renames": [] -} \ No newline at end of file diff --git a/dashboard/drizzle/20260907203809_baseline/migration.sql b/dashboard/drizzle/20260925044822_baseline/migration.sql similarity index 82% rename from dashboard/drizzle/20260907203809_baseline/migration.sql rename to dashboard/drizzle/20260925044822_baseline/migration.sql index ca1183a978..4533f8b4e5 100644 --- a/dashboard/drizzle/20260907203809_baseline/migration.sql +++ b/dashboard/drizzle/20260925044822_baseline/migration.sql @@ -7,6 +7,17 @@ CREATE TABLE "organization" ( "created_at" timestamp with time zone DEFAULT now() NOT NULL ); --> statement-breakpoint +CREATE TABLE "organization_change" ( + "seq" bigint PRIMARY KEY GENERATED ALWAYS AS IDENTITY (sequence name "organization_change_seq_seq" INCREMENT BY 1 MINVALUE 1 MAXVALUE 9223372036854775807 START WITH 1 CACHE 1), + "xid" xid8 DEFAULT pg_current_xact_id() NOT NULL, + "organization_id" uuid NOT NULL, + "source_table" text NOT NULL, + "changed_ids" text[] NOT NULL, + "deleted_ids" text[] NOT NULL, + "all_rows" boolean NOT NULL, + "created_at" timestamp with time zone DEFAULT now() NOT NULL +); +--> statement-breakpoint CREATE TABLE "account" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid(), "created_at" timestamp with time zone DEFAULT now() NOT NULL, @@ -52,6 +63,7 @@ CREATE TABLE "session" ( "token" text NOT NULL UNIQUE, "active_organization_id" uuid, "active_organization_slug" text, + "sidebar_open" boolean DEFAULT true NOT NULL, "ip_address" text, "user_agent" text ); @@ -63,7 +75,8 @@ CREATE TABLE "user" ( "email" text NOT NULL UNIQUE, "email_verified" boolean DEFAULT false NOT NULL, "name" text NOT NULL, - "image" text + "image" text, + "open_started_deployments" boolean DEFAULT true NOT NULL ); --> statement-breakpoint CREATE TABLE "verification" ( @@ -131,28 +144,12 @@ CREATE TABLE "environment_resource" ( "environment_id" uuid NOT NULL, "lineage_id" uuid NOT NULL, "implementation_type" text NOT NULL, - "variable_group_id" uuid, "created_at" timestamp with time zone DEFAULT now() NOT NULL, "updated_at" timestamp with time zone DEFAULT now() NOT NULL, CONSTRAINT "environment_resource_project_id_id_unique" UNIQUE("project_id","id"), CONSTRAINT "environment_resource_environment_id_id_unique" UNIQUE("environment_id","id"), CONSTRAINT "environment_resource_environment_id_lineage_id_unique" UNIQUE("environment_id","lineage_id"), - CONSTRAINT "environment_resource_implementation_type_check" CHECK ("implementation_type" in ('variable_group', 'volume')), - CONSTRAINT "environment_resource_variable_group_reference_check" CHECK (("implementation_type" != 'variable_group' or "variable_group_id" is not null)), - CONSTRAINT "environment_resource_volume_no_variable_group_check" CHECK (("implementation_type" != 'volume' or "variable_group_id" is null)) -); ---> statement-breakpoint -CREATE TABLE "environment_variable_group" ( - "id" uuid PRIMARY KEY DEFAULT gen_random_uuid(), - "organization_id" uuid NOT NULL, - "project_id" uuid NOT NULL, - "environment_id" uuid NOT NULL, - "lineage_id" uuid NOT NULL, - "created_at" timestamp with time zone DEFAULT now() NOT NULL, - "updated_at" timestamp with time zone DEFAULT now() NOT NULL, - CONSTRAINT "environment_variable_group_project_id_id_unique" UNIQUE("project_id","id"), - CONSTRAINT "environment_variable_group_environment_id_id_unique" UNIQUE("environment_id","id"), - CONSTRAINT "environment_variable_group_environment_id_lineage_id_unique" UNIQUE("environment_id","lineage_id") + CONSTRAINT "environment_resource_implementation_type_check" CHECK ("implementation_type" in ('volume')) ); --> statement-breakpoint CREATE TABLE "resource_lineage" ( @@ -173,6 +170,8 @@ CREATE TABLE "service" ( "project_id" uuid NOT NULL, "environment_id" uuid NOT NULL, "lineage_id" uuid NOT NULL, + "name" text NOT NULL, + "policy" jsonb DEFAULT '{"autoDeploy":true,"waitForCi":false,"watchPaths":[],"imageUpdate":{"type":"off"}}' NOT NULL, "has_registry_credential" boolean DEFAULT false NOT NULL, "first_deployed_at" timestamp with time zone, "created_at" timestamp with time zone DEFAULT now() NOT NULL, @@ -184,6 +183,7 @@ CREATE TABLE "service" ( --> statement-breakpoint CREATE TABLE "service_lineage" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid(), + "organization_id" uuid NOT NULL, "project_id" uuid NOT NULL, "canonical_name" text NOT NULL, "canonical_slug" text NOT NULL, @@ -194,6 +194,8 @@ CREATE TABLE "service_lineage" ( ); --> statement-breakpoint CREATE TABLE "service_registry_credential" ( + "organization_id" uuid NOT NULL, + "revision" uuid DEFAULT gen_random_uuid() NOT NULL, "service_id" uuid PRIMARY KEY, "encrypted_registry_username" jsonb, "encrypted_registry_secret" jsonb, @@ -202,27 +204,16 @@ CREATE TABLE "service_registry_credential" ( --> statement-breakpoint CREATE TABLE "variable" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid(), + "organization_id" uuid NOT NULL, "environment_id" uuid NOT NULL, - "service_id" uuid, - "variable_group_id" uuid, - "created_at" timestamp with time zone DEFAULT now() NOT NULL, - CONSTRAINT "variable_environment_id_id_unique" UNIQUE("environment_id","id"), - CONSTRAINT "variable_owner_check" CHECK (num_nonnulls("service_id", "variable_group_id") = 1) -); ---> statement-breakpoint -CREATE TABLE "variable_group_lineage" ( - "id" uuid PRIMARY KEY DEFAULT gen_random_uuid(), - "project_id" uuid NOT NULL, - "canonical_name" text NOT NULL, - "canonical_slug" text NOT NULL, + "service_id" uuid NOT NULL, "created_at" timestamp with time zone DEFAULT now() NOT NULL, - "updated_at" timestamp with time zone DEFAULT now() NOT NULL, - CONSTRAINT "variable_group_lineage_project_id_canonical_slug_unique" UNIQUE("project_id","canonical_slug"), - CONSTRAINT "variable_group_lineage_project_id_id_unique" UNIQUE("project_id","id") + CONSTRAINT "variable_environment_id_id_unique" UNIQUE("environment_id","id") ); --> statement-breakpoint CREATE TABLE "variable_secret" ( "variable_id" uuid PRIMARY KEY, + "organization_id" uuid NOT NULL, "environment_id" uuid NOT NULL, "encrypted_value" jsonb NOT NULL ); @@ -238,6 +229,7 @@ CREATE TABLE "environment_deployment" ( "inngest_run_id" text, "core_deploy_id" text, "retry_of_deployment_id" uuid, + "source_pins" jsonb DEFAULT '{}' NOT NULL, "variable_producers" jsonb, "deploy_manifest" jsonb, "deploy_preview" jsonb, @@ -257,15 +249,44 @@ CREATE TABLE "environment_deployment" ( )) ); --> statement-breakpoint +CREATE TABLE "environment_deployment_build_output" ( + "id" bigserial PRIMARY KEY, + "organization_id" uuid NOT NULL, + "deployment_id" uuid NOT NULL, + "step_id" bigint NOT NULL, + "stderr" boolean DEFAULT false NOT NULL, + "text" text NOT NULL, + "created_at" timestamp with time zone DEFAULT now() NOT NULL +); +--> statement-breakpoint +CREATE TABLE "environment_deployment_build_step" ( + "id" bigserial PRIMARY KEY, + "organization_id" uuid NOT NULL, + "deployment_id" uuid NOT NULL, + "build" integer DEFAULT 0 NOT NULL, + "key" text NOT NULL, + "name" text NOT NULL, + "started_at" timestamp with time zone, + "completed_at" timestamp with time zone, + "cached" boolean DEFAULT false NOT NULL, + "error" text, + "created_at" timestamp with time zone DEFAULT now() NOT NULL, + "updated_at" timestamp with time zone DEFAULT now() NOT NULL, + CONSTRAINT "environment_deployment_build_step_key_unique" UNIQUE("deployment_id","build","key") +); +--> statement-breakpoint CREATE TABLE "environment_deployment_event" ( "id" bigserial PRIMARY KEY, + "organization_id" uuid NOT NULL, "deployment_id" uuid NOT NULL, "progress" jsonb NOT NULL, "created_at" timestamp with time zone DEFAULT now() NOT NULL ); --> statement-breakpoint CREATE TABLE "environment_deployment_secret" ( + "organization_id" uuid NOT NULL, "environment_deployment_id" uuid PRIMARY KEY, + "encrypted_build_receipts" jsonb, "encrypted_runtime_outcome" jsonb ); --> statement-breakpoint @@ -283,6 +304,7 @@ CREATE TABLE "environment_saved_state_snapshot" ( --> statement-breakpoint CREATE TABLE "core_operation_event" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid(), + "organization_id" uuid NOT NULL, "watch_id" uuid NOT NULL, "sequence" text NOT NULL, "event_type" text NOT NULL, @@ -326,10 +348,12 @@ CREATE TABLE "environment_node_config_snapshot" ( "created_at" timestamp with time zone DEFAULT now() NOT NULL, "updated_at" timestamp with time zone DEFAULT now() NOT NULL, CONSTRAINT "environment_node_config_snapshot_environment_deployment_id_node_type_node_id_unique" UNIQUE("environment_deployment_id","node_type","node_id"), - CONSTRAINT "environment_node_config_snapshot_node_type_check" CHECK ("node_type" in ('service', 'variable_group', 'volume')) + CONSTRAINT "environment_node_config_snapshot_node_type_check" CHECK ("node_type" in ('service', 'volume')) ); --> statement-breakpoint CREATE TABLE "environment_node_config_snapshot_secret" ( + "organization_id" uuid NOT NULL, + "credential_revision" uuid, "snapshot_id" uuid PRIMARY KEY, "encrypted_registry_username" jsonb, "encrypted_registry_secret" jsonb, @@ -347,10 +371,11 @@ CREATE TABLE "environment_node_introduction" ( "created_at" timestamp with time zone DEFAULT now() NOT NULL, "updated_at" timestamp with time zone DEFAULT now() NOT NULL, CONSTRAINT "environment_node_introduction_pkey" PRIMARY KEY("environment_id","node_type","node_id"), - CONSTRAINT "environment_node_introduction_node_type_check" CHECK ("node_type" in ('service', 'variable_group', 'volume')) + CONSTRAINT "environment_node_introduction_node_type_check" CHECK ("node_type" in ('service', 'volume')) ); --> statement-breakpoint CREATE TABLE "environment_node_introduction_secret" ( + "organization_id" uuid NOT NULL, "environment_id" uuid, "node_type" text, "node_id" uuid, @@ -617,11 +642,14 @@ CREATE TABLE "github_check_suite_projection" ( --> statement-breakpoint CREATE TABLE "github_environment_trigger" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid(), + "organization_id" uuid NOT NULL, "installation_id" integer NOT NULL, "repository_id" bigint NOT NULL, "ref" text NOT NULL, "head_sha" text NOT NULL, "environment_id" uuid NOT NULL, + "admission_state" text DEFAULT 'waiting' NOT NULL, + "changed_paths" jsonb DEFAULT '[]' NOT NULL, "service_ids" text[] NOT NULL, "selection_mode" text NOT NULL, "reason" text NOT NULL, @@ -768,11 +796,6 @@ CREATE TABLE "github_webhook_delivery" ( CREATE TABLE "organization_billing_state" ( "organization_id" uuid PRIMARY KEY, "active_subscription_id" text, - "current_plan" text, - "product_id" uuid, - "amount" integer, - "currency" text, - "current_period_start" timestamp with time zone, "current_period_end" timestamp with time zone, "has_active_subscription" boolean DEFAULT false NOT NULL, "synced_at" timestamp with time zone DEFAULT now() NOT NULL, @@ -781,23 +804,13 @@ CREATE TABLE "organization_billing_state" ( "has_active_subscription" = false OR ( "active_subscription_id" IS NOT NULL - AND "current_plan" IS NOT NULL - AND "product_id" IS NOT NULL - AND "amount" IS NOT NULL - AND "currency" IS NOT NULL - AND "current_period_start" IS NOT NULL AND "current_period_end" IS NOT NULL ) - )), - CONSTRAINT "organization_billing_state_current_plan_check" CHECK ("current_plan" IS NULL OR "current_plan" IN ('free', 'solo', 'teams', 'hobby', 'pro')) -); ---> statement-breakpoint -CREATE TABLE "waitlist" ( - "id" uuid PRIMARY KEY DEFAULT gen_random_uuid(), - "email" text NOT NULL UNIQUE, - "created_at" timestamp with time zone DEFAULT now() NOT NULL + )) ); --> statement-breakpoint +CREATE INDEX "organization_change_organization_id_xid_idx" ON "organization_change" ("organization_id","xid");--> statement-breakpoint +CREATE INDEX "organization_change_xid_idx" ON "organization_change" ("xid");--> statement-breakpoint CREATE INDEX "account_user_id_idx" ON "account" ("user_id");--> statement-breakpoint CREATE INDEX "account_provider_account_idx" ON "account" ("provider_id","account_id");--> statement-breakpoint CREATE INDEX "invitation_organization_id_idx" ON "invitation" ("organization_id");--> statement-breakpoint @@ -810,16 +823,10 @@ CREATE INDEX "user_project_preference_project_idx" ON "user_project_preference" CREATE INDEX "environment_canvas_node_position_environment_id_idx" ON "environment_canvas_node_position" ("environment_id");--> statement-breakpoint CREATE INDEX "environment_canvas_node_position_organization_id_idx" ON "environment_canvas_node_position" ("organization_id");--> statement-breakpoint CREATE INDEX "environment_canvas_node_position_resource_lookup_idx" ON "environment_canvas_node_position" ("resource_type","resource_id");--> statement-breakpoint -CREATE UNIQUE INDEX "environment_resource_variable_group_variable_group_unique" ON "environment_resource" ("variable_group_id") WHERE "implementation_type" = 'variable_group';--> statement-breakpoint CREATE INDEX "environment_resource_project_id_idx" ON "environment_resource" ("project_id");--> statement-breakpoint CREATE INDEX "environment_resource_organization_id_idx" ON "environment_resource" ("organization_id");--> statement-breakpoint CREATE INDEX "environment_resource_environment_id_idx" ON "environment_resource" ("environment_id");--> statement-breakpoint CREATE INDEX "environment_resource_lineage_id_idx" ON "environment_resource" ("lineage_id");--> statement-breakpoint -CREATE INDEX "environment_resource_variable_group_id_idx" ON "environment_resource" ("variable_group_id");--> statement-breakpoint -CREATE INDEX "environment_variable_group_project_id_idx" ON "environment_variable_group" ("project_id");--> statement-breakpoint -CREATE INDEX "environment_variable_group_organization_id_idx" ON "environment_variable_group" ("organization_id");--> statement-breakpoint -CREATE INDEX "environment_variable_group_environment_id_idx" ON "environment_variable_group" ("environment_id");--> statement-breakpoint -CREATE INDEX "environment_variable_group_lineage_id_idx" ON "environment_variable_group" ("lineage_id");--> statement-breakpoint CREATE INDEX "resource_lineage_project_id_idx" ON "resource_lineage" ("project_id");--> statement-breakpoint CREATE INDEX "resource_lineage_organization_id_idx" ON "resource_lineage" ("organization_id");--> statement-breakpoint CREATE INDEX "service_project_id_idx" ON "service" ("project_id");--> statement-breakpoint @@ -827,7 +834,6 @@ CREATE INDEX "service_organization_id_idx" ON "service" ("organization_id");--> CREATE INDEX "service_environment_id_idx" ON "service" ("environment_id");--> statement-breakpoint CREATE INDEX "service_lineage_id_idx" ON "service" ("lineage_id");--> statement-breakpoint CREATE INDEX "service_lineage_project_id_idx" ON "service_lineage" ("project_id");--> statement-breakpoint -CREATE INDEX "variable_group_lineage_project_id_idx" ON "variable_group_lineage" ("project_id");--> statement-breakpoint CREATE INDEX "environment_deployment_organization_id_idx" ON "environment_deployment" ("organization_id");--> statement-breakpoint CREATE INDEX "environment_deployment_environment_id_idx" ON "environment_deployment" ("environment_id");--> statement-breakpoint CREATE INDEX "environment_deployment_saved_state_snapshot_id_idx" ON "environment_deployment" ("saved_state_snapshot_id");--> statement-breakpoint @@ -835,6 +841,7 @@ CREATE UNIQUE INDEX "environment_deployment_one_queued_target_idx" ON "environme CREATE UNIQUE INDEX "environment_deployment_one_started_attempt_idx" ON "environment_deployment" ("environment_id") WHERE "status" in ('planning','deploying');--> statement-breakpoint CREATE INDEX "environment_deployment_inngest_run_id_idx" ON "environment_deployment" ("inngest_run_id");--> statement-breakpoint CREATE INDEX "environment_deployment_retry_of_idx" ON "environment_deployment" ("retry_of_deployment_id");--> statement-breakpoint +CREATE INDEX "environment_deployment_build_output_cursor_idx" ON "environment_deployment_build_output" ("deployment_id","id");--> statement-breakpoint CREATE INDEX "environment_deployment_event_cursor_idx" ON "environment_deployment_event" ("deployment_id","id");--> statement-breakpoint CREATE INDEX "environment_saved_state_snapshot_organization_id_idx" ON "environment_saved_state_snapshot" ("organization_id");--> statement-breakpoint CREATE INDEX "environment_saved_state_snapshot_environment_created_at_idx" ON "environment_saved_state_snapshot" ("environment_id","created_at");--> statement-breakpoint @@ -903,16 +910,8 @@ ALTER TABLE "environment_resource" ADD CONSTRAINT "environment_resource_organiza ALTER TABLE "environment_resource" ADD CONSTRAINT "environment_resource_project_id_project_id_fkey" FOREIGN KEY ("project_id") REFERENCES "project"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "environment_resource" ADD CONSTRAINT "environment_resource_environment_id_environment_id_fkey" FOREIGN KEY ("environment_id") REFERENCES "environment"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "environment_resource" ADD CONSTRAINT "environment_resource_lineage_id_resource_lineage_id_fkey" FOREIGN KEY ("lineage_id") REFERENCES "resource_lineage"("id") ON DELETE RESTRICT;--> statement-breakpoint -ALTER TABLE "environment_resource" ADD CONSTRAINT "environment_resource_nABwUGd5rp5C_fkey" FOREIGN KEY ("variable_group_id") REFERENCES "environment_variable_group"("id") ON DELETE RESTRICT;--> statement-breakpoint ALTER TABLE "environment_resource" ADD CONSTRAINT "environment_resource_krkfQwOLhWDI_fkey" FOREIGN KEY ("project_id","environment_id") REFERENCES "environment"("project_id","id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "environment_resource" ADD CONSTRAINT "environment_resource_zQ2aoOGRLIOR_fkey" FOREIGN KEY ("project_id","lineage_id") REFERENCES "resource_lineage"("project_id","id") ON DELETE RESTRICT;--> statement-breakpoint -ALTER TABLE "environment_resource" ADD CONSTRAINT "environment_resource_s2Nqmux9EkpK_fkey" FOREIGN KEY ("project_id","variable_group_id") REFERENCES "environment_variable_group"("project_id","id") ON DELETE RESTRICT;--> statement-breakpoint -ALTER TABLE "environment_variable_group" ADD CONSTRAINT "environment_variable_group_organization_id_organization_id_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint -ALTER TABLE "environment_variable_group" ADD CONSTRAINT "environment_variable_group_project_id_project_id_fkey" FOREIGN KEY ("project_id") REFERENCES "project"("id") ON DELETE CASCADE;--> statement-breakpoint -ALTER TABLE "environment_variable_group" ADD CONSTRAINT "environment_variable_group_environment_id_environment_id_fkey" FOREIGN KEY ("environment_id") REFERENCES "environment"("id") ON DELETE CASCADE;--> statement-breakpoint -ALTER TABLE "environment_variable_group" ADD CONSTRAINT "environment_variable_group_hiba8dNGKiwl_fkey" FOREIGN KEY ("lineage_id") REFERENCES "variable_group_lineage"("id") ON DELETE RESTRICT;--> statement-breakpoint -ALTER TABLE "environment_variable_group" ADD CONSTRAINT "environment_variable_group_oOF37dttct8c_fkey" FOREIGN KEY ("project_id","environment_id") REFERENCES "environment"("project_id","id") ON DELETE CASCADE;--> statement-breakpoint -ALTER TABLE "environment_variable_group" ADD CONSTRAINT "environment_variable_group_pbUjmr26aBQN_fkey" FOREIGN KEY ("project_id","lineage_id") REFERENCES "variable_group_lineage"("project_id","id") ON DELETE RESTRICT;--> statement-breakpoint ALTER TABLE "resource_lineage" ADD CONSTRAINT "resource_lineage_organization_id_organization_id_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "resource_lineage" ADD CONSTRAINT "resource_lineage_project_id_project_id_fkey" FOREIGN KEY ("project_id") REFERENCES "project"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "service" ADD CONSTRAINT "service_organization_id_organization_id_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint @@ -921,33 +920,44 @@ ALTER TABLE "service" ADD CONSTRAINT "service_environment_id_environment_id_fkey ALTER TABLE "service" ADD CONSTRAINT "service_lineage_id_service_lineage_id_fkey" FOREIGN KEY ("lineage_id") REFERENCES "service_lineage"("id") ON DELETE RESTRICT;--> statement-breakpoint ALTER TABLE "service" ADD CONSTRAINT "service_bvUAv6STak07_fkey" FOREIGN KEY ("project_id","environment_id") REFERENCES "environment"("project_id","id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "service" ADD CONSTRAINT "service_1xRYD1MXFhcT_fkey" FOREIGN KEY ("project_id","lineage_id") REFERENCES "service_lineage"("project_id","id") ON DELETE RESTRICT;--> statement-breakpoint +ALTER TABLE "service_lineage" ADD CONSTRAINT "service_lineage_organization_id_organization_id_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "service_lineage" ADD CONSTRAINT "service_lineage_project_id_project_id_fkey" FOREIGN KEY ("project_id") REFERENCES "project"("id") ON DELETE CASCADE;--> statement-breakpoint +ALTER TABLE "service_registry_credential" ADD CONSTRAINT "service_registry_credential_fC7nGiZZPNsV_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "service_registry_credential" ADD CONSTRAINT "service_registry_credential_service_id_service_id_fkey" FOREIGN KEY ("service_id") REFERENCES "service"("id") ON DELETE CASCADE;--> statement-breakpoint +ALTER TABLE "variable" ADD CONSTRAINT "variable_organization_id_organization_id_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "variable" ADD CONSTRAINT "variable_environment_id_environment_id_fkey" FOREIGN KEY ("environment_id") REFERENCES "environment"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "variable" ADD CONSTRAINT "variable_service_id_service_id_fkey" FOREIGN KEY ("service_id") REFERENCES "service"("id") ON DELETE CASCADE;--> statement-breakpoint -ALTER TABLE "variable" ADD CONSTRAINT "variable_variable_group_id_environment_variable_group_id_fkey" FOREIGN KEY ("variable_group_id") REFERENCES "environment_variable_group"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "variable" ADD CONSTRAINT "variable_dFGv8UXjv6eg_fkey" FOREIGN KEY ("environment_id","service_id") REFERENCES "service"("environment_id","id") ON DELETE CASCADE;--> statement-breakpoint -ALTER TABLE "variable" ADD CONSTRAINT "variable_AmBxCm84j9h8_fkey" FOREIGN KEY ("environment_id","variable_group_id") REFERENCES "environment_variable_group"("environment_id","id") ON DELETE CASCADE;--> statement-breakpoint -ALTER TABLE "variable_group_lineage" ADD CONSTRAINT "variable_group_lineage_project_id_project_id_fkey" FOREIGN KEY ("project_id") REFERENCES "project"("id") ON DELETE CASCADE;--> statement-breakpoint +ALTER TABLE "variable_secret" ADD CONSTRAINT "variable_secret_organization_id_organization_id_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "variable_secret" ADD CONSTRAINT "variable_secret_environment_id_environment_id_fkey" FOREIGN KEY ("environment_id") REFERENCES "environment"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "variable_secret" ADD CONSTRAINT "variable_secret_fgbg4UfEzo6H_fkey" FOREIGN KEY ("environment_id","variable_id") REFERENCES "variable"("environment_id","id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "environment_deployment" ADD CONSTRAINT "environment_deployment_organization_id_organization_id_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "environment_deployment" ADD CONSTRAINT "environment_deployment_environment_id_environment_id_fkey" FOREIGN KEY ("environment_id") REFERENCES "environment"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "environment_deployment" ADD CONSTRAINT "environment_deployment_Lofdv4M9OTIQ_fkey" FOREIGN KEY ("retry_of_deployment_id") REFERENCES "environment_deployment"("id");--> statement-breakpoint ALTER TABLE "environment_deployment" ADD CONSTRAINT "environment_deployment_92k6WdAbc3AZ_fkey" FOREIGN KEY ("environment_id","saved_state_snapshot_id") REFERENCES "environment_saved_state_snapshot"("environment_id","id") ON DELETE RESTRICT;--> statement-breakpoint +ALTER TABLE "environment_deployment_build_output" ADD CONSTRAINT "environment_deployment_build_output_es7jBaLp3vH8_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint +ALTER TABLE "environment_deployment_build_output" ADD CONSTRAINT "environment_deployment_build_output_Xp68IrJouNSa_fkey" FOREIGN KEY ("deployment_id") REFERENCES "environment_deployment"("id") ON DELETE CASCADE;--> statement-breakpoint +ALTER TABLE "environment_deployment_build_output" ADD CONSTRAINT "environment_deployment_build_output_XF27nu5BhEx1_fkey" FOREIGN KEY ("step_id") REFERENCES "environment_deployment_build_step"("id") ON DELETE CASCADE;--> statement-breakpoint +ALTER TABLE "environment_deployment_build_step" ADD CONSTRAINT "environment_deployment_build_step_28D6Rkzs1URj_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint +ALTER TABLE "environment_deployment_build_step" ADD CONSTRAINT "environment_deployment_build_step_mAOz3YRgkCxT_fkey" FOREIGN KEY ("deployment_id") REFERENCES "environment_deployment"("id") ON DELETE CASCADE;--> statement-breakpoint +ALTER TABLE "environment_deployment_event" ADD CONSTRAINT "environment_deployment_event_eW8RHtn0mFyI_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "environment_deployment_event" ADD CONSTRAINT "environment_deployment_event_nkhfxU66kCFO_fkey" FOREIGN KEY ("deployment_id") REFERENCES "environment_deployment"("id") ON DELETE CASCADE;--> statement-breakpoint +ALTER TABLE "environment_deployment_secret" ADD CONSTRAINT "environment_deployment_secret_IuNsdKp3NB8E_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "environment_deployment_secret" ADD CONSTRAINT "environment_deployment_secret_IIXCU5ibjYPq_fkey" FOREIGN KEY ("environment_deployment_id") REFERENCES "environment_deployment"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "environment_saved_state_snapshot" ADD CONSTRAINT "environment_saved_state_snapshot_QseWcaivJkoo_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "environment_saved_state_snapshot" ADD CONSTRAINT "environment_saved_state_snapshot_pYS3zmT4RKuQ_fkey" FOREIGN KEY ("environment_id") REFERENCES "environment"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "environment_saved_state_snapshot" ADD CONSTRAINT "environment_saved_state_snapshot_actor_id_user_id_fkey" FOREIGN KEY ("actor_id") REFERENCES "user"("id") ON DELETE RESTRICT;--> statement-breakpoint +ALTER TABLE "core_operation_event" ADD CONSTRAINT "core_operation_event_organization_id_organization_id_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "core_operation_event" ADD CONSTRAINT "core_operation_event_watch_id_core_operation_watch_id_fkey" FOREIGN KEY ("watch_id") REFERENCES "core_operation_watch"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "core_operation_watch" ADD CONSTRAINT "core_operation_watch_organization_id_organization_id_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "environment_node_config_snapshot" ADD CONSTRAINT "environment_node_config_snapshot_3y0HYOFWmCwQ_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "environment_node_config_snapshot" ADD CONSTRAINT "environment_node_config_snapshot_CUaPaujMBOIs_fkey" FOREIGN KEY ("environment_deployment_id") REFERENCES "environment_deployment"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "environment_node_config_snapshot" ADD CONSTRAINT "environment_node_config_snapshot_D4DPm1gvv2Di_fkey" FOREIGN KEY ("environment_id") REFERENCES "environment"("id") ON DELETE CASCADE;--> statement-breakpoint +ALTER TABLE "environment_node_config_snapshot_secret" ADD CONSTRAINT "environment_node_config_snapshot_secret_jZo1GvXOHIs5_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "environment_node_config_snapshot_secret" ADD CONSTRAINT "environment_node_config_snapshot_secret_j5H7VPFuELrf_fkey" FOREIGN KEY ("snapshot_id") REFERENCES "environment_node_config_snapshot"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "environment_node_introduction" ADD CONSTRAINT "environment_node_introduction_aSA9HOqVYGRT_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "environment_node_introduction" ADD CONSTRAINT "environment_node_introduction_YPW21fX4uIUZ_fkey" FOREIGN KEY ("environment_id") REFERENCES "environment"("id") ON DELETE CASCADE;--> statement-breakpoint +ALTER TABLE "environment_node_introduction_secret" ADD CONSTRAINT "environment_node_introduction_secret_HaNAhrDo0dtU_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "environment_node_introduction_secret" ADD CONSTRAINT "environment_node_introduction_secret_sC7ALWFOnE38_fkey" FOREIGN KEY ("environment_id","node_type","node_id") REFERENCES "environment_node_introduction"("environment_id","node_type","node_id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "organization_pairing" ADD CONSTRAINT "organization_pairing_organization_id_organization_id_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "teardown_attempt" ADD CONSTRAINT "teardown_attempt_requested_by_user_id_user_id_fkey" FOREIGN KEY ("requested_by_user_id") REFERENCES "user"("id") ON DELETE RESTRICT;--> statement-breakpoint @@ -964,8 +974,147 @@ ALTER TABLE "machine_remove_attempt" ADD CONSTRAINT "machine_remove_attempt_requ ALTER TABLE "organization_machine" ADD CONSTRAINT "organization_machine_organization_id_organization_id_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "github_branch_projection" ADD CONSTRAINT "github_branch_projection_Udo5xaDQmVxR_fkey" FOREIGN KEY ("last_delivery_id","last_receipt_sequence") REFERENCES "github_webhook_delivery"("delivery_id","receipt_sequence") ON DELETE RESTRICT;--> statement-breakpoint ALTER TABLE "github_check_suite_projection" ADD CONSTRAINT "github_check_suite_projection_9FLSHaRf6WgI_fkey" FOREIGN KEY ("last_delivery_id","last_receipt_sequence") REFERENCES "github_webhook_delivery"("delivery_id","receipt_sequence") ON DELETE RESTRICT;--> statement-breakpoint +ALTER TABLE "github_environment_trigger" ADD CONSTRAINT "github_environment_trigger_organization_id_organization_id_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "github_environment_trigger" ADD CONSTRAINT "github_environment_trigger_environment_id_environment_id_fkey" FOREIGN KEY ("environment_id") REFERENCES "environment"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "github_environment_trigger" ADD CONSTRAINT "github_environment_trigger_dspFptTlur3h_fkey" FOREIGN KEY ("source_delivery_id","source_receipt_sequence") REFERENCES "github_webhook_delivery"("delivery_id","receipt_sequence") ON DELETE RESTRICT;--> statement-breakpoint ALTER TABLE "github_installation" ADD CONSTRAINT "github_installation_user_id_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "user"("id") ON DELETE CASCADE;--> statement-breakpoint ALTER TABLE "github_repository_cache" ADD CONSTRAINT "github_repository_cache_user_id_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "user"("id") ON DELETE CASCADE;--> statement-breakpoint -ALTER TABLE "organization_billing_state" ADD CONSTRAINT "organization_billing_state_organization_id_organization_id_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE; \ No newline at end of file +ALTER TABLE "organization_billing_state" ADD CONSTRAINT "organization_billing_state_organization_id_organization_id_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint +-- One log row per statement per Organization. Arguments: the Organization column, then the key columns +-- (joined with ':' into the collection key). Over 100 keys set all_rows and drop the ids. +CREATE FUNCTION organization_change_log() RETURNS trigger LANGUAGE plpgsql AS $$ +DECLARE + key_expression text; + old_keys text := 'SELECT NULL::uuid AS organization_id, NULL::text AS key WHERE false'; + new_keys text := old_keys; +BEGIN + SELECT string_agg(format('%I::text', key_column), ' || '':'' || ') + INTO key_expression FROM unnest(TG_ARGV[1:TG_NARGS - 1]) AS key_column; + IF TG_OP IN ('INSERT', 'UPDATE') THEN + new_keys := format('SELECT %I AS organization_id, %s AS key FROM new_rows', TG_ARGV[0], key_expression); + END IF; + IF TG_OP IN ('UPDATE', 'DELETE') THEN + old_keys := format('SELECT %I AS organization_id, %s AS key FROM old_rows', TG_ARGV[0], key_expression); + END IF; + EXECUTE format($sql$ + INSERT INTO organization_change (organization_id, source_table, changed_ids, deleted_ids, all_rows) + SELECT organization_id, %L, + CASE WHEN count(*) > 100 THEN '{}' ELSE coalesce(array_agg(key) FILTER (WHERE NOT deleted), '{}') END, + CASE WHEN count(*) > 100 THEN '{}' ELSE coalesce(array_agg(key) FILTER (WHERE deleted), '{}') END, + count(*) > 100 + FROM ( + SELECT DISTINCT organization_id, key, false AS deleted FROM (%s) changed + UNION ALL + (SELECT organization_id, key, true FROM (%s) gone EXCEPT SELECT organization_id, key, true FROM (%s) changed) + ) keys + GROUP BY organization_id + $sql$, TG_TABLE_NAME, new_keys, old_keys, new_keys); + RETURN NULL; +END +$$;--> statement-breakpoint +-- Transition tables allow one event per trigger, so each table gets three. +CREATE FUNCTION organization_change_attach(target regclass, organization_column text, VARIADIC key_columns text[]) +RETURNS void LANGUAGE plpgsql AS $$ +DECLARE + arguments text := (SELECT string_agg(quote_literal(argument), ', ') FROM unnest(organization_column || key_columns) AS argument); +BEGIN + EXECUTE format('CREATE TRIGGER organization_change_insert AFTER INSERT ON %s REFERENCING NEW TABLE AS new_rows + FOR EACH STATEMENT EXECUTE FUNCTION organization_change_log(%s)', target, arguments); + EXECUTE format('CREATE TRIGGER organization_change_update AFTER UPDATE ON %s REFERENCING OLD TABLE AS old_rows NEW TABLE AS new_rows + FOR EACH STATEMENT EXECUTE FUNCTION organization_change_log(%s)', target, arguments); + EXECUTE format('CREATE TRIGGER organization_change_delete AFTER DELETE ON %s REFERENCING OLD TABLE AS old_rows + FOR EACH STATEMENT EXECUTE FUNCTION organization_change_log(%s)', target, arguments); +END +$$;--> statement-breakpoint +-- Every organization-owned table logs its changes; `organization` is keyed by its own id. +-- Organization and key columns match changeSources in src/modules/organization/change-log.sources.ts. +SELECT organization_change_attach('organization', 'id', 'id'); +--> statement-breakpoint +SELECT organization_change_attach('project', 'organization_id', 'id'); +--> statement-breakpoint +SELECT organization_change_attach('environment', 'organization_id', 'id'); +--> statement-breakpoint +SELECT organization_change_attach('user_project_preference', 'organization_id', 'project_id'); +--> statement-breakpoint +SELECT organization_change_attach('service', 'organization_id', 'id'); +--> statement-breakpoint +SELECT organization_change_attach('resource_lineage', 'organization_id', 'id'); +--> statement-breakpoint +SELECT organization_change_attach('environment_resource', 'organization_id', 'id'); +--> statement-breakpoint +SELECT organization_change_attach('environment_canvas_node_position', 'organization_id', 'resource_type', 'resource_id'); +--> statement-breakpoint +SELECT organization_change_attach('environment_deployment', 'organization_id', 'id'); +--> statement-breakpoint +SELECT organization_change_attach('environment_deployment_event', 'organization_id', 'deployment_id'); +--> statement-breakpoint +SELECT organization_change_attach('environment_saved_state_snapshot', 'organization_id', 'id'); +--> statement-breakpoint +SELECT organization_change_attach('environment_node_config_snapshot', 'organization_id', 'id'); +--> statement-breakpoint +SELECT organization_change_attach('environment_node_introduction', 'organization_id', 'node_type', 'node_id'); +--> statement-breakpoint +SELECT organization_change_attach('volume_remove_attempt', 'organization_id', 'id'); +--> statement-breakpoint +SELECT organization_change_attach('organization_pairing', 'organization_id', 'organization_id'); +--> statement-breakpoint +SELECT organization_change_attach('core_operation_event', 'organization_id', 'id'); +--> statement-breakpoint +SELECT organization_change_attach('core_operation_watch', 'organization_id', 'id'); +--> statement-breakpoint +SELECT organization_change_attach('enrollment_allocation', 'organization_id', 'cluster_key'); +--> statement-breakpoint +SELECT organization_change_attach('environment_deployment_build_output', 'organization_id', 'id'); +--> statement-breakpoint +SELECT organization_change_attach('environment_deployment_build_step', 'organization_id', 'id'); +--> statement-breakpoint +SELECT organization_change_attach('environment_deployment_secret', 'organization_id', 'environment_deployment_id'); +--> statement-breakpoint +SELECT organization_change_attach('environment_node_config_snapshot_secret', 'organization_id', 'snapshot_id'); +--> statement-breakpoint +SELECT organization_change_attach('environment_node_introduction_secret', 'organization_id', 'environment_id', 'node_type', 'node_id'); +--> statement-breakpoint +SELECT organization_change_attach('github_environment_trigger', 'organization_id', 'id'); +--> statement-breakpoint +SELECT organization_change_attach('invitation', 'organization_id', 'id'); +--> statement-breakpoint +SELECT organization_change_attach('machine_enrollment_token', 'organization_id', 'id'); +--> statement-breakpoint +SELECT organization_change_attach('machine_remove_attempt', 'organization_id', 'id'); +--> statement-breakpoint +SELECT organization_change_attach('member', 'organization_id', 'id'); +--> statement-breakpoint +SELECT organization_change_attach('organization_billing_state', 'organization_id', 'organization_id'); +--> statement-breakpoint +SELECT organization_change_attach('organization_machine', 'organization_id', 'machine_id'); +--> statement-breakpoint +SELECT organization_change_attach('service_lineage', 'organization_id', 'id'); +--> statement-breakpoint +SELECT organization_change_attach('service_registry_credential', 'organization_id', 'service_id'); +--> statement-breakpoint +SELECT organization_change_attach('teardown_attempt', 'organization_id', 'id'); +--> statement-breakpoint +SELECT organization_change_attach('variable', 'organization_id', 'id'); +--> statement-breakpoint +SELECT organization_change_attach('variable_secret', 'organization_id', 'variable_id');--> statement-breakpoint +CREATE TABLE "organization_cluster_domain" ( + "organization_id" uuid PRIMARY KEY, + "endpoint" text NOT NULL, + "name" text NOT NULL, + "encrypted_token" jsonb NOT NULL, + "reserved_at" timestamp with time zone NOT NULL, + "lease_renewed_at" timestamp with time zone NOT NULL, + "records_synced_at" timestamp with time zone, + "record_addresses" jsonb DEFAULT '[]' NOT NULL, + "unreachable" jsonb DEFAULT '[]' NOT NULL, + "encrypted_certificate_private_key" jsonb, + "certificate_chain" text, + "certificate_not_after" timestamp with time zone, + "created_at" timestamp with time zone DEFAULT now() NOT NULL, + "updated_at" timestamp with time zone DEFAULT now() NOT NULL, + CONSTRAINT "organization_cluster_domain_record_addresses_check" CHECK (jsonb_typeof("record_addresses") = 'array'), + CONSTRAINT "organization_cluster_domain_certificate_check" CHECK (num_nulls("encrypted_certificate_private_key", "certificate_chain", "certificate_not_after") in (0, 3)) +); +--> statement-breakpoint +ALTER TABLE "organization_cluster_domain" ADD CONSTRAINT "organization_cluster_domain_eJqKfNjJBhUj_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint +SELECT organization_change_attach('organization_cluster_domain', 'organization_id', 'organization_id'); diff --git a/dashboard/drizzle/20260925070751_organization_cluster_domain/snapshot.json b/dashboard/drizzle/20260925044822_baseline/snapshot.json similarity index 99% rename from dashboard/drizzle/20260925070751_organization_cluster_domain/snapshot.json rename to dashboard/drizzle/20260925044822_baseline/snapshot.json index e547b0901c..19f9ed34d6 100644 --- a/dashboard/drizzle/20260925070751_organization_cluster_domain/snapshot.json +++ b/dashboard/drizzle/20260925044822_baseline/snapshot.json @@ -1,9 +1,9 @@ { "version": "8", "dialect": "postgres", - "id": "cf6a7290-943f-4064-bdee-bd0e666c36b5", + "id": "ef32bd1c-f331-44a7-a522-5191ceca212f", "prevIds": [ - "18b3b2e8-f907-4728-bdaf-161a39321a73" + "00000000-0000-0000-0000-000000000000" ], "ddl": [ { @@ -276,18 +276,6 @@ "entityType": "tables", "schema": "public" }, - { - "isRlsEnabled": false, - "name": "waitlist", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "organization_cluster_domain", - "entityType": "tables", - "schema": "public" - }, { "type": "uuid", "typeSchema": null, @@ -5705,227 +5693,6 @@ "schema": "public", "table": "organization_billing_state" }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "waitlist" - }, - { - "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": "waitlist" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns", - "schema": "public", - "table": "organization_cluster_domain" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endpoint", - "entityType": "columns", - "schema": "public", - "table": "organization_cluster_domain" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "organization_cluster_domain" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_token", - "entityType": "columns", - "schema": "public", - "table": "organization_cluster_domain" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "reserved_at", - "entityType": "columns", - "schema": "public", - "table": "organization_cluster_domain" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lease_renewed_at", - "entityType": "columns", - "schema": "public", - "table": "organization_cluster_domain" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "records_synced_at", - "entityType": "columns", - "schema": "public", - "table": "organization_cluster_domain" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "record_addresses", - "entityType": "columns", - "schema": "public", - "table": "organization_cluster_domain" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "unreachable", - "entityType": "columns", - "schema": "public", - "table": "organization_cluster_domain" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_certificate_private_key", - "entityType": "columns", - "schema": "public", - "table": "organization_cluster_domain" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "certificate_chain", - "entityType": "columns", - "schema": "public", - "table": "organization_cluster_domain" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "certificate_not_after", - "entityType": "columns", - "schema": "public", - "table": "organization_cluster_domain" - }, - { - "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": "organization_cluster_domain" - }, - { - "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": "organization_cluster_domain" - }, { "nameExplicit": true, "columns": [ @@ -9183,23 +8950,6 @@ "schema": "public", "table": "organization_billing_state" }, - { - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_cluster_domain_eJqKfNjJBhUj_fkey", - "entityType": "fks", - "schema": "public", - "table": "organization_cluster_domain" - }, { "columns": [ "environment_id", @@ -9662,26 +9412,6 @@ "table": "organization_billing_state", "entityType": "pks" }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "waitlist_pkey", - "schema": "public", - "table": "waitlist", - "entityType": "pks" - }, - { - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_cluster_domain_pkey", - "schema": "public", - "table": "organization_cluster_domain", - "entityType": "pks" - }, { "nameExplicit": false, "columns": [ @@ -10056,17 +9786,6 @@ "table": "github_webhook_delivery", "entityType": "uniques" }, - { - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "waitlist_email_key", - "schema": "public", - "table": "waitlist", - "entityType": "uniques" - }, { "value": "\"implementation_type\" in ('volume')", "name": "environment_resource_implementation_type_check", @@ -10515,6 +10234,221 @@ "schema": "public", "table": "organization_billing_state" }, + { + "isRlsEnabled": false, + "name": "organization_cluster_domain", + "entityType": "tables", + "schema": "public" + }, + { + "type": "uuid", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "organization_id", + "entityType": "columns", + "schema": "public", + "table": "organization_cluster_domain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endpoint", + "entityType": "columns", + "schema": "public", + "table": "organization_cluster_domain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "organization_cluster_domain" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encrypted_token", + "entityType": "columns", + "schema": "public", + "table": "organization_cluster_domain" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reserved_at", + "entityType": "columns", + "schema": "public", + "table": "organization_cluster_domain" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_renewed_at", + "entityType": "columns", + "schema": "public", + "table": "organization_cluster_domain" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "records_synced_at", + "entityType": "columns", + "schema": "public", + "table": "organization_cluster_domain" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "record_addresses", + "entityType": "columns", + "schema": "public", + "table": "organization_cluster_domain" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "unreachable", + "entityType": "columns", + "schema": "public", + "table": "organization_cluster_domain" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encrypted_certificate_private_key", + "entityType": "columns", + "schema": "public", + "table": "organization_cluster_domain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "certificate_chain", + "entityType": "columns", + "schema": "public", + "table": "organization_cluster_domain" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "certificate_not_after", + "entityType": "columns", + "schema": "public", + "table": "organization_cluster_domain" + }, + { + "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": "organization_cluster_domain" + }, + { + "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": "organization_cluster_domain" + }, + { + "nameExplicit": false, + "columns": [ + "organization_id" + ], + "schemaTo": "public", + "tableTo": "organization", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "organization_cluster_domain_eJqKfNjJBhUj_fkey", + "entityType": "fks", + "schema": "public", + "table": "organization_cluster_domain" + }, + { + "columns": [ + "organization_id" + ], + "nameExplicit": false, + "name": "organization_cluster_domain_pkey", + "schema": "public", + "table": "organization_cluster_domain", + "entityType": "pks" + }, { "value": "jsonb_typeof(\"record_addresses\") = 'array'", "name": "organization_cluster_domain_record_addresses_check", @@ -10531,4 +10465,4 @@ } ], "renames": [] -} \ No newline at end of file +} diff --git a/dashboard/drizzle/20260925063811_build_method/migration.sql b/dashboard/drizzle/20260925063811_build_method/migration.sql deleted file mode 100644 index 0ccca9f3d1..0000000000 --- a/dashboard/drizzle/20260925063811_build_method/migration.sql +++ /dev/null @@ -1,15 +0,0 @@ -CREATE FUNCTION pg_temp.build_method_service(config jsonb) RETURNS jsonb LANGUAGE sql AS $$ - SELECT CASE WHEN config->'build' ? 'builder' - THEN jsonb_set(config, '{build}', ((config->'build') - 'builder') || jsonb_build_object('buildMethod', config->'build'->'builder')) - ELSE config END; -$$;--> statement-breakpoint -CREATE FUNCTION pg_temp.build_method_environment(intent jsonb) RETURNS jsonb LANGUAGE sql AS $$ - SELECT jsonb_set(intent, '{services}', COALESCE((SELECT jsonb_agg( - node || jsonb_build_object('config', pg_temp.build_method_service(node->'config')) ORDER BY ordinal) - FROM jsonb_array_elements(intent->'services') WITH ORDINALITY AS nodes(node,ordinal)), '[]'::jsonb)); -$$;--> statement-breakpoint -UPDATE environment SET intent = pg_temp.build_method_environment(intent), revision = gen_random_uuid();--> statement-breakpoint -UPDATE environment_saved_state_snapshot SET intent = pg_temp.build_method_environment(intent);--> statement-breakpoint -UPDATE environment_node_introduction SET config = pg_temp.build_method_service(config) WHERE node_type = 'service';--> statement-breakpoint -UPDATE environment_node_config_snapshot SET config = pg_temp.build_method_service(config) WHERE node_type = 'service';--> statement-breakpoint -UPDATE environment_node_introduction_secret SET authored_intent = pg_temp.build_method_environment(authored_intent); diff --git a/dashboard/drizzle/20260925063811_build_method/snapshot.json b/dashboard/drizzle/20260925063811_build_method/snapshot.json deleted file mode 100644 index 3b245150fb..0000000000 --- a/dashboard/drizzle/20260925063811_build_method/snapshot.json +++ /dev/null @@ -1,10306 +0,0 @@ -{ - "id": "18b3b2e8-f907-4728-bdaf-161a39321a73", - "prevIds": [ - "75f56b1f-011a-46cc-8822-b6d50bd7c1ec", - "fc143b08-cafd-4414-98ed-403fed75594e" - ], - "version": "8", - "dialect": "postgres", - "ddl": [ - { - "schema": "public", - "isRlsEnabled": false, - "name": "organization", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "organization_change", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "account", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "invitation", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "member", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "session", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "user", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "verification", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "environment", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "project", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "user_project_preference", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "environment_canvas_node_position", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "environment_resource", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "resource_lineage", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "service", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "service_lineage", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "service_registry_credential", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "variable", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "variable_secret", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "environment_deployment", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "environment_deployment_build_output", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "environment_deployment_build_step", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "environment_deployment_event", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "environment_deployment_secret", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "environment_saved_state_snapshot", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "core_operation_event", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "core_operation_watch", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "environment_node_config_snapshot", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "environment_node_config_snapshot_secret", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "environment_node_introduction", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "environment_node_introduction_secret", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "organization_pairing", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "teardown_attempt", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "volume_remove_attempt", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "enrollment_allocation", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "machine_enrollment_token", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "machine_remove_attempt", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "organization_machine", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "github_branch_projection", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "github_check_suite_projection", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "github_environment_trigger", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "github_installation", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "github_repository_cache", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "github_webhook_delivery", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "organization_billing_state", - "entityType": "tables" - }, - { - "schema": "public", - "isRlsEnabled": false, - "name": "waitlist", - "entityType": "tables" - }, - { - "schema": "public", - "table": "organization", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logo", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization", - "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": "organization_change", - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": { - "type": "always", - "name": "organization_change_seq_seq", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "9223372036854775807", - "cache": 1, - "cycle": false - }, - "name": "seq", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization_change", - "type": "xid8", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "pg_current_xact_id()", - "generated": null, - "identity": null, - "name": "xid", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization_change", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization_change", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_table", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization_change", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "changed_ids", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization_change", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "deleted_ids", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization_change", - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "all_rows", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization_change", - "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": "account", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "account", - "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": "account", - "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": "account", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "account", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "provider_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "account", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "account", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token", - "entityType": "columns" - }, - { - "schema": "public", - "table": "account", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token", - "entityType": "columns" - }, - { - "schema": "public", - "table": "account", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id_token", - "entityType": "columns" - }, - { - "schema": "public", - "table": "account", - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "access_token_expires_at", - "entityType": "columns" - }, - { - "schema": "public", - "table": "account", - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refresh_token_expires_at", - "entityType": "columns" - }, - { - "schema": "public", - "table": "account", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns" - }, - { - "schema": "public", - "table": "account", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "password", - "entityType": "columns" - }, - { - "schema": "public", - "table": "invitation", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "invitation", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "invitation", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns" - }, - { - "schema": "public", - "table": "invitation", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns" - }, - { - "schema": "public", - "table": "invitation", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns" - }, - { - "schema": "public", - "table": "invitation", - "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": "invitation", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inviter_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "invitation", - "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": "member", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "member", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "member", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "member", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'member'", - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns" - }, - { - "schema": "public", - "table": "member", - "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": "session", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "session", - "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": "session", - "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": "session", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "session", - "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": "session", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns" - }, - { - "schema": "public", - "table": "session", - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "session", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_organization_slug", - "entityType": "columns" - }, - { - "schema": "public", - "table": "session", - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "sidebar_open", - "entityType": "columns" - }, - { - "schema": "public", - "table": "session", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ip_address", - "entityType": "columns" - }, - { - "schema": "public", - "table": "session", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_agent", - "entityType": "columns" - }, - { - "schema": "public", - "table": "user", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "user", - "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": "user", - "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": "user", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns" - }, - { - "schema": "public", - "table": "user", - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "email_verified", - "entityType": "columns" - }, - { - "schema": "public", - "table": "user", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns" - }, - { - "schema": "public", - "table": "user", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "image", - "entityType": "columns" - }, - { - "schema": "public", - "table": "verification", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "verification", - "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": "verification", - "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": "verification", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "identifier", - "entityType": "columns" - }, - { - "schema": "public", - "table": "verification", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns" - }, - { - "schema": "public", - "table": "verification", - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expires_at", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "namespace", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment", - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment", - "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": "environment", - "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": "project", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "project", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "project", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns" - }, - { - "schema": "public", - "table": "project", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slug", - "entityType": "columns" - }, - { - "schema": "public", - "table": "project", - "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": "user_project_preference", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "user_project_preference", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "user_project_preference", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "user_project_preference", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "user_project_preference", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "user_project_preference", - "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": "user_project_preference", - "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": "environment_canvas_node_position", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_canvas_node_position", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_canvas_node_position", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_canvas_node_position", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_type", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_canvas_node_position", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resource_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_canvas_node_position", - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "x", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_canvas_node_position", - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "y", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_canvas_node_position", - "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": "environment_canvas_node_position", - "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": "environment_resource", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_resource", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_resource", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_resource", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_resource", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_resource", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "implementation_type", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_resource", - "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": "environment_resource", - "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": "resource_lineage", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "resource_lineage", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "resource_lineage", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "resource_lineage", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns" - }, - { - "schema": "public", - "table": "resource_lineage", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns" - }, - { - "schema": "public", - "table": "resource_lineage", - "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": "resource_lineage", - "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": "service", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "service", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "service", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "service", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "service", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineage_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "service", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns" - }, - { - "schema": "public", - "table": "service", - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"autoDeploy\":true,\"waitForCi\":false,\"watchPaths\":[],\"imageUpdate\":{\"type\":\"off\"}}'", - "generated": null, - "identity": null, - "name": "policy", - "entityType": "columns" - }, - { - "schema": "public", - "table": "service", - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_registry_credential", - "entityType": "columns" - }, - { - "schema": "public", - "table": "service", - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_deployed_at", - "entityType": "columns" - }, - { - "schema": "public", - "table": "service", - "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": "service", - "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": "service_lineage", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "service_lineage", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "service_lineage", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "service_lineage", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_name", - "entityType": "columns" - }, - { - "schema": "public", - "table": "service_lineage", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "canonical_slug", - "entityType": "columns" - }, - { - "schema": "public", - "table": "service_lineage", - "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": "service_lineage", - "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": "service_registry_credential", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "service_registry_credential", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns" - }, - { - "schema": "public", - "table": "service_registry_credential", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "service_registry_credential", - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns" - }, - { - "schema": "public", - "table": "service_registry_credential", - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns" - }, - { - "schema": "public", - "table": "variable", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "variable", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "variable", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "variable", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "variable", - "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": "variable_secret", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "variable_secret", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "variable_secret", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "variable_secret", - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_value", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment", - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "trigger_origin", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "saved_state_snapshot_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment", - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "service_action_policy", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'queued'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "core_deploy_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment", - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_deployment_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment", - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "source_pins", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment", - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variable_producers", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment", - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_manifest", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment", - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deploy_preview", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment", - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "runtime_progress", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment", - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancellation_requested_at", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment", - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "dispatch_requested_at", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment", - "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": "environment_deployment", - "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": "environment_deployment", - "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": "environment_deployment", - "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": "environment_deployment_build_output", - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment_build_output", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment_build_output", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment_build_output", - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "step_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment_build_output", - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "stderr", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment_build_output", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "text", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment_build_output", - "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": "environment_deployment_build_step", - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment_build_step", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment_build_step", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment_build_step", - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "build", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment_build_step", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "key", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment_build_step", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment_build_step", - "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": "environment_deployment_build_step", - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completed_at", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment_build_step", - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "cached", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment_build_step", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "error", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment_build_step", - "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": "environment_deployment_build_step", - "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": "environment_deployment_event", - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment_event", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment_event", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deployment_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment_event", - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "progress", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment_event", - "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": "environment_deployment_secret", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment_secret", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment_secret", - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_build_receipts", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_deployment_secret", - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_runtime_outcome", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_saved_state_snapshot", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_saved_state_snapshot", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_saved_state_snapshot", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_saved_state_snapshot", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actor_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_saved_state_snapshot", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_saved_state_snapshot", - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "intent", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_saved_state_snapshot", - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volume_deletion_authorizations", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_saved_state_snapshot", - "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": "core_operation_event", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "core_operation_event", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "core_operation_event", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "watch_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "core_operation_event", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequence", - "entityType": "columns" - }, - { - "schema": "public", - "table": "core_operation_event", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_type", - "entityType": "columns" - }, - { - "schema": "public", - "table": "core_operation_event", - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "schema_version", - "entityType": "columns" - }, - { - "schema": "public", - "table": "core_operation_event", - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns" - }, - { - "schema": "public", - "table": "core_operation_event", - "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": "core_operation_watch", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "core_operation_watch", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "core_operation_watch", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "operation_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "core_operation_watch", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expected_kind", - "entityType": "columns" - }, - { - "schema": "public", - "table": "core_operation_watch", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "start_sequence", - "entityType": "columns" - }, - { - "schema": "public", - "table": "core_operation_watch", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "next_sequence", - "entityType": "columns" - }, - { - "schema": "public", - "table": "core_operation_watch", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cursor_state", - "entityType": "columns" - }, - { - "schema": "public", - "table": "core_operation_watch", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "observation_state", - "entityType": "columns" - }, - { - "schema": "public", - "table": "core_operation_watch", - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "observation_detail", - "entityType": "columns" - }, - { - "schema": "public", - "table": "core_operation_watch", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "core_operation_watch", - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deadline_at", - "entityType": "columns" - }, - { - "schema": "public", - "table": "core_operation_watch", - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns" - }, - { - "schema": "public", - "table": "core_operation_watch", - "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": "core_operation_watch", - "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": "environment_node_config_snapshot", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_node_config_snapshot", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_node_config_snapshot", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_node_config_snapshot", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_node_config_snapshot", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_node_config_snapshot", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_node_config_snapshot", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_node_config_snapshot", - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_node_config_snapshot", - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_node_config_snapshot", - "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": "environment_node_config_snapshot", - "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": "environment_node_config_snapshot_secret", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_node_config_snapshot_secret", - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "credential_revision", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_node_config_snapshot_secret", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "snapshot_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_node_config_snapshot_secret", - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_username", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_node_config_snapshot_secret", - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_registry_secret", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_node_introduction", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_node_introduction", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_node_introduction", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_node_introduction", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_node_introduction", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_lineage_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_node_introduction", - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "config_version", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_node_introduction", - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_node_introduction", - "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": "environment_node_introduction", - "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": "environment_node_introduction_secret", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_node_introduction_secret", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_node_introduction_secret", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_type", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_node_introduction_secret", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "node_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "environment_node_introduction_secret", - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "authored_intent", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization_pairing", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization_pairing", - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_pairing_secret", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization_pairing", - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_started_at", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization_pairing", - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "removal_endpoints", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization_pairing", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_public_key", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization_pairing", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_claim_machine_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization_pairing", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "founder_machine_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization_pairing", - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "first_connect_deployment_evaluated_at", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization_pairing", - "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": "organization_pairing", - "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": "teardown_attempt", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "teardown_attempt", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "teardown_attempt", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "teardown_attempt", - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "project_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "teardown_attempt", - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "teardown_attempt", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns" - }, - { - "schema": "public", - "table": "teardown_attempt", - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns" - }, - { - "schema": "public", - "table": "teardown_attempt", - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "targets", - "entityType": "columns" - }, - { - "schema": "public", - "table": "teardown_attempt", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns" - }, - { - "schema": "public", - "table": "teardown_attempt", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "teardown_attempt", - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns" - }, - { - "schema": "public", - "table": "teardown_attempt", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns" - }, - { - "schema": "public", - "table": "teardown_attempt", - "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": "teardown_attempt", - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns" - }, - { - "schema": "public", - "table": "teardown_attempt", - "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": "teardown_attempt", - "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": "volume_remove_attempt", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_deployment_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_resource_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "type": "uuid", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retry_of_attempt_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "volumes", - "entityType": "columns" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "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": "volume_remove_attempt", - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "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": "volume_remove_attempt", - "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": "enrollment_allocation", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "enrollment_allocation", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns" - }, - { - "schema": "public", - "table": "enrollment_allocation", - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "assignments", - "entityType": "columns" - }, - { - "schema": "public", - "table": "machine_enrollment_token", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "machine_enrollment_token", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "machine_enrollment_token", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token_hash", - "entityType": "columns" - }, - { - "schema": "public", - "table": "machine_enrollment_token", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "created_by_user_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "machine_enrollment_token", - "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": "machine_enrollment_token", - "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": "machine_enrollment_token", - "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": "machine_remove_attempt", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "machine_remove_attempt", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "machine_remove_attempt", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requested_by_user_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "machine_remove_attempt", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "machine_remove_attempt", - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirm_data_loss", - "entityType": "columns" - }, - { - "schema": "public", - "table": "machine_remove_attempt", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns" - }, - { - "schema": "public", - "table": "machine_remove_attempt", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inngest_run_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "machine_remove_attempt", - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "missing_identities", - "entityType": "columns" - }, - { - "schema": "public", - "table": "machine_remove_attempt", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns" - }, - { - "schema": "public", - "table": "machine_remove_attempt", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_message", - "entityType": "columns" - }, - { - "schema": "public", - "table": "machine_remove_attempt", - "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": "machine_remove_attempt", - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "terminal_at", - "entityType": "columns" - }, - { - "schema": "public", - "table": "machine_remove_attempt", - "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": "machine_remove_attempt", - "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": "organization_machine", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization_machine", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "machine_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization_machine", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cluster_key", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization_machine", - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encrypted_capability", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization_machine", - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "is_dial_entry", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization_machine", - "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": "organization_machine", - "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": "github_branch_projection", - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_branch_projection", - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_branch_projection", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_branch_projection", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_branch_projection", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluated_head_sha", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_branch_projection", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "evaluation_reason", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_branch_projection", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_branch_projection", - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_branch_projection", - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "evaluation_revision", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_branch_projection", - "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": "github_branch_projection", - "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": "github_check_suite_projection", - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_check_suite_projection", - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_check_suite_projection", - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_check_suite_projection", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_check_suite_projection", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_check_suite_projection", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conclusion", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_check_suite_projection", - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_check_suite_projection", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_delivery_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_check_suite_projection", - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "last_receipt_sequence", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_check_suite_projection", - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "transition_revision", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_check_suite_projection", - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_check_suite_projection", - "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": "github_check_suite_projection", - "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": "github_environment_trigger", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "environment_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'waiting'", - "generated": null, - "identity": null, - "name": "admission_state", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "changed_paths", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "service_ids", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "selection_mode", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "reason", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_delivery_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_receipt_sequence", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "branch_evaluation_revision", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "trigger_revision", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "published_revision", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "publish_state", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "published_at", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "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": "github_environment_trigger", - "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": "github_installation", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_installation", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_installation", - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_installation", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_login", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_installation", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_type", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_installation", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "account_avatar_url", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_installation", - "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": "github_installation", - "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": "github_repository_cache", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_repository_cache", - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_repository_cache", - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_repository_cache", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_repository_cache", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "full_name", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_repository_cache", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "default_branch", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_repository_cache", - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "private", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_repository_cache", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "html_url", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_repository_cache", - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repo_updated_at", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_repository_cache", - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "delivery_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "type": "bigserial", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "receipt_sequence", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event_kind", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'received'", - "generated": null, - "identity": null, - "name": "processing_state", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failure_code", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installation_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "repository_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "branch_state", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "head_sha", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_action", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_status", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "check_suite_conclusion", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_run_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processing_started_at", - "entityType": "columns" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "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": "github_webhook_delivery", - "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": "github_webhook_delivery", - "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": "organization_billing_state", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "organization_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization_billing_state", - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "active_subscription_id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization_billing_state", - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "current_period_end", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization_billing_state", - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "has_active_subscription", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization_billing_state", - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "synced_at", - "entityType": "columns" - }, - { - "schema": "public", - "table": "organization_billing_state", - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source_updated_at", - "entityType": "columns" - }, - { - "schema": "public", - "table": "waitlist", - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "gen_random_uuid()", - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns" - }, - { - "schema": "public", - "table": "waitlist", - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns" - }, - { - "schema": "public", - "table": "waitlist", - "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": "organization_change", - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "xid", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_change_organization_id_xid_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "organization_change", - "nameExplicit": true, - "columns": [ - { - "value": "xid", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_change_xid_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "account", - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_user_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "account", - "nameExplicit": true, - "columns": [ - { - "value": "provider_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "account_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "account_provider_account_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "invitation", - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_organization_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "invitation", - "nameExplicit": true, - "columns": [ - { - "value": "email", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "invitation_email_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "session", - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "session_user_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "verification", - "nameExplicit": true, - "columns": [ - { - "value": "identifier", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "verification_identifier_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "user_project_preference", - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_user_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "user_project_preference", - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_organization_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "user_project_preference", - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "user_project_preference_project_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "environment_canvas_node_position", - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_environment_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "environment_canvas_node_position", - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_organization_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "environment_canvas_node_position", - "nameExplicit": true, - "columns": [ - { - "value": "resource_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_canvas_node_position_resource_lookup_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "environment_resource", - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_project_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "environment_resource", - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_organization_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "environment_resource", - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_environment_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "environment_resource", - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_resource_lineage_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "resource_lineage", - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_project_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "resource_lineage", - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "resource_lineage_organization_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "service", - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_project_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "service", - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_organization_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "service", - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_environment_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "service", - "nameExplicit": true, - "columns": [ - { - "value": "lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "service_lineage", - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "service_lineage_project_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "environment_deployment", - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_organization_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "environment_deployment", - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_environment_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "environment_deployment", - "nameExplicit": true, - "columns": [ - { - "value": "saved_state_snapshot_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_saved_state_snapshot_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "environment_deployment", - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" = 'queued'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_queued_target_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "environment_deployment", - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('planning','deploying')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_one_started_attempt_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "environment_deployment", - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_inngest_run_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "environment_deployment", - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_deployment_retry_of_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "environment_deployment_build_output", - "nameExplicit": true, - "columns": [ - { - "value": "deployment_id", - "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": "environment_deployment_build_output_cursor_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "environment_deployment_event", - "nameExplicit": true, - "columns": [ - { - "value": "deployment_id", - "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": "environment_deployment_event_cursor_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "environment_saved_state_snapshot", - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_saved_state_snapshot_organization_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "environment_saved_state_snapshot", - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "environment_saved_state_snapshot_environment_created_at_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "environment_node_config_snapshot", - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_organization_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "environment_node_config_snapshot", - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_environment_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "environment_node_config_snapshot", - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_lineage_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "environment_node_config_snapshot", - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_config_snapshot_deployment_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "environment_node_introduction", - "nameExplicit": true, - "columns": [ - { - "value": "node_type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "node_lineage_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_lineage_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "environment_node_introduction", - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "environment_node_introduction_organization_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "teardown_attempt", - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_organization_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "teardown_attempt", - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_project_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "teardown_attempt", - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_environment_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "teardown_attempt", - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'environment'\n and \"environment_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_environment_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "teardown_attempt", - "nameExplicit": true, - "columns": [ - { - "value": "project_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'project'\n and \"project_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_project_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "teardown_attempt", - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('pending', 'running')\n and \"scope\" = 'organization'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_one_active_organization_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "teardown_attempt", - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "teardown_attempt_inngest_run_uidx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_organization_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "nameExplicit": true, - "columns": [ - { - "value": "environment_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_environment_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "nameExplicit": true, - "columns": [ - { - "value": "environment_deployment_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": "volume_remove_attempt_deployment_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_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": "volume_remove_attempt_resource_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "nameExplicit": true, - "columns": [ - { - "value": "retry_of_attempt_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"retry_of_attempt_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_retry_of_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "nameExplicit": true, - "columns": [ - { - "value": "environment_resource_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" in ('awaiting_deployment', 'pending', 'running')\n and \"environment_resource_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_one_active_resource_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "volume_remove_attempt_inngest_run_uidx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "machine_enrollment_token", - "nameExplicit": true, - "columns": [ - { - "value": "token_hash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_hash_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "machine_enrollment_token", - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_enrollment_token_organization_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "machine_remove_attempt", - "nameExplicit": true, - "columns": [ - { - "value": "inngest_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"inngest_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_inngest_run_uidx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "machine_remove_attempt", - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"state\" in ('pending', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "machine_remove_attempt_one_active_org_machine_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "organization_machine", - "nameExplicit": true, - "columns": [ - { - "value": "machine_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_machine_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "organization_machine", - "nameExplicit": true, - "columns": [ - { - "value": "organization_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"is_dial_entry\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "organization_machine_one_dial_entry_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "github_branch_projection", - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "evaluated_head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_branch_projection_head_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "github_check_suite_projection", - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "head_sha", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_head_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "github_check_suite_projection", - "nameExplicit": true, - "columns": [ - { - "value": "updated_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"published_revision\" < \"transition_revision\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_check_suite_projection_unpublished_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "nameExplicit": true, - "columns": [ - { - "value": "environment_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": "github_environment_trigger_environment_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "nameExplicit": true, - "columns": [ - { - "value": "created_at", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"publish_state\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_environment_trigger_pending_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "github_installation", - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_user_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "github_installation", - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_installation_installation_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "github_repository_cache", - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_installation_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "github_repository_cache", - "nameExplicit": true, - "columns": [ - { - "value": "user_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_user_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "github_repository_cache", - "nameExplicit": true, - "columns": [ - { - "value": "full_name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_repository_cache_full_name_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "nameExplicit": true, - "columns": [ - { - "value": "processing_state", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "receipt_sequence", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "nameExplicit": true, - "columns": [ - { - "value": "installation_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "repository_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_identity_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "nameExplicit": true, - "columns": [ - { - "value": "processing_run_id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"processing_run_id\" is not null", - "with": "", - "method": "btree", - "concurrently": false, - "name": "github_webhook_delivery_processing_run_id_idx", - "entityType": "indexes" - }, - { - "schema": "public", - "table": "account", - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "account_user_id_user_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "invitation", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_organization_id_organization_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "invitation", - "nameExplicit": false, - "columns": [ - "inviter_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "invitation_inviter_id_user_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "member", - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_user_id_user_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "member", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "member_organization_id_organization_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "session", - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "session_user_id_user_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment", - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_project_id_project_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_organization_id_organization_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment", - "nameExplicit": false, - "columns": [ - "organization_id", - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "organization_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_IqLeTQthFKCX_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "project", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "project_organization_id_organization_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "user_project_preference", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_organization_id_organization_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "user_project_preference", - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_user_id_user_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "user_project_preference", - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_project_id_project_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "user_project_preference", - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "user_project_preference_environment_id_environment_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_canvas_node_position", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_4ir4xbHMhQ0b_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_canvas_node_position", - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_canvas_node_position_DP4bUoilqg6D_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_resource", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_organization_id_organization_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_resource", - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_project_id_project_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_resource", - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_environment_id_environment_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_resource", - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_lineage_id_resource_lineage_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_resource", - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_resource_krkfQwOLhWDI_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_resource", - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "resource_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_resource_zQ2aoOGRLIOR_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "resource_lineage", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_organization_id_organization_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "resource_lineage", - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "resource_lineage_project_id_project_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "service", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_organization_id_organization_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "service", - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_project_id_project_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "service", - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_environment_id_environment_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "service", - "nameExplicit": false, - "columns": [ - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_lineage_id_service_lineage_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "service", - "nameExplicit": false, - "columns": [ - "project_id", - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_bvUAv6STak07_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "service", - "nameExplicit": false, - "columns": [ - "project_id", - "lineage_id" - ], - "schemaTo": "public", - "tableTo": "service_lineage", - "columnsTo": [ - "project_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "service_1xRYD1MXFhcT_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "service_lineage", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_lineage_organization_id_organization_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "service_lineage", - "nameExplicit": false, - "columns": [ - "project_id" - ], - "schemaTo": "public", - "tableTo": "project", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_lineage_project_id_project_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "service_registry_credential", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_registry_credential_fC7nGiZZPNsV_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "service_registry_credential", - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "service_registry_credential_service_id_service_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "variable", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_organization_id_organization_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "variable", - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_environment_id_environment_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "variable", - "nameExplicit": false, - "columns": [ - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_service_id_service_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "variable", - "nameExplicit": false, - "columns": [ - "environment_id", - "service_id" - ], - "schemaTo": "public", - "tableTo": "service", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_dFGv8UXjv6eg_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "variable_secret", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_organization_id_organization_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "variable_secret", - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_environment_id_environment_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "variable_secret", - "nameExplicit": false, - "columns": [ - "environment_id", - "variable_id" - ], - "schemaTo": "public", - "tableTo": "variable", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "variable_secret_fgbg4UfEzo6H_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_deployment", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_organization_id_organization_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_deployment", - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_environment_id_environment_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_deployment", - "nameExplicit": false, - "columns": [ - "retry_of_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "NO ACTION", - "name": "environment_deployment_Lofdv4M9OTIQ_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_deployment", - "nameExplicit": false, - "columns": [ - "environment_id", - "saved_state_snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_saved_state_snapshot", - "columnsTo": [ - "environment_id", - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_deployment_92k6WdAbc3AZ_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_deployment_build_output", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_output_es7jBaLp3vH8_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_deployment_build_output", - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_output_Xp68IrJouNSa_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_deployment_build_output", - "nameExplicit": false, - "columns": [ - "step_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment_build_step", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_output_XF27nu5BhEx1_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_deployment_build_step", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_step_28D6Rkzs1URj_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_deployment_build_step", - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_build_step_mAOz3YRgkCxT_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_deployment_event", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_event_eW8RHtn0mFyI_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_deployment_event", - "nameExplicit": false, - "columns": [ - "deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_event_nkhfxU66kCFO_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_deployment_secret", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_secret_IuNsdKp3NB8E_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_deployment_secret", - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_deployment_secret_IIXCU5ibjYPq_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_saved_state_snapshot", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_QseWcaivJkoo_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_saved_state_snapshot", - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_saved_state_snapshot_pYS3zmT4RKuQ_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_saved_state_snapshot", - "nameExplicit": false, - "columns": [ - "actor_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "environment_saved_state_snapshot_actor_id_user_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "core_operation_event", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_event_organization_id_organization_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "core_operation_event", - "nameExplicit": false, - "columns": [ - "watch_id" - ], - "schemaTo": "public", - "tableTo": "core_operation_watch", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_event_watch_id_core_operation_watch_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "core_operation_watch", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "core_operation_watch_organization_id_organization_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_node_config_snapshot", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_3y0HYOFWmCwQ_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_node_config_snapshot", - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_CUaPaujMBOIs_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_node_config_snapshot", - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_D4DPm1gvv2Di_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_node_config_snapshot_secret", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_secret_jZo1GvXOHIs5_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_node_config_snapshot_secret", - "nameExplicit": false, - "columns": [ - "snapshot_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_config_snapshot", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_config_snapshot_secret_j5H7VPFuELrf_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_node_introduction", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_aSA9HOqVYGRT_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_node_introduction", - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_YPW21fX4uIUZ_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_node_introduction_secret", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_secret_HaNAhrDo0dtU_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_node_introduction_secret", - "nameExplicit": false, - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "schemaTo": "public", - "tableTo": "environment_node_introduction", - "columnsTo": [ - "environment_id", - "node_type", - "node_id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "environment_node_introduction_secret_sC7ALWFOnE38_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "organization_pairing", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_pairing_organization_id_organization_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "teardown_attempt", - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "teardown_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_environment_id_environment_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "nameExplicit": false, - "columns": [ - "environment_deployment_id" - ], - "schemaTo": "public", - "tableTo": "environment_deployment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "volume_remove_attempt_2ncjupSSetid_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "nameExplicit": false, - "columns": [ - "retry_of_attempt_id" - ], - "schemaTo": "public", - "tableTo": "volume_remove_attempt", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "volume_remove_attempt_FQapB8QhQW1M_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "enrollment_allocation", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "enrollment_allocation_organization_id_organization_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "machine_enrollment_token", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_enrollment_token_organization_id_organization_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "machine_enrollment_token", - "nameExplicit": false, - "columns": [ - "created_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_enrollment_token_created_by_user_id_user_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "machine_remove_attempt", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "machine_remove_attempt_organization_id_organization_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "machine_remove_attempt", - "nameExplicit": false, - "columns": [ - "requested_by_user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "machine_remove_attempt_requested_by_user_id_user_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "organization_machine", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_machine_organization_id_organization_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "github_branch_projection", - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_branch_projection_Udo5xaDQmVxR_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "github_check_suite_projection", - "nameExplicit": false, - "columns": [ - "last_delivery_id", - "last_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_check_suite_projection_9FLSHaRf6WgI_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_environment_trigger_organization_id_organization_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "nameExplicit": false, - "columns": [ - "environment_id" - ], - "schemaTo": "public", - "tableTo": "environment", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_environment_trigger_environment_id_environment_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "nameExplicit": false, - "columns": [ - "source_delivery_id", - "source_receipt_sequence" - ], - "schemaTo": "public", - "tableTo": "github_webhook_delivery", - "columnsTo": [ - "delivery_id", - "receipt_sequence" - ], - "onUpdate": "NO ACTION", - "onDelete": "RESTRICT", - "name": "github_environment_trigger_dspFptTlur3h_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "github_installation", - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_installation_user_id_user_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "github_repository_cache", - "nameExplicit": false, - "columns": [ - "user_id" - ], - "schemaTo": "public", - "tableTo": "user", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "github_repository_cache_user_id_user_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "organization_billing_state", - "nameExplicit": false, - "columns": [ - "organization_id" - ], - "schemaTo": "public", - "tableTo": "organization", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "organization_billing_state_organization_id_organization_id_fkey", - "entityType": "fks" - }, - { - "schema": "public", - "table": "environment_node_introduction", - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "environment_node_introduction_secret", - "columns": [ - "environment_id", - "node_type", - "node_id" - ], - "nameExplicit": false, - "name": "environment_node_introduction_secret_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "enrollment_allocation", - "columns": [ - "organization_id", - "cluster_key" - ], - "nameExplicit": false, - "name": "enrollment_allocation_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "organization_machine", - "columns": [ - "organization_id", - "machine_id" - ], - "nameExplicit": false, - "name": "organization_machine_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "github_branch_projection", - "columns": [ - "installation_id", - "repository_id", - "ref" - ], - "nameExplicit": false, - "name": "github_branch_projection_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "github_check_suite_projection", - "columns": [ - "installation_id", - "repository_id", - "check_suite_id" - ], - "nameExplicit": false, - "name": "github_check_suite_projection_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "github_repository_cache", - "columns": [ - "user_id", - "installation_id", - "repository_id" - ], - "nameExplicit": false, - "name": "github_repository_cache_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "organization", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "organization_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "organization_change", - "columns": [ - "seq" - ], - "nameExplicit": false, - "name": "organization_change_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "account", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "account_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "invitation", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "invitation_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "member", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "member_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "session", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "session_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "user", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "verification", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "verification_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "environment", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "project", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "project_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "user_project_preference", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "user_project_preference_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "environment_canvas_node_position", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_canvas_node_position_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "environment_resource", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_resource_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "resource_lineage", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "resource_lineage_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "service", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "service_lineage", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "service_lineage_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "service_registry_credential", - "columns": [ - "service_id" - ], - "nameExplicit": false, - "name": "service_registry_credential_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "variable", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "variable_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "variable_secret", - "columns": [ - "variable_id" - ], - "nameExplicit": false, - "name": "variable_secret_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "environment_deployment", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "environment_deployment_build_output", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_build_output_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "environment_deployment_build_step", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_build_step_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "environment_deployment_event", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_deployment_event_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "environment_deployment_secret", - "columns": [ - "environment_deployment_id" - ], - "nameExplicit": false, - "name": "environment_deployment_secret_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "environment_saved_state_snapshot", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_saved_state_snapshot_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "core_operation_event", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_event_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "core_operation_watch", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "core_operation_watch_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "environment_node_config_snapshot", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "environment_node_config_snapshot_secret", - "columns": [ - "snapshot_id" - ], - "nameExplicit": false, - "name": "environment_node_config_snapshot_secret_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "organization_pairing", - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_pairing_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "teardown_attempt", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "teardown_attempt_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "volume_remove_attempt_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "machine_enrollment_token", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_enrollment_token_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "machine_remove_attempt", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "machine_remove_attempt_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_environment_trigger_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "github_installation", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "github_installation_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "columns": [ - "delivery_id" - ], - "nameExplicit": false, - "name": "github_webhook_delivery_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "organization_billing_state", - "columns": [ - "organization_id" - ], - "nameExplicit": false, - "name": "organization_billing_state_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "waitlist", - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "waitlist_pkey", - "entityType": "pks" - }, - { - "schema": "public", - "table": "organization", - "nameExplicit": false, - "columns": [ - "slug" - ], - "nullsNotDistinct": false, - "name": "organization_slug_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "member", - "nameExplicit": false, - "columns": [ - "user_id", - "organization_id" - ], - "nullsNotDistinct": false, - "name": "member_user_id_organization_id_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "session", - "nameExplicit": false, - "columns": [ - "token" - ], - "nullsNotDistinct": false, - "name": "session_token_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "user", - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "user_email_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "environment", - "nameExplicit": false, - "columns": [ - "project_id", - "name" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_name_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "environment", - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_project_id_id_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "environment", - "nameExplicit": false, - "columns": [ - "organization_id", - "namespace" - ], - "nullsNotDistinct": false, - "name": "environment_organization_id_namespace_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "project", - "nameExplicit": false, - "columns": [ - "organization_id", - "slug" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_slug_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "project", - "nameExplicit": false, - "columns": [ - "organization_id", - "id" - ], - "nullsNotDistinct": false, - "name": "project_organization_id_id_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "user_project_preference", - "nameExplicit": false, - "columns": [ - "user_id", - "project_id" - ], - "nullsNotDistinct": false, - "name": "user_project_preference_user_id_project_id_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "environment_canvas_node_position", - "nameExplicit": false, - "columns": [ - "environment_id", - "resource_type", - "resource_id" - ], - "nullsNotDistinct": false, - "name": "environment_canvas_node_position_environment_id_resource_type_resource_id_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "environment_resource", - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_project_id_id_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "environment_resource", - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_id_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "environment_resource", - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "environment_resource_environment_id_lineage_id_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "resource_lineage", - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_canonical_slug_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "resource_lineage", - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "resource_lineage_project_id_id_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "service", - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_project_id_id_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "service", - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_id_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "service", - "nameExplicit": false, - "columns": [ - "environment_id", - "lineage_id" - ], - "nullsNotDistinct": false, - "name": "service_environment_id_lineage_id_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "service_lineage", - "nameExplicit": false, - "columns": [ - "project_id", - "canonical_slug" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_canonical_slug_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "service_lineage", - "nameExplicit": false, - "columns": [ - "project_id", - "id" - ], - "nullsNotDistinct": false, - "name": "service_lineage_project_id_id_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "variable", - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "variable_environment_id_id_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "environment_deployment_build_step", - "nameExplicit": true, - "columns": [ - "deployment_id", - "build", - "key" - ], - "nullsNotDistinct": false, - "name": "environment_deployment_build_step_key_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "environment_saved_state_snapshot", - "nameExplicit": false, - "columns": [ - "environment_id", - "id" - ], - "nullsNotDistinct": false, - "name": "environment_saved_state_snapshot_environment_id_id_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "core_operation_event", - "nameExplicit": false, - "columns": [ - "watch_id", - "sequence" - ], - "nullsNotDistinct": false, - "name": "core_operation_event_watch_id_sequence_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "core_operation_watch", - "nameExplicit": false, - "columns": [ - "organization_id", - "operation_id" - ], - "nullsNotDistinct": false, - "name": "core_operation_watch_organization_id_operation_id_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "environment_node_config_snapshot", - "nameExplicit": false, - "columns": [ - "environment_deployment_id", - "node_type", - "node_id" - ], - "nullsNotDistinct": false, - "name": "environment_node_config_snapshot_environment_deployment_id_node_type_node_id_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "nameExplicit": false, - "columns": [ - "installation_id", - "repository_id", - "ref", - "branch_evaluation_revision", - "environment_id" - ], - "nullsNotDistinct": false, - "name": "github_environment_trigger_installation_id_repository_id_ref_branch_evaluation_revision_environment_id_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "github_installation", - "nameExplicit": false, - "columns": [ - "user_id", - "installation_id" - ], - "nullsNotDistinct": false, - "name": "github_installation_user_id_installation_id_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "nameExplicit": false, - "columns": [ - "delivery_id", - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_delivery_id_receipt_sequence_unique", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "nameExplicit": false, - "columns": [ - "receipt_sequence" - ], - "nullsNotDistinct": false, - "name": "github_webhook_delivery_receipt_sequence_key", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "waitlist", - "nameExplicit": false, - "columns": [ - "email" - ], - "nullsNotDistinct": false, - "name": "waitlist_email_key", - "entityType": "uniques" - }, - { - "schema": "public", - "table": "environment_resource", - "value": "\"implementation_type\" in ('volume')", - "name": "environment_resource_implementation_type_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "service_registry_credential", - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "service_registry_credential_nonempty_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "environment_deployment", - "value": "(\n (\"status\" = 'cancelled' and \"cancellation_requested_at\" is not null and \"finished_at\" is not null)\n or (\"status\" <> 'cancelled')\n )", - "name": "environment_deployment_cancellation_shape_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "core_operation_watch", - "value": "\"expected_kind\" in ('deploy','cert','machine_add','machine_update','machine_lifecycle','core_replace','credential_grant','network_repair','service_restart','managed_dns_reconcile','ingress_configure','ingress_refresh','namespace_remove','volume_create','volume_remove')", - "name": "core_operation_watch_expected_kind_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "core_operation_watch", - "value": "\"cursor_state\" in ('more','caught_up','terminal')", - "name": "core_operation_watch_cursor_state_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "core_operation_watch", - "value": "\"observation_state\" in ('active','core_terminal','cloud_timeout','cloud_cancelled')", - "name": "core_operation_watch_observation_state_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "environment_node_config_snapshot", - "value": "\"node_type\" in ('service', 'volume')", - "name": "environment_node_config_snapshot_node_type_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "environment_node_config_snapshot_secret", - "value": "num_nonnulls(\"encrypted_registry_username\", \"encrypted_registry_secret\") > 0", - "name": "environment_node_config_snapshot_secret_nonempty_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "environment_node_introduction", - "value": "\"node_type\" in ('service', 'volume')", - "name": "environment_node_introduction_node_type_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "organization_pairing", - "value": "\n (\"removal_started_at\" is null and \"removal_endpoints\" is null)\n or (\"removal_started_at\" is not null and \"removal_endpoints\" is not null and jsonb_typeof(\"removal_endpoints\") = 'array')\n ", - "name": "organization_pairing_removal_shape_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "organization_pairing", - "value": "\"founder_public_key\" is not null or \"founder_machine_id\" is not null", - "name": "organization_pairing_state_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "organization_pairing", - "value": "\"founder_claim_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_claim_machine_id_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "organization_pairing", - "value": "\"founder_machine_id\" is null or \"founder_machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_pairing_founder_machine_id_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "teardown_attempt", - "value": "\"scope\" in ('environment','project','organization')", - "name": "teardown_attempt_scope_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "teardown_attempt", - "value": "\"status\" in ('pending','running','completed','partial','failed','cancelled')", - "name": "teardown_attempt_status_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "teardown_attempt", - "value": "(\n (\"scope\" = 'environment' and \"environment_id\" is not null\n and \"project_id\" is not null)\n or (\"scope\" = 'project' and \"project_id\" is not null\n and \"environment_id\" is null)\n or (\"scope\" = 'organization' and \"project_id\" is null\n and \"environment_id\" is null)\n )", - "name": "teardown_attempt_scope_ids_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "teardown_attempt", - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "teardown_attempt_confirm_data_loss_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "teardown_attempt", - "value": "jsonb_typeof(\"targets\") = 'object'", - "name": "teardown_attempt_targets_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "teardown_attempt", - "value": "(\n (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_message\" is null)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n )", - "name": "teardown_attempt_status_shape_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "value": "\"status\" in ('awaiting_deployment','pending','running','unknown','completed','partial','failed','cancelled')", - "name": "volume_remove_attempt_status_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "value": "jsonb_typeof(\"volumes\") = 'array'\n and jsonb_array_length(\"volumes\") >= 1", - "name": "volume_remove_attempt_volumes_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "volume_remove_attempt", - "value": "(\n (\"status\" = 'awaiting_deployment'\n and \"environment_deployment_id\" is not null\n and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"terminal_at\" is null\n and \"outcome\" is null and \"failure_message\" is null)\n or (\"status\" = 'unknown' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000)\n or (\"status\" = 'completed' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null and \"failure_message\" is null)\n or (\"status\" = 'partial' and \"inngest_run_id\" is not null\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"outcome\" is not null)\n or (\"status\" in ('failed', 'cancelled')\n and \"started_at\" is null and \"terminal_at\" is not null\n and \"outcome\" is null and \"failure_message\" is not null\n and length(\"failure_message\") between 1 and 2000\n and (\n (\"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255)\n or (\"inngest_run_id\" is null\n and \"environment_deployment_id\" is not null)\n ))\n )", - "name": "volume_remove_attempt_status_shape_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "enrollment_allocation", - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "enrollment_allocation_cluster_key_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "enrollment_allocation", - "value": "jsonb_typeof(\"assignments\") = 'array'", - "name": "enrollment_allocation_assignments_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "machine_enrollment_token", - "value": "\"token_hash\" ~ '^[0-9a-f]{64}$'", - "name": "machine_enrollment_token_hash_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "machine_remove_attempt", - "value": "length(\"machine_id\") between 1 and 64 and \"machine_id\" !~ '[[:cntrl:]]'", - "name": "machine_remove_attempt_machine_id_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "machine_remove_attempt", - "value": "jsonb_typeof(\"confirm_data_loss\") = 'array'", - "name": "machine_remove_attempt_confirm_data_loss_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "machine_remove_attempt", - "value": "\"state\" in ('pending','running','succeeded','failed','cancelled','missing_identities')", - "name": "machine_remove_attempt_state_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "machine_remove_attempt", - "value": "(\n (\"state\" = 'pending' and \"inngest_run_id\" is null\n and \"started_at\" is null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'running' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" = 'succeeded' and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and \"missing_identities\" is null)\n or (\"state\" in ('failed','cancelled')\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is not null and \"failure_message\" is not null\n and \"failure_code\" ~ '^[a-z][a-z0-9_]{0,63}$'\n and length(\"failure_message\") between 1 and 1024\n and \"missing_identities\" is null)\n or (\"state\" = 'missing_identities'\n and \"inngest_run_id\" is not null\n and length(\"inngest_run_id\") between 1 and 255\n and \"started_at\" is not null and \"terminal_at\" is not null\n and \"failure_code\" is null and \"failure_message\" is null\n and jsonb_typeof(\"missing_identities\") = 'array'\n and jsonb_array_length(\"missing_identities\") > 0)\n )", - "name": "machine_remove_attempt_state_shape_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "organization_machine", - "value": "\"cluster_key\" ~ '^[0-9a-f]{64}$'", - "name": "organization_machine_cluster_key_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "organization_machine", - "value": "\"machine_id\" ~ '^[0-9a-f]{32}$'", - "name": "organization_machine_id_format_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_branch_projection", - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"last_receipt_sequence\" > 0 and \"evaluation_revision\" > 0", - "name": "github_branch_projection_identity_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_branch_projection", - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_branch_projection_ref_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_branch_projection", - "value": "\"state\" in ('active','deleted')", - "name": "github_branch_projection_state_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_branch_projection", - "value": "\"evaluation_reason\" in ('first_observation','changed_paths','rebaseline_all_services','branch_deleted')", - "name": "github_branch_projection_evaluation_reason_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_branch_projection", - "value": "(\n (\"state\" = 'active' and \"evaluated_head_sha\" ~ '^[0-9a-f]{40}$' and \"evaluation_reason\" != 'branch_deleted')\n or (\"state\" = 'deleted' and \"evaluated_head_sha\" is null and \"evaluation_reason\" = 'branch_deleted')\n )", - "name": "github_branch_projection_head_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_check_suite_projection", - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"check_suite_id\" > 0 and \"last_receipt_sequence\" > 0", - "name": "github_check_suite_projection_identity_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_check_suite_projection", - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_check_suite_projection_head_sha_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_check_suite_projection", - "value": "\"status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_check_suite_projection_status_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_check_suite_projection", - "value": "\"conclusion\" is null or \"conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_check_suite_projection_conclusion_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_check_suite_projection", - "value": "\"transition_revision\" >= 1 and \"published_revision\" >= 0 and \"published_revision\" <= \"transition_revision\"", - "name": "github_check_suite_projection_revision_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "value": "\"installation_id\" > 0 and \"repository_id\" > 0 and \"source_receipt_sequence\" > 0 and \"branch_evaluation_revision\" > 0", - "name": "github_environment_trigger_identity_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "value": "\"ref\" like 'refs/heads/%' and length(\"ref\") > length('refs/heads/')", - "name": "github_environment_trigger_ref_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "value": "\"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_environment_trigger_head_sha_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "value": "cardinality(\"service_ids\") > 0 and array_position(\"service_ids\", null) is null", - "name": "github_environment_trigger_service_ids_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "value": "\"selection_mode\" in ('paths','all_services')", - "name": "github_environment_trigger_selection_mode_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "value": "\"reason\" in ('first_observation','changed_paths','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline')", - "name": "github_environment_trigger_reason_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "value": "(\n (\"selection_mode\" = 'paths' and \"reason\" = 'changed_paths')\n or (\"selection_mode\" = 'all_services' and \"reason\" in ('first_observation','force_rebaseline','non_ancestor_rebaseline','changed_paths_incomplete_rebaseline'))\n )", - "name": "github_environment_trigger_selection_reason_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "value": "\"trigger_revision\" = \"branch_evaluation_revision\" and \"published_revision\" >= 0 and \"published_revision\" <= \"trigger_revision\"", - "name": "github_environment_trigger_publish_revision_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_environment_trigger", - "value": "(\n (\"publish_state\" = 'pending' and \"published_revision\" < \"trigger_revision\" and \"published_at\" is null)\n or (\"publish_state\" = 'published' and \"published_revision\" = \"trigger_revision\" and \"published_at\" is not null)\n )", - "name": "github_environment_trigger_publish_state_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "value": "length(trim(\"delivery_id\")) > 0 and \"receipt_sequence\" > 0 and (\"installation_id\" is null or \"installation_id\" > 0) and (\"repository_id\" is null or \"repository_id\" > 0) and (\"check_suite_id\" is null or \"check_suite_id\" > 0)", - "name": "github_webhook_delivery_identity_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "value": "\"event_kind\" in ('push','check_suite')", - "name": "github_webhook_delivery_event_kind_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "value": "\"processing_state\" in ('received','processing','processed','rejected','failed','cancelled')", - "name": "github_webhook_delivery_processing_state_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "value": "\"outcome\" is null or \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service','malformed','identity_unresolved','unsupported_action','processing_failed','cancelled')", - "name": "github_webhook_delivery_outcome_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "value": "\"branch_state\" is null or \"branch_state\" in ('active','deleted')", - "name": "github_webhook_delivery_branch_state_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "value": "\"failure_code\" is null or \"failure_code\" in ('malformed_payload','identity_unresolved','unsupported_action','observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error','inngest_cancelled')", - "name": "github_webhook_delivery_failure_code_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "value": "\"check_suite_action\" is null or \"check_suite_action\" in ('requested','rerequested','completed')", - "name": "github_webhook_delivery_check_suite_action_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "value": "\"check_suite_status\" is null or \"check_suite_status\" in ('queued','in_progress','completed','pending','waiting','requested')", - "name": "github_webhook_delivery_check_suite_status_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "value": "\"check_suite_conclusion\" is null or \"check_suite_conclusion\" in ('action_required','cancelled','failure','neutral','success','skipped','stale','timed_out','startup_failure')", - "name": "github_webhook_delivery_check_suite_conclusion_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "value": "\"head_sha\" is null or \"head_sha\" ~ '^[0-9a-f]{40}$'", - "name": "github_webhook_delivery_head_sha_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "value": "(\n (\"processing_state\" = 'received' and \"processing_run_id\" is null and \"processing_started_at\" is null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processing' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" is null and \"failure_code\" is null and \"processed_at\" is null)\n or\n (\"processing_state\" = 'processed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged','ignored_stale','ignored_unconfigured_repository','ignored_no_matching_service') and \"failure_code\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'rejected' and (\n (\"outcome\" = 'malformed' and \"failure_code\" = 'malformed_payload')\n or (\"outcome\" = 'identity_unresolved' and \"failure_code\" = 'identity_unresolved')\n or (\"outcome\" = 'unsupported_action' and \"failure_code\" = 'unsupported_action')\n ) and \"processing_run_id\" is null and \"processing_started_at\" is null and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'failed' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'processing_failed' and \"failure_code\" in ('observation_failed','persistence_failed','publication_failed','retry_exhausted','unexpected_error') and \"processed_at\" is not null)\n or\n (\"processing_state\" = 'cancelled' and \"processing_run_id\" is not null and \"processing_started_at\" is not null and \"outcome\" = 'cancelled' and \"failure_code\" = 'inngest_cancelled' and \"processed_at\" is not null)\n )", - "name": "github_webhook_delivery_processing_evidence_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "value": "(\n \"processing_state\" not in ('processing','processed','failed','cancelled')\n or (\n \"installation_id\" is not null\n and \"repository_id\" is not null\n and (\n (\n \"event_kind\" = 'push'\n and \"ref\" is not null\n and \"ref\" like 'refs/heads/%'\n and \"branch_state\" is not null\n and \"check_suite_id\" is null\n and \"check_suite_action\" is null\n and \"check_suite_status\" is null\n and \"check_suite_conclusion\" is null\n and (\n (\"branch_state\" = 'active' and \"head_sha\" is not null)\n or (\"branch_state\" = 'deleted' and \"head_sha\" is null)\n )\n )\n or (\n \"event_kind\" = 'check_suite'\n and \"branch_state\" is null\n and \"head_sha\" is not null\n and \"check_suite_id\" is not null\n and \"check_suite_action\" is not null\n and \"check_suite_status\" is not null\n )\n )\n )\n )", - "name": "github_webhook_delivery_processed_summary_check", - "entityType": "checks" - }, - { - "schema": "public", - "table": "github_webhook_delivery", - "value": "(\n \"outcome\" not in ('branch_projected','branch_deleted','branch_rebased_all_services','check_suite_projected','check_suite_unchanged')\n or (\"outcome\" in ('branch_projected','branch_deleted','branch_rebased_all_services') and \"event_kind\" = 'push')\n or (\"outcome\" in ('check_suite_projected','check_suite_unchanged') and \"event_kind\" = 'check_suite')\n )", - "name": "github_webhook_delivery_outcome_kind_check", - "entityType": "checks" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "open_started_deployments", - "entityType": "columns", - "schema": "public", - "table": "user" - }, - { - "value": "(\n \"has_active_subscription\" = false\n OR (\n \"active_subscription_id\" IS NOT NULL\n AND \"current_period_end\" IS NOT NULL\n )\n )", - "name": "organization_billing_state_active_fields_check", - "schema": "public", - "table": "organization_billing_state", - "entityType": "checks" - } - ], - "renames": [] -} \ No newline at end of file diff --git a/dashboard/drizzle/20260925070751_organization_cluster_domain/migration.sql b/dashboard/drizzle/20260925070751_organization_cluster_domain/migration.sql deleted file mode 100644 index 6812ea0ea1..0000000000 --- a/dashboard/drizzle/20260925070751_organization_cluster_domain/migration.sql +++ /dev/null @@ -1,21 +0,0 @@ -CREATE TABLE "organization_cluster_domain" ( - "organization_id" uuid PRIMARY KEY, - "endpoint" text NOT NULL, - "name" text NOT NULL, - "encrypted_token" jsonb NOT NULL, - "reserved_at" timestamp with time zone NOT NULL, - "lease_renewed_at" timestamp with time zone NOT NULL, - "records_synced_at" timestamp with time zone, - "record_addresses" jsonb DEFAULT '[]' NOT NULL, - "unreachable" jsonb DEFAULT '[]' NOT NULL, - "encrypted_certificate_private_key" jsonb, - "certificate_chain" text, - "certificate_not_after" timestamp with time zone, - "created_at" timestamp with time zone DEFAULT now() NOT NULL, - "updated_at" timestamp with time zone DEFAULT now() NOT NULL, - CONSTRAINT "organization_cluster_domain_record_addresses_check" CHECK (jsonb_typeof("record_addresses") = 'array'), - CONSTRAINT "organization_cluster_domain_certificate_check" CHECK (num_nulls("encrypted_certificate_private_key", "certificate_chain", "certificate_not_after") in (0, 3)) -); ---> statement-breakpoint -ALTER TABLE "organization_cluster_domain" ADD CONSTRAINT "organization_cluster_domain_eJqKfNjJBhUj_fkey" FOREIGN KEY ("organization_id") REFERENCES "organization"("id") ON DELETE CASCADE;--> statement-breakpoint -SELECT organization_change_attach('organization_cluster_domain', 'organization_id', 'organization_id'); diff --git a/dashboard/public/assets/logo-wordmark.svg b/dashboard/public/assets/logo-wordmark.svg deleted file mode 100644 index 00012d925b..0000000000 --- a/dashboard/public/assets/logo-wordmark.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - ployz - \ No newline at end of file diff --git a/dashboard/public/assets/pirate-world.png b/dashboard/public/assets/pirate-world.png deleted file mode 100644 index 63845bda1f..0000000000 Binary files a/dashboard/public/assets/pirate-world.png and /dev/null differ diff --git a/dashboard/self-host/.env.example b/dashboard/self-host/.env.example new file mode 100644 index 0000000000..4b34e4c367 --- /dev/null +++ b/dashboard/self-host/.env.example @@ -0,0 +1,30 @@ +# Self-hosted Cloud environment. Copy to .env beside compose.yml; every uncommented value is required. +# Walkthrough: dashboard/README.md → Self-host. + +# Only for a checkout's self-host/compose.yml; the release asset pins the image tag. +# PLOYZ_CLOUD_VERSION=v0.2.0 +# Public HTTPS URL of web, served by your TLS proxy in front of WEB_PORT (default 3000). +APP_URL=https://cloud.example.com +# WEB_PORT=3000 + +# Generate each secret with `openssl rand -hex 32`. Keep APP_ENCRYPTION_SECRET stable: +# it encrypts stored credentials. +POSTGRES_PASSWORD= +BETTER_AUTH_SECRET= +APP_ENCRYPTION_SECRET= +# Shared by the Inngest server and Cloud. The signing key must be hex. +INNGEST_EVENT_KEY= +INNGEST_SIGNING_KEY= + +# GitHub OAuth App (sign-in). +GITHUB_CLIENT_ID= +GITHUB_CLIENT_SECRET= +# GitHub App (repository access). Quote the private key PEM across lines. +GITHUB_APP_ID= +GITHUB_APP_SLUG= +GITHUB_APP_WEBHOOK_SECRET= +GITHUB_APP_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY----- +... +-----END RSA PRIVATE KEY-----" + +# Polar billing is Ployz-hosted only; leave every POLAR_* variable unset. diff --git a/dashboard/self-host/compose.yml b/dashboard/self-host/compose.yml new file mode 100644 index 0000000000..5b7a0bb10f --- /dev/null +++ b/dashboard/self-host/compose.yml @@ -0,0 +1,95 @@ +# Self-hosted Ployz Cloud. Setup and upgrades: dashboard/README.md → Self-host. +# Release assets pin the image tag; from a checkout, set PLOYZ_CLOUD_VERSION. +name: ployz-cloud-self-host + +x-app: &app + image: ghcr.io/getployz/ployz-cloud:${PLOYZ_CLOUD_VERSION:?set PLOYZ_CLOUD_VERSION to a release tag} + restart: unless-stopped + env_file: .env + environment: + DATABASE_URL: postgres://ployz:${POSTGRES_PASSWORD:?}@postgres:5432/ployz_cloud + INNGEST_BASE_URL: http://inngest:8288 + INNGEST_CONNECT_GATEWAY_URL: ws://inngest:8289/v0/connect + NPM_CONFIG_UPDATE_NOTIFIER: 'false' + depends_on: + postgres: + condition: service_healthy + inngest: + condition: service_started + +services: + # One-shot: `docker compose run --rm web npm run db:migrate` before every start or upgrade. + web: + <<: *app + command: [npm, start] + ports: + - '${WEB_PORT:-3000}:3000' + + worker: + <<: *app + command: [npm, run, start:worker] + healthcheck: + # 200 only while the Inngest Connect connection is active. + test: [CMD, node, -e, "fetch('http://127.0.0.1:3000/ready').then(r => process.exit(r.ok ? 0 : 1), () => process.exit(1))"] + interval: 10s + timeout: 5s + retries: 3 + start_period: 30s + # Connect drains active steps on SIGTERM before the worker exits. + stop_grace_period: 30m + + inngest: + image: inngest/inngest:v1.45.1 + restart: unless-stopped + command: [inngest, start] + environment: + INNGEST_EVENT_KEY: ${INNGEST_EVENT_KEY:?} + INNGEST_SIGNING_KEY: ${INNGEST_SIGNING_KEY:?} + INNGEST_POSTGRES_URI: postgres://ployz:${POSTGRES_PASSWORD:?}@postgres:5432/inngest + INNGEST_REDIS_URI: redis://redis:6379 + ports: + # Inngest UI and API for the operator only; the worker uses the internal network. + - '127.0.0.1:8288:8288' + depends_on: + postgres: + condition: service_healthy + redis: + condition: service_healthy + + redis: + image: redis:7-alpine + restart: unless-stopped + command: [redis-server, --appendonly, 'yes'] + volumes: + - redis-data:/data + healthcheck: + test: [CMD, redis-cli, ping] + interval: 5s + timeout: 5s + retries: 10 + + postgres: + image: postgres:16-alpine + restart: unless-stopped + environment: + POSTGRES_DB: ployz_cloud + POSTGRES_USER: ployz + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?} + configs: + - source: inngest-database + target: /docker-entrypoint-initdb.d/inngest.sql + volumes: + - postgres-data:/var/lib/postgresql/data + healthcheck: + test: [CMD-SHELL, pg_isready -U ployz -d ployz_cloud] + interval: 5s + timeout: 5s + retries: 10 + +configs: + inngest-database: + content: CREATE DATABASE inngest; + +volumes: + postgres-data: + redis-data: diff --git a/dashboard/src/collections/data-boundaries.static.test.ts b/dashboard/src/collections/data-boundaries.static.test.ts index 3f4c83bc66..88d147c8ba 100644 --- a/dashboard/src/collections/data-boundaries.static.test.ts +++ b/dashboard/src/collections/data-boundaries.static.test.ts @@ -46,8 +46,7 @@ const SPINNER_FILES = { "routes/_protected/cloud/$organizationSlug/_project/$projectSlug/$environmentSlug/-components/canvas/DeploymentNode.tsx": "build or deploy stage running", "routes/_protected/cloud/$organizationSlug/_project/$projectSlug/$environmentSlug/-components/canvas/VolumeCreatorDialog.tsx": "create in flight", "routes/_protected/cloud/$organizationSlug/_project/$projectSlug/$environmentSlug/resources/$resourceId/-components/VolumeDrawer.tsx": "retry in flight", - "routes/_public/-components/AppHeaderActions.tsx": "sign-out in flight", - "routes/_public/-components/LoginDialog.tsx": "sign-in in flight", + "routes/_public/-components/LoginPanel.tsx": "sign-in in flight", }; const READ_SERVER_FN = /\b(get|load|list|preview|search|resolve|read)[A-Z]\w*ServerFn\b/; diff --git a/dashboard/src/collections/read.changes.postgres.test.ts b/dashboard/src/collections/read.changes.postgres.test.ts index 8d9080153a..5a7ba7f3d1 100644 --- a/dashboard/src/collections/read.changes.postgres.test.ts +++ b/dashboard/src/collections/read.changes.postgres.test.ts @@ -8,15 +8,15 @@ import type { CollectionName, CollectionRead } from "./read.contract"; import { orgStoreTableNames } from "#/test/org-store-tables"; import { orgStoreTables } from "./collections"; import { - type GithubPostgresTestHarness, - startGithubPostgresTestHarness, -} from "#/modules/github/github-ingestion.postgres-test-harness"; + type PostgresTestHarness, + startPostgresTestHarness, +} from "#/test/postgres"; type ServiceRow = { id: string; name: string; organizationId: string }; type Organization = { id: string; slug: string; userId: string; projectId: string; environmentId: string }; describe("incremental Service reads from the Organization change log", () => { - let harness: GithubPostgresTestHarness; + let harness: PostgresTestHarness; let alpha: Organization; let beta: Organization; @@ -59,7 +59,7 @@ describe("incremental Service reads from the Organization change log", () => { } beforeAll(async () => { - harness = await startGithubPostgresTestHarness(); + harness = await startPostgresTestHarness(); alpha = await createOrganization(`alpha-${randomUUID().slice(0, 8)}`); beta = await createOrganization(`beta-${randomUUID().slice(0, 8)}`); }, 60_000); @@ -216,7 +216,7 @@ describe("incremental Service reads from the Organization change log", () => { }); describe("every Org Store collection reads its changes from the Organization change log", () => { - let harness: GithubPostgresTestHarness; + let harness: PostgresTestHarness; const organizationId = randomUUID(); const userId = randomUUID(); const otherUserId = randomUUID(); @@ -233,7 +233,7 @@ describe("every Org Store collection reads its changes from the Organization cha const serialized = (rows: object[]) => rows.map((row) => JSON.stringify(row)).sort(); beforeAll(async () => { - harness = await startGithubPostgresTestHarness(); + harness = await startPostgresTestHarness(); const lineageId = randomUUID(); const snapshotId = randomUUID(); await sql("insert into organization (id, name, slug) values ($1, $2, $2)", [organizationId, slug]); diff --git a/dashboard/src/components/dashboard-navigation-model.test.ts b/dashboard/src/components/dashboard-navigation-model.test.ts index 6b55896108..2522f85214 100644 --- a/dashboard/src/components/dashboard-navigation-model.test.ts +++ b/dashboard/src/components/dashboard-navigation-model.test.ts @@ -3,17 +3,10 @@ import { describe, expect, it } from "vitest"; import { createDashboardNavItems, getDashboardDestination, - getDashboardSectionLabel, getDashboardSectionFromRouteId, } from "#/components/dashboard-navigation-model"; describe("dashboard navigation model", () => { - it("names the legacy organization logs route without adding it to navigation", () => { - const scope = { kind: "all", organizationSlug: "acme" } as const; - expect(getDashboardSectionLabel(scope, "logs")).toBe("Logs"); - expect(createDashboardNavItems(scope).some((item) => item.section === "logs")).toBe(false); - }); - it("shows only organization destinations at organization scope", () => { const items = createDashboardNavItems({ kind: "all", diff --git a/dashboard/src/components/dashboard-navigation-model.ts b/dashboard/src/components/dashboard-navigation-model.ts index eae229ae51..cc2aac7116 100644 --- a/dashboard/src/components/dashboard-navigation-model.ts +++ b/dashboard/src/components/dashboard-navigation-model.ts @@ -161,7 +161,6 @@ interface SectionByRouteId { const sectionByRouteId: SectionByRouteId = { "/_protected/cloud/$organizationSlug/_org/~/billing": "billing", - "/_protected/cloud/$organizationSlug/_org/~/logs": "logs", "/_protected/cloud/$organizationSlug/_org/~/settings": "server-settings", "/_protected/cloud/$organizationSlug/_org/~/servers/": "servers", "/_protected/cloud/$organizationSlug/_project/$projectSlug/$environmentSlug/logs": diff --git a/dashboard/src/components/icons/pirate-flag.tsx b/dashboard/src/components/icons/pirate-flag.tsx deleted file mode 100644 index b66e141cfc..0000000000 --- a/dashboard/src/components/icons/pirate-flag.tsx +++ /dev/null @@ -1,44 +0,0 @@ -import { useId } from "react"; - -// ponytail: hand-drawn 32x32 mark, no logo library. Monochrome via currentColor; -// the skull is masked out of the flag so it works on any background. -export function PirateFlag({ className }: { className?: string }) { - const mask = useId(); - return ( - - ); -} diff --git a/dashboard/src/components/marketing/CTASection.tsx b/dashboard/src/components/marketing/CTASection.tsx deleted file mode 100644 index e6a0c0ac7c..0000000000 --- a/dashboard/src/components/marketing/CTASection.tsx +++ /dev/null @@ -1,46 +0,0 @@ -import { SiteAction } from '#/components/marketing/SiteAction' - -interface CTASectionProps { - title?: string - subtitle?: string - primaryLabel?: string - primaryTo?: string - secondaryLabel?: string - secondaryHref?: string -} - -export function CTASection({ - title = 'Make your next server move boring', - subtitle, - primaryLabel = 'Start in cloud', - primaryTo = '/auth', - secondaryLabel = 'Self-host free', - secondaryHref = '/docs', -}: CTASectionProps) { - return ( -
-
-
-
-
-

- {title} -

- {subtitle ? ( -

{subtitle}

- ) : null} -
-
- - {primaryLabel} - - - {secondaryLabel} - -
-
-
-
-
- ) -} diff --git a/dashboard/src/components/marketing/CodeBlock.tsx b/dashboard/src/components/marketing/CodeBlock.tsx deleted file mode 100644 index bff5374771..0000000000 --- a/dashboard/src/components/marketing/CodeBlock.tsx +++ /dev/null @@ -1,22 +0,0 @@ -interface CodeBlockProps { - code: string - label?: string -} - -export function CodeBlock({ code, label }: CodeBlockProps) { - return ( -
-
- - - - - {label ?? 'Terminal'} - -
-
-        {code}
-      
-
- ) -} diff --git a/dashboard/src/components/marketing/PageHero.tsx b/dashboard/src/components/marketing/PageHero.tsx deleted file mode 100644 index b53805d1c4..0000000000 --- a/dashboard/src/components/marketing/PageHero.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import type { ReactNode } from 'react' -import { Badge } from '#/components/ui/badge' - -interface PageHeroProps { - eyebrow?: string - title: string - subtitle?: string - actions?: ReactNode -} - -export function PageHero({ eyebrow, title, subtitle, actions }: PageHeroProps) { - return ( -
-
-
- {eyebrow ? {eyebrow} : null} -
-

- {title} -

- {subtitle ? ( -

- {subtitle} -

- ) : null} -
- {actions ? ( -
- {actions} -
- ) : null} -
-
-
- ) -} diff --git a/dashboard/src/components/marketing/SiteAction.tsx b/dashboard/src/components/marketing/SiteAction.tsx deleted file mode 100644 index 5d1b0c9b75..0000000000 --- a/dashboard/src/components/marketing/SiteAction.tsx +++ /dev/null @@ -1,59 +0,0 @@ -import type { ReactNode } from 'react' -import { Link } from '@tanstack/react-router' -import { buttonVariants } from '#/components/ui/button-variants' - -type SiteActionProps = { - children: ReactNode - className?: string - href?: string - rel?: string - size?: 'default' | 'sm' | 'lg' | 'icon' | 'icon-sm' | 'icon-lg' - target?: string - to?: string - variant?: 'default' | 'outline' | 'secondary' | 'ghost' | 'link' -} - -export function SiteAction({ - children, - className, - href, - rel, - size = 'default', - target, - to, - variant = 'default', -}: SiteActionProps) { - if (to) { - return ( - - {children} - - ) - } - - if (!href) { - return null - } - - return ( - - {children} - - ) -} diff --git a/dashboard/src/components/marketing/links.ts b/dashboard/src/components/marketing/links.ts deleted file mode 100644 index 73f98ff2b5..0000000000 --- a/dashboard/src/components/marketing/links.ts +++ /dev/null @@ -1,2 +0,0 @@ -export const dashboardRepoHref = 'https://github.com/getployz/ployz-dashboard' -export const runtimeRepoHref = 'https://github.com/getployz/ployz' diff --git a/dashboard/src/components/not-found-page.tsx b/dashboard/src/components/not-found-page.tsx index aec8883e17..924322c53e 100644 --- a/dashboard/src/components/not-found-page.tsx +++ b/dashboard/src/components/not-found-page.tsx @@ -3,7 +3,7 @@ import { useMatch, } from "@tanstack/react-router"; import { SearchXIcon } from "lucide-react"; -import { SiteAction } from "#/components/marketing/SiteAction"; +import { buttonVariants } from "#/components/ui/button-variants"; import { Empty, EmptyContent, @@ -49,12 +49,8 @@ export function NotFoundPage() { - Go home - - Open docs + + Go home diff --git a/dashboard/src/components/project-required-state.tsx b/dashboard/src/components/project-required-state.tsx deleted file mode 100644 index 229c9c5ea5..0000000000 --- a/dashboard/src/components/project-required-state.tsx +++ /dev/null @@ -1,46 +0,0 @@ -import { FolderKanbanIcon } from "lucide-react"; -import { DashboardPage } from "#/components/dashboard-page"; -import type { DashboardSection } from "#/components/dashboard-navigation-model"; -import { ProjectSwitcher } from "#/components/navigation-switcher"; -import { - Empty, - EmptyContent, - EmptyDescription, - EmptyHeader, - EmptyMedia, - EmptyTitle, -} from "#/components/ui/empty"; - -export function ProjectRequiredState({ - organizationSlug, - section, - title, - description, -}: { - organizationSlug: string; - section: DashboardSection; - title: string; - description: string; -}) { - return ( - - - - - - - {title} - {description} - - - - - - - ); -} diff --git a/dashboard/src/db/baseline.postgres.test.ts b/dashboard/src/db/baseline.postgres.test.ts index 7881c3dc69..6b61b88062 100644 --- a/dashboard/src/db/baseline.postgres.test.ts +++ b/dashboard/src/db/baseline.postgres.test.ts @@ -1,14 +1,14 @@ import { afterAll, beforeAll, expect, it } from "vitest"; import { collectionReadInput } from "#/collections/read.contract"; import { - type GithubPostgresTestHarness, - startGithubPostgresTestHarness, -} from "#/modules/github/github-ingestion.postgres-test-harness"; + type PostgresTestHarness, + startPostgresTestHarness, +} from "#/test/postgres"; -let harness: GithubPostgresTestHarness; +let harness: PostgresTestHarness; beforeAll(async () => { - harness = await startGithubPostgresTestHarness(); + harness = await startPostgresTestHarness(); }, 60_000); afterAll(async () => { diff --git a/dashboard/src/db/organization-ownership.postgres.test.ts b/dashboard/src/db/organization-ownership.postgres.test.ts index 4080aa804f..3da94f5fa6 100644 --- a/dashboard/src/db/organization-ownership.postgres.test.ts +++ b/dashboard/src/db/organization-ownership.postgres.test.ts @@ -2,9 +2,9 @@ import { afterAll, beforeAll, expect, it } from "vitest"; import { changeNameSources } from "#/collections/change-sources"; import { changeSources } from "#/modules/organization/change-log.sources"; import { - type GithubPostgresTestHarness, - startGithubPostgresTestHarness, -} from "#/modules/github/github-ingestion.postgres-test-harness"; + type PostgresTestHarness, + startPostgresTestHarness, +} from "#/test/postgres"; /** * Every row of an organization-owned table belongs to exactly one Organization, @@ -24,14 +24,13 @@ const notOrganizationOwned = { github_branch_projection: "Belongs to a GitHub installation, which several Organizations can share.", github_check_suite_projection: "Belongs to a GitHub installation, which several Organizations can share.", github_webhook_delivery: "Belongs to a GitHub installation, which several Organizations can share.", - waitlist: "Belongs to no one.", organization_change: "It is the Organization change log, written by the triggers on organization-owned tables.", } satisfies Record; -let harness: GithubPostgresTestHarness; +let harness: PostgresTestHarness; beforeAll(async () => { - harness = await startGithubPostgresTestHarness(); + harness = await startPostgresTestHarness(); }, 60_000); afterAll(async () => { diff --git a/dashboard/src/db/schema.ts b/dashboard/src/db/schema.ts index c8a029de43..79072f8ddc 100644 --- a/dashboard/src/db/schema.ts +++ b/dashboard/src/db/schema.ts @@ -9,5 +9,4 @@ export * from "#/modules/runtime/tables"; export * from "#/modules/machines/tables"; export * from "#/modules/github/tables"; export * from "#/modules/billing/tables"; -export * from "#/modules/waitlist/tables"; export * from "#/modules/cluster-domain/tables"; diff --git a/dashboard/src/home-documentary.css b/dashboard/src/home-documentary.css deleted file mode 100644 index a741fd4462..0000000000 --- a/dashboard/src/home-documentary.css +++ /dev/null @@ -1,241 +0,0 @@ -@layer components { - .benefit-hero { - border-bottom: 1px solid var(--color-rule-soft); - } - - .benefit-hero__inner { - padding-block: clamp(var(--space-12), 5vw, var(--space-16)) - clamp(var(--space-16), 8vw, var(--space-24)); - } - - .marketing-page .benefit-hero h1 { - max-width: 13ch; - margin-top: var(--space-6); - font-size: clamp(3.1rem, 6.8vw, 5.8rem); - } - - .benefit-hero__lede { - max-width: 38rem; - margin-top: var(--space-8) !important; - color: var(--color-ink-soft); - font-size: clamp(1.08rem, 2vw, 1.35rem); - line-height: 1.58; - } - - .benefit-hero__availability { - margin-top: var(--space-5) !important; - color: var(--color-muted); - font-size: 0.82rem; - line-height: 1.5; - } - - .benefit-infrastructure-strip { - border-bottom: 1px solid var(--color-rule-soft); - background: var(--color-paper-soft); - } - - .benefit-infrastructure-strip__inner { - display: flex; - flex-direction: column; - gap: var(--space-4); - padding-block: var(--space-6); - } - - .benefit-infrastructure-strip strong { - color: var(--color-ink); - font-size: 0.88rem; - font-weight: 620; - } - - .benefit-infrastructure-strip ul { - display: flex; - flex-wrap: wrap; - gap: var(--space-2); - margin: 0; - padding: 0; - color: var(--color-muted); - font-size: 0.82rem; - list-style: none; - } - - .benefit-infrastructure-strip li + li::before { - margin-right: var(--space-2); - color: var(--color-rule); - content: "·"; - } - - .benefit-stack { - padding-bottom: clamp(var(--space-20), 10vw, var(--space-28)); - } - - .benefit-stack > ul { - margin: 0; - padding: 0; - list-style: none; - } - - .benefit-row { - padding-block: clamp(var(--space-12), 8vw, var(--space-24)); - border-top: 1px solid var(--color-rule); - } - - .benefit-row__copy { - display: grid; - gap: var(--space-8); - } - - .marketing-page .benefit-row h3 { - max-width: 13ch; - font-size: clamp(2.5rem, 7vw, 5.25rem); - } - - .benefit-row__copy p { - max-width: 36rem; - color: var(--color-ink-soft); - font-size: clamp(1rem, 1.7vw, 1.16rem); - line-height: 1.65; - } - - .benefit-canvas { - margin: clamp(var(--space-12), 8vw, var(--space-20)) 0 0; - } - - .benefit-canvas figcaption { - padding-bottom: var(--space-4); - border-bottom: 1px solid var(--color-rule-soft); - color: var(--color-muted); - font-size: 0.76rem; - line-height: 1.4; - } - - .benefit-canvas svg { - display: block; - width: 100%; - height: auto; - margin-top: var(--space-8); - overflow: visible; - } - - .benefit-canvas path { - fill: none; - stroke: var(--color-rule); - stroke-width: 2; - } - - .benefit-canvas circle { - fill: var(--color-paper-raised); - stroke: var(--color-rule); - stroke-width: 2; - } - - .benefit-canvas text { - fill: var(--color-ink-soft); - font-family: var(--font-body); - font-size: 1rem; - font-weight: 620; - text-anchor: middle; - dominant-baseline: middle; - } - - .benefit-canvas__primary circle { - fill: var(--color-accent); - stroke: var(--color-accent); - } - - .benefit-canvas__primary text { - fill: var(--color-accent-ink); - } - - .benefit-ownership { - background: var(--color-ink); - color: var(--color-paper); - } - - .benefit-ownership__inner { - display: grid; - gap: var(--space-10); - padding-block: clamp(var(--space-20), 11vw, var(--space-28)); - } - - .marketing-page .benefit-ownership h2 { - max-width: 10ch; - color: var(--color-paper); - font-size: clamp(3rem, 8vw, 6rem); - } - - .benefit-ownership__inner > div { - display: grid; - gap: var(--space-6); - align-content: end; - } - - .benefit-ownership p { - max-width: 36rem; - color: var(--color-rule); - font-size: clamp(1rem, 1.7vw, 1.15rem); - line-height: 1.65; - } - - .benefit-open { - display: grid; - gap: var(--space-10); - padding-block: clamp(var(--space-20), 11vw, var(--space-28)); - } - - .marketing-page .benefit-open h2 { - max-width: 12ch; - font-size: clamp(2.8rem, 7vw, 5.5rem); - } - - .benefit-open > div:last-child { - align-self: end; - } - - .benefit-open p { - max-width: 36rem; - color: var(--color-ink-soft); - font-size: clamp(1rem, 1.7vw, 1.15rem); - line-height: 1.65; - } - - .benefit-open a { - display: inline-flex; - align-items: center; - gap: var(--space-2); - margin-top: var(--space-8); - font-weight: 620; - } - - .benefit-open a svg { - width: var(--space-4); - height: var(--space-4); - } - - @media (min-width: 42rem) { - .benefit-infrastructure-strip__inner { - flex-direction: row; - align-items: center; - justify-content: space-between; - gap: var(--space-8); - } - - .benefit-row__copy, - .benefit-ownership__inner, - .benefit-open { - grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); - gap: clamp(var(--space-10), 7vw, var(--space-24)); - } - - .benefit-row__copy > p { - align-self: end; - padding-bottom: var(--space-2); - } - } - - @media (min-width: 57rem) { - .benefit-canvas { - margin-top: var(--space-24); - padding-inline: clamp(var(--space-8), 6vw, var(--space-20)); - } - } -} diff --git a/dashboard/src/modules/cluster-domain/cluster-domain.server.postgres.test.ts b/dashboard/src/modules/cluster-domain/cluster-domain.server.postgres.test.ts index 9b52f7b601..430de8f293 100644 --- a/dashboard/src/modules/cluster-domain/cluster-domain.server.postgres.test.ts +++ b/dashboard/src/modules/cluster-domain/cluster-domain.server.postgres.test.ts @@ -7,9 +7,9 @@ import { readCollection } from "#/collections/read.server"; import { publishClusterDomainNow, reserveClusterDomain } from "#/modules/cluster-domain/cluster-domain.server"; import { type FakeHostedDns, startFakeHostedDns } from "#/modules/cluster-domain/hosted-dns.test-fixture"; import { - type GithubPostgresTestHarness, - startGithubPostgresTestHarness, -} from "#/modules/github/github-ingestion.postgres-test-harness"; + type PostgresTestHarness, + startPostgresTestHarness, +} from "#/test/postgres"; import { AppConfig } from "#/server/config.server"; import type { Database, ReportingDatabase } from "#/server/database.server"; import { makeSecretEncryption, SecretEncryption } from "#/utils/encrypted-secret.server"; @@ -21,7 +21,7 @@ const inngest = new Inngest({ id: "cluster-domain-test" }); const send = vi.spyOn(inngest, "send").mockResolvedValue({ ids: [] }); describe("Organization Cluster Domain", () => { - let harness: GithubPostgresTestHarness; + let harness: PostgresTestHarness; let hostedDns: FakeHostedDns; function run( @@ -47,7 +47,7 @@ describe("Organization Cluster Domain", () => { "select endpoint, name, encrypted_token from organization_cluster_domain"); beforeAll(async () => { - [harness, hostedDns] = await Promise.all([startGithubPostgresTestHarness(), startFakeHostedDns()]); + [harness, hostedDns] = await Promise.all([startPostgresTestHarness(), startFakeHostedDns()]); }, 60_000); afterAll(async () => { diff --git a/dashboard/src/modules/cluster-domain/sync.inngest.postgres.test.ts b/dashboard/src/modules/cluster-domain/sync.inngest.postgres.test.ts index 387d8a350a..ca80e07383 100644 --- a/dashboard/src/modules/cluster-domain/sync.inngest.postgres.test.ts +++ b/dashboard/src/modules/cluster-domain/sync.inngest.postgres.test.ts @@ -8,9 +8,9 @@ import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vites import { type FakeHostedDns, startFakeHostedDns } from "#/modules/cluster-domain/hosted-dns.test-fixture"; import { createScheduleClusterDomainSync, createSyncClusterDomain } from "#/modules/cluster-domain/sync.inngest"; import { - type GithubPostgresTestHarness, - startGithubPostgresTestHarness, -} from "#/modules/github/github-ingestion.postgres-test-harness"; + type PostgresTestHarness, + startPostgresTestHarness, +} from "#/test/postgres"; import { asTestDouble } from "#/lib/test-double"; import { OrganizationRuntime } from "#/modules/runtime/organization-runtime.server"; import type { PloyzSession } from "#/modules/runtime/ployz.server"; @@ -32,7 +32,7 @@ const machine = (id: string, public_ip: string | null, accepts_ingress = true) = const idOf = (id: string) => id.repeat(32).slice(0, 32) as MachineId; describe("sync-cluster-domain", () => { - let harness: GithubPostgresTestHarness; + let harness: PostgresTestHarness; let hostedDns: FakeHostedDns; /** The runtime frame the stubbed session returns; null means the Cluster is not connected. */ let frame: RuntimeWatchView | null; @@ -95,7 +95,7 @@ describe("sync-cluster-domain", () => { const calls = () => hostedDns.requests.map(({ method, path }) => `${method} ${path}`); beforeAll(async () => { - [harness, hostedDns] = await Promise.all([startGithubPostgresTestHarness(), startFakeHostedDns()]); + [harness, hostedDns] = await Promise.all([startPostgresTestHarness(), startFakeHostedDns()]); const realFetch = globalThis.fetch; vi.spyOn(globalThis, "fetch").mockImplementation((input, init) => { const url = new URL(input instanceof Request ? input.url : input); diff --git a/dashboard/src/modules/deployments/admission.server.postgres.test.ts b/dashboard/src/modules/deployments/admission.server.postgres.test.ts index e55181e564..35c2748e3a 100644 --- a/dashboard/src/modules/deployments/admission.server.postgres.test.ts +++ b/dashboard/src/modules/deployments/admission.server.postgres.test.ts @@ -4,9 +4,9 @@ import { Effect } from "effect"; import { Inngest } from "inngest"; import * as schema from "#/db/schema"; import { - type GithubPostgresTestHarness, - startGithubPostgresTestHarness, -} from "#/modules/github/github-ingestion.postgres-test-harness"; + type PostgresTestHarness, + startPostgresTestHarness, +} from "#/test/postgres"; import { InngestClient } from "#/modules/inngest/client"; import { @@ -60,10 +60,10 @@ function intent(volumes: "first" | "both") { } describe("Saved deployment admission", () => { - let harness: GithubPostgresTestHarness; + let harness: PostgresTestHarness; beforeAll(async () => { - harness = await startGithubPostgresTestHarness(); + harness = await startPostgresTestHarness(); }, 60_000); afterAll(async () => { diff --git a/dashboard/src/modules/deployments/deployment-operations.server.ts b/dashboard/src/modules/deployments/deployment-operations.server.ts index c69ed09553..8734941421 100644 --- a/dashboard/src/modules/deployments/deployment-operations.server.ts +++ b/dashboard/src/modules/deployments/deployment-operations.server.ts @@ -6,7 +6,6 @@ import { Effect, Schema } from "effect"; import { Conflict, NotFound, Validation } from "#/server/public-error"; -import { loadAuthorizedDeploymentEvidence } from "#/modules/deployments/retry-repository.server"; import { loadEnvironmentSnapshotProjection, type EnvironmentSnapshotProjection } from "#/modules/deployments/environment-state.repository.server"; @@ -130,18 +129,6 @@ export const listLatestOrganizationEnvironmentChangeStates = Effect.fn( return yield* projectEnvironmentChangeStateRecords(projection); }); -export const listDeploymentOperationEvidence = Effect.fn( - "Deployments.listDeploymentOperationEvidence", -)(function* (actor: Actor, input: DeploymentOperationEvidencePageQueryInput) { - const organization = yield* requireOrganization(actor, input.organizationSlug); - return yield* loadAuthorizedDeploymentEvidence({ - organizationId: organization.id, - deploymentId: input.deploymentId, - afterSequence: input.afterSequence, - limit: input.limit ?? 50, - }); -}); - const logCursor = Effect.fn("Deployments.logCursor")(function* (actor: Actor, input: DeploymentOperationEvidencePageQueryInput) { const organization = yield* requireOrganization(actor, input.organizationSlug); const after = Number(input.afterSequence ?? 0); diff --git a/dashboard/src/modules/deployments/deployment-view.postgres.test.ts b/dashboard/src/modules/deployments/deployment-view.postgres.test.ts index a4af3091d8..b1e71e29eb 100644 --- a/dashboard/src/modules/deployments/deployment-view.postgres.test.ts +++ b/dashboard/src/modules/deployments/deployment-view.postgres.test.ts @@ -4,7 +4,7 @@ import { readCollection } from "#/collections/read.server"; import { createDefaultServiceHealthcheck, createDefaultServiceRestartPolicy, createImageServiceSource, projectServiceDeploymentConfig, } from "#/modules/environment-design/services"; -import { type GithubPostgresTestHarness, startGithubPostgresTestHarness } from "#/modules/github/github-ingestion.postgres-test-harness"; +import { type PostgresTestHarness, startPostgresTestHarness } from "#/test/postgres"; import type { DeploymentProgress, DeploymentProgressRow } from "./deployment-progress"; import { attemptTarget, deploymentView } from "./deployment-view"; @@ -29,8 +29,8 @@ const progress: DeploymentProgress = { completed: 2, total: 3, outcome: "failed" row(0, null, "old", "remove_container", "completed"), row(1, api, "api", "replace_container", "completed"), row(2, web, "web", "run_container", "failed"), ] }; -let harness: GithubPostgresTestHarness; -beforeAll(async () => { harness = await startGithubPostgresTestHarness(); }, 60_000); +let harness: PostgresTestHarness; +beforeAll(async () => { harness = await startPostgresTestHarness(); }, 60_000); afterAll(async () => { await harness?.stop(); }); it("builds an attempt's full node set from real deployment snapshots", async () => { diff --git a/dashboard/src/modules/deployments/deployment.functions.ts b/dashboard/src/modules/deployments/deployment.functions.ts index 0b9d8bd33b..7209bcda3f 100644 --- a/dashboard/src/modules/deployments/deployment.functions.ts +++ b/dashboard/src/modules/deployments/deployment.functions.ts @@ -13,7 +13,6 @@ import { } from "#/modules/deployments/deployment-contract"; import { listDeploymentBuildLog, - listDeploymentOperationEvidence, listDeploymentProgressLogs, listLatestOrganizationEnvironmentChangeStates, } from "#/modules/deployments/deployment-operations.server"; @@ -86,15 +85,6 @@ export const dispatchQueuedEnvironmentDeploymentServerFn = createServerFn({ ), ); -export const listDeploymentOperationEvidenceServerFn = createServerFn({ - method: "GET", -}) - .middleware(deploymentMiddleware) - .validator(strictValidator(deploymentOperationEvidencePageQuerySchema)) - .handler(({ context, data }) => - runActor(context, listDeploymentOperationEvidence(context.actor, data)), - ); - export const cancelEnvironmentDeploymentServerFn = createServerFn({ method: "POST" }) .middleware(deploymentMiddleware) .validator(strictValidator(cancelEnvironmentDeploymentSchema)) diff --git a/dashboard/src/modules/deployments/durable-activities.server.postgres.test.ts b/dashboard/src/modules/deployments/durable-activities.server.postgres.test.ts index fab8387699..fd634f5646 100644 --- a/dashboard/src/modules/deployments/durable-activities.server.postgres.test.ts +++ b/dashboard/src/modules/deployments/durable-activities.server.postgres.test.ts @@ -4,9 +4,9 @@ import { Effect } from "effect"; import { Inngest } from "inngest"; import * as schema from "#/db/schema"; import { - type GithubPostgresTestHarness, - startGithubPostgresTestHarness, -} from "#/modules/github/github-ingestion.postgres-test-harness"; + type PostgresTestHarness, + startPostgresTestHarness, +} from "#/test/postgres"; import { Database } from "#/server/database.server"; import { InngestClient } from "#/modules/inngest/client"; import { @@ -32,7 +32,7 @@ const emptySavedIntent = { }; describe("durable deployment activities", () => { - let harness: GithubPostgresTestHarness; + let harness: PostgresTestHarness; const inngest = new Inngest({ id: "durable-activities-test" }); vi.spyOn(inngest, "send").mockResolvedValue({ ids: [] }); @@ -45,7 +45,7 @@ describe("durable deployment activities", () => { } beforeAll(async () => { - harness = await startGithubPostgresTestHarness(); + harness = await startPostgresTestHarness(); }, 60_000); afterAll(async () => { diff --git a/dashboard/src/modules/deployments/environment-deployment.inngest-engine.postgres.test.ts b/dashboard/src/modules/deployments/environment-deployment.inngest-engine.postgres.test.ts index 5381689b06..7da8eab861 100644 --- a/dashboard/src/modules/deployments/environment-deployment.inngest-engine.postgres.test.ts +++ b/dashboard/src/modules/deployments/environment-deployment.inngest-engine.postgres.test.ts @@ -5,9 +5,9 @@ import { Inngest } from "inngest"; import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest"; import * as schema from "#/db/schema"; import { - type GithubPostgresTestHarness, - startGithubPostgresTestHarness, -} from "#/modules/github/github-ingestion.postgres-test-harness"; + type PostgresTestHarness, + startPostgresTestHarness, +} from "#/test/postgres"; import { Database } from "#/server/database.server"; import { makeInngestEffectRunner, type runInngestEffect } from "#/server/run.server"; import { @@ -37,10 +37,10 @@ const emptySavedIntent = { }; describe("deployment Inngest durable smoke", () => { - let harness: GithubPostgresTestHarness; + let harness: PostgresTestHarness; beforeAll(async () => { - harness = await startGithubPostgresTestHarness(); + harness = await startPostgresTestHarness(); }, 60_000); afterAll(async () => { diff --git a/dashboard/src/modules/deployments/manual-admission.server.postgres.test.ts b/dashboard/src/modules/deployments/manual-admission.server.postgres.test.ts index 8718ab3eb2..699fb42278 100644 --- a/dashboard/src/modules/deployments/manual-admission.server.postgres.test.ts +++ b/dashboard/src/modules/deployments/manual-admission.server.postgres.test.ts @@ -29,9 +29,9 @@ import { fingerprintReviewedEnvironmentWorkingState } from "#/modules/environmen import { savedEnvironmentIntentSchema } from "#/modules/environment-design/saved-intent"; import { decodeStrict } from "#/modules/environment-design/schema"; import { - type GithubPostgresTestHarness, - startGithubPostgresTestHarness, -} from "#/modules/github/github-ingestion.postgres-test-harness"; + type PostgresTestHarness, + startPostgresTestHarness, +} from "#/test/postgres"; import type { DatabaseService } from "#/server/database.server"; import { Database } from "#/server/database.server"; import { withMutationResult } from "#/server/mutation-result.server"; @@ -76,12 +76,12 @@ function saveManualEnvironmentStateSnapshot(input: { } describe("manual environment saved-state persistence", () => { - let harness: GithubPostgresTestHarness; + let harness: PostgresTestHarness; const inngest = new Inngest({ id: "manual-admission-test" }); vi.spyOn(inngest, "send").mockResolvedValue({ ids: [] }); beforeAll(async () => { - harness = await startGithubPostgresTestHarness(); + harness = await startPostgresTestHarness(); }, 60_000); afterAll(async () => { @@ -884,14 +884,16 @@ describe("manual environment saved-state persistence", () => { }) .where(eq(schema.environmentSavedStateSnapshot.id, saved.id)); - const malformedAdmission = await harness.runTransactionResult(() => - admitEnvironmentDeployment({ - environmentId, - savedStateSnapshotId: saved.id, - triggerOrigin: { origin: "manual", actorId: userId }, - message: "Deploy without volume destroy", - serviceActionPolicy: { kind: "all_affected_required" }, - }), + const malformedAdmission = await harness.runEffect( + Effect.result( + admitEnvironmentDeployment({ + environmentId, + savedStateSnapshotId: saved.id, + triggerOrigin: { origin: "manual", actorId: userId }, + message: "Deploy without volume destroy", + serviceActionPolicy: { kind: "all_affected_required" }, + }), + ), ); expect(Result.isFailure(malformedAdmission)).toBe(true); if (Result.isSuccess(malformedAdmission)) return; diff --git a/dashboard/src/modules/deployments/retry-repository.server.ts b/dashboard/src/modules/deployments/retry-repository.server.ts index 8f3dfae02f..53d805a794 100644 --- a/dashboard/src/modules/deployments/retry-repository.server.ts +++ b/dashboard/src/modules/deployments/retry-repository.server.ts @@ -5,16 +5,9 @@ import { environmentDeployment as schemaEnvironmentDeployment } from "#/modules/ import { volumeRemoveAttempt as schemaVolumeRemoveAttempt, } from "#/modules/runtime/tables"; -import { - environment as schemaEnvironment, - project as schemaProject, -} from "#/modules/project/tables"; import { Database } from "#/server/database.server"; import { NotFound, Validation } from "#/server/public-error"; import { withMutationResult } from "#/server/mutation-result.server"; -import { - listCoreOperationEvidencePageEffect, -} from "#/modules/operations/core-operation-evidence.server"; import { admitActiveDeploymentAttempt, isActiveDeploymentUniqueViolation, @@ -28,49 +21,6 @@ const activeAttemptConflict = () => message: "An environment deployment attempt is already active.", }); -export const loadAuthorizedDeploymentEvidence = Effect.fn( - "Deployments.loadAuthorizedDeploymentEvidence", -)(function* (input: { - readonly organizationId: string; - readonly deploymentId: string; - readonly afterSequence?: string; - readonly limit: number; -}) { - const { drizzle: database } = yield* Database; - const selected = yield* database - .select({ coreDeployId: schemaEnvironmentDeployment.coreDeployId }) - .from(schemaEnvironmentDeployment) - .innerJoin( - schemaEnvironment, - eq(schemaEnvironment.id, schemaEnvironmentDeployment.environmentId), - ) - .innerJoin( - schemaProject, - eq(schemaProject.id, schemaEnvironment.projectId), - ) - .where( - and( - eq(schemaEnvironmentDeployment.id, input.deploymentId), - eq(schemaProject.organizationId, input.organizationId), - ), - ) - .limit(1); - const [deployment] = selected; - if (!deployment) { - return yield* new NotFound({ - message: "The environment deployment was not found.", - }); - } - if (!deployment.coreDeployId) return null; - const coreOperationId = deployment.coreDeployId; - return yield* listCoreOperationEvidencePageEffect({ - organizationId: input.organizationId, - coreOperationId, - afterSequence: input.afterSequence, - limit: input.limit, - }, database); -}); - export const createRetryAttempt = Effect.fn("Deployments.createRetryAttempt")( function* (input: { readonly environmentId: string; diff --git a/dashboard/src/modules/deployments/runtime-persistence.server.postgres.test.ts b/dashboard/src/modules/deployments/runtime-persistence.server.postgres.test.ts index 851d7806a8..a2864ab756 100644 --- a/dashboard/src/modules/deployments/runtime-persistence.server.postgres.test.ts +++ b/dashboard/src/modules/deployments/runtime-persistence.server.postgres.test.ts @@ -29,9 +29,9 @@ import { collectionReadInput } from "#/collections/read.contract"; import { Inngest } from "inngest"; import * as schema from "#/db/schema"; import { - type GithubPostgresTestHarness, - startGithubPostgresTestHarness, -} from "#/modules/github/github-ingestion.postgres-test-harness"; + type PostgresTestHarness, + startPostgresTestHarness, +} from "#/test/postgres"; import { persistSdkDeployPreview, persistSdkDeployOutcome, @@ -124,10 +124,10 @@ function node(input: { } describe("deployment runtime persistence", () => { - let harness: GithubPostgresTestHarness; + let harness: PostgresTestHarness; beforeAll(async () => { - harness = await startGithubPostgresTestHarness(); + harness = await startPostgresTestHarness(); }, 60_000); afterAll(async () => { diff --git a/dashboard/src/modules/environment-design/working-document-restore.server.postgres.test.ts b/dashboard/src/modules/environment-design/discard-environment-changes.server.postgres.test.ts similarity index 73% rename from dashboard/src/modules/environment-design/working-document-restore.server.postgres.test.ts rename to dashboard/src/modules/environment-design/discard-environment-changes.server.postgres.test.ts index 761a067f5e..e04130e62f 100644 --- a/dashboard/src/modules/environment-design/working-document-restore.server.postgres.test.ts +++ b/dashboard/src/modules/environment-design/discard-environment-changes.server.postgres.test.ts @@ -1,14 +1,11 @@ import { testConfigEnvironment } from "#/test/config-environment"; -import { getStoredServiceCredential } from "./service-repository.server"; -import { fingerprintReviewedEnvironmentWorkingState, projectReviewedEnvironmentWorkingState } from "./working-state-review"; -import { restoreWorkingDocument } from "./working-document-restore.server"; import { discardEnvironmentChanges } from "./saved-state-operations.server"; import type { DiscardEnvironmentChangesInput } from "./working-document-restore"; import { loadEnvironmentSnapshotProjection } from "#/modules/deployments/environment-state.repository.server"; import { loadLatestEnvironmentSavedState } from "./saved-state-repository.server"; import { createVolumeResource, deleteVolumeResource } from "./resource-operations.server"; import { attachServiceVolume } from "./mount-operations.server"; -import { createServiceVariable, updateServiceVariable } from "./variable-operations.server"; +import { createServiceVariable } from "./variable-operations.server"; import { loadEnvironmentNodeIntroductionIntent } from "./environment-node-introduction.repository.server"; import { environmentNodeIntroductionSchema } from "./environment-node-introductions"; import { environmentNodeConfigSnapshot, environmentNodeIntroduction } from "#/modules/runtime/tables"; @@ -16,7 +13,6 @@ import { decodeStrict } from "./schema"; import { loadCurrentEnvironmentState, writeEnvironmentDocument } from "./working-state-repository.server"; import { environmentDeployment, environmentSavedStateSnapshot } from "#/modules/deployments/tables"; import { withMutationResult } from "#/server/mutation-result.server"; -import { SecretEncryption } from "#/utils/encrypted-secret.server"; import { canonicalizeSavedEnvironmentIntent, compileSavedEnvironmentIntent } from "./saved-intent"; import { loadEnvironmentDocument } from "./working-state-repository.server"; import { emptyEnvironmentIntent } from "./saved-intent"; @@ -46,7 +42,7 @@ import { import { createImageServiceSource } from "./services"; it.live( - "restores one authorized document revision with captured secrets and retained identities", + "discards one authorized field, node, or environment back to its reviewed baseline", () => Effect.gen(function* () { const container = yield* postgresTestContainer; @@ -155,17 +151,10 @@ it.live( assert.strictEqual(yield* loadLatestEnvironmentSavedState(scope.environmentId), null); yield* attachServiceVolume(actor, { ...scope, revision: yield* revision(), serviceId, volumeResourceId: volume.data.resource.id, mountPath: "/data" }); - const sealed = yield* createServiceVariable(actor, { ...scope, revision: yield* revision(), serviceId, + yield* createServiceVariable(actor, { ...scope, revision: yield* revision(), serviceId, key: "TOKEN", description: "secret", exported: true, value: { type: "sealed", value: "original-secret" } }); - const variableId = sealed.data.intent.services[0]?.variables[0]?.id; - if (!variableId) return yield* Effect.die("Variable missing."); yield* setServiceRegistryCredential(actor, { ...scope, revision: yield* revision(), serviceId, username: "owner", secret: "original-registry-secret" }); const baseline = (yield* loadCurrentEnvironmentState(environmentRecord.id)).intent; - const [saved] = yield* database.drizzle.insert(environmentSavedStateSnapshot).values({ - organizationId: organizationRecord.id, environmentId: environmentRecord.id, actorId: actor.userId, - intent: baseline, volumeDeletionAuthorizations: [], - }).returning({ id: environmentSavedStateSnapshot.id }); - if (!saved) return yield* Effect.die("Saved intent missing."); const savedOnlyIntent = structuredClone(baseline); const savedOnlyService = savedOnlyIntent.services[0]; if (!savedOnlyService) return yield* Effect.die("Saved Service missing."); @@ -183,62 +172,17 @@ it.live( })); assert.strictEqual(invalidIntroductionReset._tag, "Conflict"); assert.strictEqual(invalidIntroductionReset.message, "This field has no discard baseline."); - const invalidLegacyReset = yield* Effect.flip(restoreWorkingDocument(actor, { - ...scope, revision: yield* revision(), snapshotSource: { kind: "introduction" }, - command: { kind: "node", nodeType: "service", nodeId: serviceId, path: "replicas" }, - })); - assert.strictEqual(invalidLegacyReset._tag, "Conflict"); - assert.strictEqual(invalidLegacyReset.message, "Only unsaved, unapplied nodes can reset to their Introduction."); assert.strictEqual((yield* loadEnvironmentDocument(scope.environmentId)).intent.services[0]?.config.replicas, 7); assert.strictEqual((yield* loadLatestEnvironmentSavedState(scope.environmentId))?.intent.services[0]?.config.replicas, 5); - const snapshotSource = { kind: "saved" as const, environmentSavedStateSnapshotId: saved.id }; - const oldRevision = yield* revision(); - yield* updateService(actor, { ...scope, revision: oldRevision, serviceId, startCommand: "changed-command", replicas: 3 }); - yield* updateServiceVariable(actor, { ...scope, revision: yield* revision(), serviceId, variableId, - key: "TOKEN", description: null, exported: false, value: { type: "sealed", value: "new-secret" } }); - yield* setServiceRegistryCredential(actor, { ...scope, revision: yield* revision(), serviceId, username: "new-owner", secret: "new-registry-secret" }); - const rotatedCredential = yield* getStoredServiceCredential(environmentRecord.id, serviceId); - const credentialEncryption = yield* SecretEncryption; - if (!rotatedCredential?.encryptedRegistrySecret) return yield* Effect.die("Rotated credential missing."); - assert.strictEqual(credentialEncryption.decrypt(rotatedCredential.encryptedRegistrySecret), "new-registry-secret"); - assert.deepStrictEqual((yield* loadEnvironmentDocument(environmentRecord.id)).intent.services[0]?.config.source, baseline.services[0]?.config.source); - yield* deleteVolumeResource(actor, { ...scope, revision: yield* revision(), resourceId: volume.data.resource.id }); + // Identity validation is inside the single write boundary. const current = yield* loadEnvironmentDocument(environmentRecord.id); - const command = { kind: "all" as const }; - const stale = yield* Effect.flip(restoreWorkingDocument(actor, { ...scope, revision: oldRevision, snapshotSource, command })); - assert.strictEqual(stale._tag, "Conflict"); - const unauthorized = yield* Effect.flip(restoreWorkingDocument({ userId: outsider.id }, { ...scope, revision: current.revision, snapshotSource, command })); - assert.strictEqual(unauthorized._tag, "NotFound"); - assert.strictEqual((yield* revision()), current.revision); - const restored = yield* restoreWorkingDocument(actor, { ...scope, revision: current.revision, snapshotSource, command }); - assert.notStrictEqual(restored.data.revision, current.revision); - assert.deepStrictEqual((yield* loadCurrentEnvironmentState(environmentRecord.id)).intent, canonicalizeSavedEnvironmentIntent(baseline)); - assert.ok(!JSON.stringify(restored.data.intent).includes("ciphertext")); - const renderedReview = projectReviewedEnvironmentWorkingState({ ...restored.data, - compiled: compileSavedEnvironmentIntent({ environmentId: environmentRecord.id, intent: restored.data.intent }) }); - const captured = yield* loadCurrentEnvironmentState(environmentRecord.id); - assert.strictEqual(yield* Effect.promise(() => fingerprintReviewedEnvironmentWorkingState(renderedReview)), - yield* Effect.promise(() => fingerprintReviewedEnvironmentWorkingState(captured.projection))); - - const encryption = yield* SecretEncryption; - const afterDiscardCredential = yield* getStoredServiceCredential(environmentRecord.id, serviceId); - assert.deepStrictEqual(afterDiscardCredential, rotatedCredential); - const restoredSecret = (yield* loadCurrentEnvironmentState(environmentRecord.id)).intent.services[0]?.variables[0]?.value; - if (restoredSecret?.kind !== "secret" || !restoredSecret.encryptedValue) return yield* Effect.die("Captured secret missing."); - assert.strictEqual(encryption.decrypt(restoredSecret.encryptedValue), "original-secret"); - const written = yield* database.drizzle.execute<{ txid: string }>(sql` - select xmin::text as txid from environment where id = ${environmentRecord.id} - union all select xmin::text as txid from variable_secret where variable_id = ${variableId}`, "objects"); - assert.strictEqual(written.length, 2); - assert.strictEqual(new Set(written.map((row) => row.txid)).size, 1); - // Identity validation is inside the single write boundary, including restores. - const candidate = structuredClone(restored.data.intent); + const candidate = structuredClone(current.intent); const first = candidate.services[0]; if (!first) return yield* Effect.die("Service missing."); first.lineageId = volume.data.resource.lineageId; - const identityError = yield* Effect.flip(withMutationResult(writeEnvironmentDocument(restored.data, candidate))); + const identityError = yield* Effect.flip(withMutationResult(writeEnvironmentDocument(current, candidate))); assert.strictEqual(identityError._tag, "Conflict"); - assert.strictEqual((yield* revision()), restored.data.revision); + assert.strictEqual((yield* revision()), current.revision); const recordAttempt = (replicas: number, status: "applied" | "queued") => Effect.gen(function* () { const intent = structuredClone(baseline); diff --git a/dashboard/src/modules/environment-design/environment-snapshot-source.ts b/dashboard/src/modules/environment-design/environment-snapshot-source.ts deleted file mode 100644 index c7bae6d848..0000000000 --- a/dashboard/src/modules/environment-design/environment-snapshot-source.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Schema } from "effect"; -import { ENVIRONMENT_DEPLOYMENT_STATUSES } from "#/modules/deployments/tables"; -import { Uuid } from "#/modules/environment-design/workspace-schemas"; - -export const environmentSnapshotSourceSchema = Schema.Union([ - Schema.Struct({ - kind: Schema.Literal("saved"), - environmentSavedStateSnapshotId: Uuid, - }), - Schema.Struct({ - kind: Schema.Literal("deployment"), - environmentDeploymentId: Uuid, - status: Schema.Literals(ENVIRONMENT_DEPLOYMENT_STATUSES), - }), -]); - -export type EnvironmentSnapshotSource = - typeof environmentSnapshotSourceSchema.Type; diff --git a/dashboard/src/modules/environment-design/saved-state-operations.server.postgres.test.ts b/dashboard/src/modules/environment-design/saved-state-operations.server.postgres.test.ts index 52b535d5b6..44d6f4f846 100644 --- a/dashboard/src/modules/environment-design/saved-state-operations.server.postgres.test.ts +++ b/dashboard/src/modules/environment-design/saved-state-operations.server.postgres.test.ts @@ -10,9 +10,9 @@ import { } from "./saved-state-operations.server"; import type { EnvironmentSavedStateBasis } from "./saved-state"; import { - type GithubPostgresTestHarness, - startGithubPostgresTestHarness, -} from "#/modules/github/github-ingestion.postgres-test-harness"; + type PostgresTestHarness, + startPostgresTestHarness, +} from "#/test/postgres"; import { makeSecretEncryption, SecretEncryption, @@ -89,10 +89,10 @@ function publishEnvironmentSavedState(input: Omit } describe("Environment Saved State aggregate", () => { - let harness: GithubPostgresTestHarness; + let harness: PostgresTestHarness; beforeAll(async () => { - harness = await startGithubPostgresTestHarness(); + harness = await startPostgresTestHarness(); }, 60_000); afterAll(async () => { diff --git a/dashboard/src/modules/environment-design/service-functions.ts b/dashboard/src/modules/environment-design/service-functions.ts index 7cbe4f77b2..cedfb21e3f 100644 --- a/dashboard/src/modules/environment-design/service-functions.ts +++ b/dashboard/src/modules/environment-design/service-functions.ts @@ -8,7 +8,6 @@ import { import { clearServiceRegistryCredential, createService, - deleteServices, restoreServiceRegistryCredential, setServiceRegistryCredential, updateService, @@ -17,7 +16,6 @@ import { import { clearServiceRegistryCredentialSchema, createServiceSchema, - deleteServicesSchema, restoreServiceRegistryCredentialSchema, setServiceRegistryCredentialSchema, updateServiceCanvasPositionSchema, @@ -40,13 +38,6 @@ export const updateServiceServerFn = createServerFn({ method: "POST" }) runActor(context, updateService(context.actor, data)), ); -export const deleteServicesServerFn = createServerFn({ method: "POST" }) - .middleware(middleware) - .validator(strictValidator(deleteServicesSchema)) - .handler(({ context, data }) => - runActor(context, deleteServices(context.actor, data)), - ); - export const updateServiceCanvasPositionServerFn = createServerFn({ method: "POST", }) diff --git a/dashboard/src/modules/environment-design/service-operations.server.ts b/dashboard/src/modules/environment-design/service-operations.server.ts index b545b731df..12a77fbfe5 100644 --- a/dashboard/src/modules/environment-design/service-operations.server.ts +++ b/dashboard/src/modules/environment-design/service-operations.server.ts @@ -220,18 +220,6 @@ export const updateService = Effect.fn("EnvironmentDesign.updateService")( }, ); -export const deleteServices = Effect.fn("EnvironmentDesign.deleteServices")( - function* (actor: Actor, input: { readonly organizationSlug: string; readonly environmentId: string; readonly revision: string; readonly serviceIds: readonly string[] }) { - yield* requireEnvironmentForActorById(actor, input); - return yield* withMutationResult(Effect.gen(function* () { - const document = yield* loadEnvironmentDocument(input.environmentId, true); - yield* requireDocumentRevision(document, input.revision); - document.intent.services = document.intent.services.filter((node) => !input.serviceIds.includes(node.id)); - return yield* writeEnvironmentDocument(document, document.intent); - })); - }, -); - export const updateServiceCanvasPosition = Effect.fn( "EnvironmentDesign.updateServiceCanvasPosition", )(function* ( diff --git a/dashboard/src/modules/environment-design/service-schemas.ts b/dashboard/src/modules/environment-design/service-schemas.ts index 400910485e..4810fcefba 100644 --- a/dashboard/src/modules/environment-design/service-schemas.ts +++ b/dashboard/src/modules/environment-design/service-schemas.ts @@ -194,13 +194,6 @@ const serviceRegistryCredentialScopeFields = { revision: Uuid, }; -export const deleteServicesSchema = Schema.Struct({ - organizationSlug: OrganizationSlug, - environmentId: Uuid, - revision: Uuid, - serviceIds: Schema.Array(Uuid).check(Schema.isMinLength(1)), -}); - export const updateServiceCanvasPositionSchema = Schema.Struct({ organizationSlug: OrganizationSlug, environmentId: Uuid, diff --git a/dashboard/src/modules/environment-design/working-document-restore.functions.ts b/dashboard/src/modules/environment-design/working-document-restore.functions.ts index c91488117d..f71db44045 100644 --- a/dashboard/src/modules/environment-design/working-document-restore.functions.ts +++ b/dashboard/src/modules/environment-design/working-document-restore.functions.ts @@ -1,14 +1,8 @@ import { createServerFn } from "@tanstack/react-start"; import { actorMiddleware, publicErrorMiddleware, runActor, strictValidator } from "#/server/tanstack"; -import { discardEnvironmentChangesSchema, restoreWorkingDocumentSchema } from "./working-document-restore"; -import { restoreWorkingDocument } from "./working-document-restore.server"; +import { discardEnvironmentChangesSchema } from "./working-document-restore"; import { discardEnvironmentChanges } from "./saved-state-operations.server"; -export const restoreWorkingDocumentServerFn = createServerFn({ method: "POST" }) - .middleware([publicErrorMiddleware, actorMiddleware]) - .validator(strictValidator(restoreWorkingDocumentSchema)) - .handler(({ context, data }) => runActor(context, restoreWorkingDocument(context.actor, data))); - export const discardEnvironmentChangesServerFn = createServerFn({ method: "POST" }) .middleware([publicErrorMiddleware, actorMiddleware]) .validator(strictValidator(discardEnvironmentChangesSchema)) diff --git a/dashboard/src/modules/environment-design/working-document-restore.server.ts b/dashboard/src/modules/environment-design/working-document-restore.server.ts deleted file mode 100644 index 74e74a1cbf..0000000000 --- a/dashboard/src/modules/environment-design/working-document-restore.server.ts +++ /dev/null @@ -1,58 +0,0 @@ -import "@tanstack/react-start/server-only"; -import { and, eq } from "drizzle-orm"; -import { Effect } from "effect"; -import type { Actor } from "#/modules/identity/actor"; -import { environmentDeployment } from "#/modules/deployments/tables"; -import { loadEnvironmentSnapshotProjection } from "#/modules/deployments/environment-state.repository.server"; -import { Database } from "#/server/database.server"; -import { withMutationResult } from "#/server/mutation-result.server"; -import { Conflict, NotFound } from "#/server/public-error"; -import { requireEnvironmentForActorById } from "./authoring-repository.server"; -import { emptyEnvironmentIntent, restoreDashboardEnvironmentNode, type SavedEnvironmentIntent } from "./saved-intent"; -import { loadEnvironmentSavedIntentById } from "./saved-state-repository.server"; -import { loadEnvironmentDocument, requireDocumentRevision, writeEnvironmentDocument } from "./working-state-repository.server"; -import type { RestoreWorkingDocumentInput } from "./working-document-restore"; -import { loadEnvironmentNodeIntroductionIntent } from "./environment-node-introduction.repository.server"; - -export const restoreWorkingDocument = Effect.fn("EnvironmentDesign.restoreWorkingDocument")( - function* (actor: Actor, input: RestoreWorkingDocumentInput) { - yield* requireEnvironmentForActorById(actor, input); - return yield* withMutationResult(Effect.gen(function* () { - const document = yield* loadEnvironmentDocument(input.environmentId, true); - yield* requireDocumentRevision(document, input.revision); - let baseline: SavedEnvironmentIntent | null = null; - if (input.snapshotSource?.kind === "introduction") { - if (input.command.kind !== "node") return yield* new Conflict({ message: "An introduction can restore only its node." }); - const projection = yield* loadEnvironmentSnapshotProjection({ kind: "environment", environmentId: input.environmentId }); - const state = projection.explicitStates.find(state => state.environmentId === input.environmentId); - const command = input.command; - if ([...(state?.saved?.nodes ?? []), ...(state?.applied.nodes ?? [])].some(node => - node.nodeType === command.nodeType && node.nodeId === command.nodeId && node.config !== null)) { - return yield* new Conflict({ message: "Only unsaved, unapplied nodes can reset to their Introduction." }); - } - baseline = yield* loadEnvironmentNodeIntroductionIntent({ environmentId: input.environmentId, - nodeType: input.command.nodeType, nodeId: input.command.nodeId }); - } else if (input.snapshotSource) { - let savedStateSnapshotId: string; - if (input.snapshotSource.kind === "saved") savedStateSnapshotId = input.snapshotSource.environmentSavedStateSnapshotId; - else { - const { drizzle } = yield* Database; - const [deployment] = yield* drizzle.select({ savedStateSnapshotId: environmentDeployment.savedStateSnapshotId }) - .from(environmentDeployment).where(and(eq(environmentDeployment.id, input.snapshotSource.environmentDeploymentId), eq(environmentDeployment.environmentId, input.environmentId))); - if (!deployment) return yield* new NotFound({ message: "Deployment baseline not found." }); - savedStateSnapshotId = deployment.savedStateSnapshotId; - } - const saved = yield* loadEnvironmentSavedIntentById({ environmentId: input.environmentId, savedStateSnapshotId }); - if (!saved) return yield* new NotFound({ message: "Saved baseline not found." }); - baseline = saved.intent; - } - const command = input.command; - const next = yield* Effect.try({ - try: () => command.kind === "all" ? baseline ?? emptyEnvironmentIntent(document.namespace) - : restoreDashboardEnvironmentNode(document.intent, baseline, { nodeType: command.nodeType, nodeId: command.nodeId }, command.path), - catch: () => new Conflict({ message: "Discard would leave invalid Environment relationships." }), - }); - return yield* writeEnvironmentDocument(document, next); - })); - }, -); diff --git a/dashboard/src/modules/environment-design/working-document-restore.ts b/dashboard/src/modules/environment-design/working-document-restore.ts index e954f86838..031324ba7e 100644 --- a/dashboard/src/modules/environment-design/working-document-restore.ts +++ b/dashboard/src/modules/environment-design/working-document-restore.ts @@ -1,6 +1,5 @@ import { Schema } from "effect"; import { OrganizationSlug, Uuid } from "./workspace-schemas"; -import { environmentSnapshotSourceSchema } from "./environment-snapshot-source"; import { environmentSavedStateBasisSchema } from "./saved-state"; const restoreScope = { @@ -12,16 +11,6 @@ const nodeCommand = Schema.Struct({ kind: Schema.Literal("node"), nodeType: Schema.Literals(["service", "volume"]), nodeId: Uuid, path: Schema.optionalKey(Schema.NonEmptyString), }); -export const restoreWorkingDocumentSchema = Schema.Union([ - Schema.Struct({ ...restoreScope, snapshotSource: Schema.NullOr(environmentSnapshotSourceSchema), - command: Schema.Struct({ kind: Schema.Literal("all") }), - }), - Schema.Struct({ ...restoreScope, snapshotSource: Schema.NullOr(Schema.Union([ - environmentSnapshotSourceSchema, Schema.Struct({ kind: Schema.Literal("introduction") }), - ])), command: nodeCommand }), -]); -export type RestoreWorkingDocumentInput = typeof restoreWorkingDocumentSchema.Type; - export const discardEnvironmentChangesSchema = Schema.Struct({ ...restoreScope, savedStateBasis: environmentSavedStateBasisSchema, diff --git a/dashboard/src/modules/github/github-ingestion.branch-admission.postgres.test.ts b/dashboard/src/modules/github/github-ingestion.branch-admission.postgres.test.ts index f22a87fcea..6813dded08 100644 --- a/dashboard/src/modules/github/github-ingestion.branch-admission.postgres.test.ts +++ b/dashboard/src/modules/github/github-ingestion.branch-admission.postgres.test.ts @@ -12,10 +12,9 @@ import { Effect, Result as EffectResult } from "effect"; import { planGithubBranchEvaluation } from "#/modules/github/github-branch-evaluation"; import type { GithubBranchCursor } from "#/modules/github/github-ingestion.repository"; import { - runGithubRepositoryResult as runGithubRepositoryResultWithHarness, - type GithubPostgresTestHarness, - startGithubPostgresTestHarness, -} from "#/modules/github/github-ingestion.postgres-test-harness"; + type PostgresTestHarness, + startPostgresTestHarness, +} from "#/test/postgres"; import * as repository from "#/modules/github/github-ingestion.repository"; import { InngestClient } from "#/modules/inngest/client"; import { @@ -116,7 +115,7 @@ function savedIntent( } describe("GitHub branch deployment admission", () => { - let harness: GithubPostgresTestHarness; + let harness: PostgresTestHarness; const inngest = new Inngest({ id: "github-branch-admission-test" }); vi.spyOn(inngest, "send").mockResolvedValue({ ids: [] }); const runGithubRepositoryResult = ( @@ -126,13 +125,10 @@ describe("GitHub branch deployment admission", () => { import("#/server/database.server").Database | InngestClient >, ) => - runGithubRepositoryResultWithHarness( - harness, - operation.pipe(Effect.provideService(InngestClient, inngest)), - ); + harness.runEffect(Effect.result(operation.pipe(Effect.provideService(InngestClient, inngest)))); beforeAll(async () => { - harness = await startGithubPostgresTestHarness(); + harness = await startPostgresTestHarness(); }, 60_000); afterAll(async () => { diff --git a/dashboard/src/modules/github/github-ingestion.postgres-test-harness.ts b/dashboard/src/modules/github/github-ingestion.postgres-test-harness.ts deleted file mode 100644 index 128e7fafaa..0000000000 --- a/dashboard/src/modules/github/github-ingestion.postgres-test-harness.ts +++ /dev/null @@ -1,218 +0,0 @@ -import { execFile as execFileCallback } from "node:child_process"; -import { randomUUID } from "node:crypto"; -import { promisify } from "node:util"; -import { drizzle } from "drizzle-orm/node-postgres"; -import { PgClient } from "@effect/sql-pg"; -import { makeWithDefaults } from "drizzle-orm/effect-postgres"; -import { Effect, Layer, ManagedRuntime, Result } from "effect"; -import * as Reactivity from "effect/unstable/reactivity/Reactivity"; -import { Pool } from "pg"; -import { - Database, - ReportingDatabase, - makeReportingDatabase, - makeDatabaseService, -} from "#/server/database.server"; -import { - createDefaultServiceHealthcheck, - createDefaultServiceRestartPolicy, - createGitServiceSource, - projectServiceDeploymentConfig, -} from "#/modules/environment-design/services"; - -const execFile = promisify(execFileCallback); - -export function savedGithubServiceNode(input: { - serviceId: string; - lineageId: string; - installationId?: number; - repositoryId?: number; -}) { - return { - nodeType: "service" as const, - nodeId: input.serviceId, - nodeLineageId: input.lineageId, - configVersion: 1, - config: projectServiceDeploymentConfig({ - source: createGitServiceSource({ - repository: "acme/api", - access: { type: "github-installation", installationId: input.installationId ?? 17 }, - repositoryId: input.repositoryId ?? 42, - }), - preDeployCommand: null, - startCommand: null, - healthcheck: createDefaultServiceHealthcheck(), - restartPolicy: createDefaultServiceRestartPolicy(), - privateDns: "api", - build: { buildMethod: "railpack", dockerfilePath: null, command: null, }, - }), - encryptedRegistryUsername: null, - encryptedRegistrySecret: null, - }; -} - -async function docker(...args: string[]) { - return execFile("docker", args, { maxBuffer: 10 * 1024 * 1024 }); -} - -async function waitForPostgres(containerName: string) { - const deadline = Date.now() + 30_000; - while (Date.now() < deadline) { - try { - await docker( - "exec", - containerName, - "pg_isready", - "-U", - "postgres", - "-d", - "ployz_cloud", - ); - return; - } catch { - await new Promise((resolve) => setTimeout(resolve, 200)); - } - } - throw new Error("PostgreSQL 16 acceptance container did not become ready."); -} - -async function waitForMappedPostgres(pool: Pool) { - const deadline = Date.now() + 30_000; - while (Date.now() < deadline) { - try { - await pool.query("select 1"); - return; - } catch { - await new Promise((resolve) => setTimeout(resolve, 200)); - } - } - throw new Error("Mapped PostgreSQL acceptance port did not become ready."); -} - -export async function startGithubPostgresTestHarness() { - const containerName = `ployz-github-${process.pid}-${randomUUID().slice(0, 8)}`; - await docker( - "run", - "--detach", - "--rm", - "--name", - containerName, - "--tmpfs", - "/var/lib/postgresql/data:rw", - "--publish", - "127.0.0.1::5432", - "--env", - "POSTGRES_PASSWORD=postgres", - "--env", - "POSTGRES_DB=ployz_cloud", - "postgres:16-alpine", - "-c", - "fsync=off", - "-c", - "synchronous_commit=off", - "-c", - "full_page_writes=off", - ); - - try { - await waitForPostgres(containerName); - const { stdout } = await docker("port", containerName, "5432/tcp"); - const port = Number(stdout.trim().split(":").at(-1)); - if (!Number.isSafeInteger(port) || port < 1) { - throw new Error(`Docker returned an invalid PostgreSQL port: ${stdout}`); - } - const databaseUrl = `postgres://postgres:postgres@127.0.0.1:${port}/ployz_cloud`; - const pool = new Pool({ connectionString: databaseUrl, max: 8 }); - await waitForMappedPostgres(pool); - await execFile(process.execPath, [ - "--env-file-if-exists=.env", - "node_modules/drizzle-kit/bin.cjs", - "migrate", - ], { - cwd: process.cwd(), - env: { ...process.env, DATABASE_URL: databaseUrl }, - maxBuffer: 20 * 1024 * 1024, - }); - const db = drizzle({ client: pool }); - const databaseRuntime = ManagedRuntime.make( - Layer.effect( - Database, - Effect.gen(function* () { - const client = yield* PgClient.fromPool({ - acquire: Effect.acquireRelease( - Effect.succeed(pool), - () => Effect.void, - ), - applicationName: "ployz-cloud-test", - }); - const effectDatabase = yield* makeWithDefaults().pipe( - Effect.provideService(PgClient.PgClient, client), - ); - return makeDatabaseService(effectDatabase); - }), - ).pipe(Layer.merge(Layer.effect(ReportingDatabase, makeReportingDatabase(databaseUrl))), Layer.provide(Reactivity.layer)), - ); - const database = await databaseRuntime.runPromise(Database); - return { - databaseUrl, - reportingDatabase: await databaseRuntime.runPromise(ReportingDatabase), - db, - database, - runEffect( - operation: Effect.Effect, - ) { - return databaseRuntime.runPromise(operation); - }, - runTransactionResult( - operation: ( - transaction: typeof database.drizzle, - ) => Effect.Effect, - ) { - return databaseRuntime.runPromise( - Effect.result( - database.transaction( - Effect.gen(function* () { - const transaction = (yield* Database).drizzle; - return yield* operation(transaction); - }), - ), - ), - ); - }, - runTransaction( - operation: ( - transaction: typeof database.drizzle, - ) => Effect.Effect, - ) { - return databaseRuntime.runPromise( - database.transaction( - Effect.gen(function* () { - const transaction = (yield* Database).drizzle; - return yield* operation(transaction); - }), - ), - ); - }, - pool, - async stop() { - await databaseRuntime.dispose(); - await pool.end(); - await docker("rm", "--force", containerName).catch(() => undefined); - }, - }; - } catch (error) { - await docker("rm", "--force", containerName).catch(() => undefined); - throw error; - } -} - -export type GithubPostgresTestHarness = Awaited< - ReturnType ->; - -export function runGithubRepositoryResult( - harness: GithubPostgresTestHarness, - operation: Effect.Effect, -): Promise> { - return harness.runEffect(Effect.result(operation)); -} diff --git a/dashboard/src/modules/github/github-ingestion.repository.postgres.test.ts b/dashboard/src/modules/github/github-ingestion.repository.postgres.test.ts index d4fe10e01c..aa86ebcce8 100644 --- a/dashboard/src/modules/github/github-ingestion.repository.postgres.test.ts +++ b/dashboard/src/modules/github/github-ingestion.repository.postgres.test.ts @@ -4,21 +4,54 @@ import { Inngest } from "inngest"; import type { GithubBranchCursor } from "#/modules/github/github-ingestion.repository"; import { planGithubBranchEvaluation } from "#/modules/github/github-branch-evaluation"; import { - runGithubRepositoryResult as runGithubRepositoryResultWithHarness, - savedGithubServiceNode, - type GithubPostgresTestHarness, - startGithubPostgresTestHarness, -} from "#/modules/github/github-ingestion.postgres-test-harness"; + type PostgresTestHarness, + startPostgresTestHarness, +} from "#/test/postgres"; import * as repository from "#/modules/github/github-ingestion.repository"; import * as deliveryRepository from "#/modules/github/github-ingestion.delivery.repository"; import { InngestClient } from "#/modules/inngest/client"; +import { + createDefaultServiceHealthcheck, + createDefaultServiceRestartPolicy, + createGitServiceSource, + projectServiceDeploymentConfig, +} from "#/modules/environment-design/services"; const environmentId = "00000000-0000-4000-8000-000000000001"; const serviceId = "00000000-0000-4000-8000-000000000011"; const serviceLineageId = "00000000-0000-4000-8000-000000000012"; +function savedGithubServiceNode(input: { + serviceId: string; + lineageId: string; + installationId?: number; + repositoryId?: number; +}) { + return { + nodeType: "service" as const, + nodeId: input.serviceId, + nodeLineageId: input.lineageId, + configVersion: 1, + config: projectServiceDeploymentConfig({ + source: createGitServiceSource({ + repository: "acme/api", + access: { type: "github-installation", installationId: input.installationId ?? 17 }, + repositoryId: input.repositoryId ?? 42, + }), + preDeployCommand: null, + startCommand: null, + healthcheck: createDefaultServiceHealthcheck(), + restartPolicy: createDefaultServiceRestartPolicy(), + privateDns: "api", + build: { buildMethod: "railpack", dockerfilePath: null, command: null, }, + }), + encryptedRegistryUsername: null, + encryptedRegistrySecret: null, + }; +} + describe("GitHub ingestion PostgreSQL persistence", () => { - let harness: GithubPostgresTestHarness; + let harness: PostgresTestHarness; const inngest = new Inngest({ id: "github-ingestion-repository-test" }); vi.spyOn(inngest, "send").mockResolvedValue({ ids: [] }); const runGithubRepositoryResult = ( @@ -28,13 +61,10 @@ describe("GitHub ingestion PostgreSQL persistence", () => { import("#/server/database.server").Database | InngestClient >, ) => - runGithubRepositoryResultWithHarness( - harness, - operation.pipe(Effect.provideService(InngestClient, inngest)), - ); + harness.runEffect(Effect.result(operation.pipe(Effect.provideService(InngestClient, inngest)))); beforeAll(async () => { - harness = await startGithubPostgresTestHarness(); + harness = await startPostgresTestHarness(); }, 60_000); afterAll(async () => { diff --git a/dashboard/src/modules/github/github-source.postgres.test.ts b/dashboard/src/modules/github/github-source.postgres.test.ts index 2dfa7bdb8e..0a6706a243 100644 --- a/dashboard/src/modules/github/github-source.postgres.test.ts +++ b/dashboard/src/modules/github/github-source.postgres.test.ts @@ -7,10 +7,10 @@ import { materializeGithubSource } from "./github-source.server"; import { randomUUID } from "node:crypto"; import { expect, it } from "vitest"; import { getCachedGithubRepositoryForOrganization } from "./github.repository"; -import { startGithubPostgresTestHarness } from "./github-ingestion.postgres-test-harness"; +import { startPostgresTestHarness } from "#/test/postgres"; it.each([17, null])("materializes pinned source with installation %s and cleans it up after failure", async (sourceInstallationId) => { - const harness = await startGithubPostgresTestHarness(); + const harness = await startPostgresTestHarness(); try { const user = randomUUID(); const organization = randomUUID(); await harness.pool.query('insert into "user"(id,email,name) values($1,$2,$3)', [user, "source@example.test", "Source"]); diff --git a/dashboard/src/modules/machines/enrollment.server.postgres.test.ts b/dashboard/src/modules/machines/enrollment.server.postgres.test.ts index a02561f35e..a5f742f0fc 100644 --- a/dashboard/src/modules/machines/enrollment.server.postgres.test.ts +++ b/dashboard/src/modules/machines/enrollment.server.postgres.test.ts @@ -15,9 +15,9 @@ import { vi, } from "vitest"; import { - type GithubPostgresTestHarness, - startGithubPostgresTestHarness, -} from "#/modules/github/github-ingestion.postgres-test-harness"; + type PostgresTestHarness, + startPostgresTestHarness, +} from "#/test/postgres"; import { completeMachineEnrollment, publishMachineEnrollment, @@ -71,7 +71,7 @@ function identity(index: number) { }; } -function fakeSession(database: GithubPostgresTestHarness["database"]) { +function fakeSession(database: PostgresTestHarness["database"]) { let registerCalls = 0; let observations = 0; const fail = { publish: false, conflict: false }; @@ -109,7 +109,7 @@ function fakeSession(database: GithubPostgresTestHarness["database"]) { } function enrollmentTestClient( - database: GithubPostgresTestHarness["database"], + database: PostgresTestHarness["database"], connect: (options: ConnectOptions) => Promise, ) { const provider = ConfigProvider.fromEnv({ @@ -179,10 +179,10 @@ function enrollmentTestClient( } describe("organization enrollment coordinator", () => { - let harness: GithubPostgresTestHarness; + let harness: PostgresTestHarness; beforeAll(async () => { - [harness, hostedDns] = await Promise.all([startGithubPostgresTestHarness(), startFakeHostedDns()]); + [harness, hostedDns] = await Promise.all([startPostgresTestHarness(), startFakeHostedDns()]); }, 60_000); afterEach(async () => { diff --git a/dashboard/src/modules/machines/machine-removal.server.postgres.test.ts b/dashboard/src/modules/machines/machine-removal.server.postgres.test.ts index 17e709fa25..8667ae5c57 100644 --- a/dashboard/src/modules/machines/machine-removal.server.postgres.test.ts +++ b/dashboard/src/modules/machines/machine-removal.server.postgres.test.ts @@ -9,9 +9,9 @@ import { } from "vitest"; import { asTestDouble } from "#/lib/test-double"; import { - type GithubPostgresTestHarness, - startGithubPostgresTestHarness, -} from "#/modules/github/github-ingestion.postgres-test-harness"; + type PostgresTestHarness, + startPostgresTestHarness, +} from "#/test/postgres"; import { InngestClient, InngestEventSendError } from "#/modules/inngest/client"; import { cancelMachineRemoveAttemptActivity, @@ -27,7 +27,7 @@ import type { Inngest } from "inngest"; const organizationId = "00000000-0000-4000-8000-000000000501"; const userId = "00000000-0000-4000-8000-000000000502"; -async function request(harness: GithubPostgresTestHarness, machineId: string) { +async function request(harness: PostgresTestHarness, machineId: string) { return harness.runEffect( requestMachineRemoveAttempt({ organizationId, @@ -39,14 +39,14 @@ async function request(harness: GithubPostgresTestHarness, machineId: string) { } describe("machine removal durable ownership", () => { - let harness: GithubPostgresTestHarness; + let harness: PostgresTestHarness; function runEffect(operation: Effect.Effect) { return harness.runEffect(operation); } beforeAll(async () => { - harness = await startGithubPostgresTestHarness(); + harness = await startPostgresTestHarness(); }, 60_000); afterAll(async () => { diff --git a/dashboard/src/modules/machines/pairing-removal.server.postgres.test.ts b/dashboard/src/modules/machines/pairing-removal.server.postgres.test.ts index 3d930597fb..6ae3b32d05 100644 --- a/dashboard/src/modules/machines/pairing-removal.server.postgres.test.ts +++ b/dashboard/src/modules/machines/pairing-removal.server.postgres.test.ts @@ -3,7 +3,7 @@ import type { Client, ConnectOptions } from "@ployz/sdk"; import { Layer, ManagedRuntime } from "effect"; import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest"; import { asTestDouble } from "#/lib/test-double"; -import { startGithubPostgresTestHarness, type GithubPostgresTestHarness } from "#/modules/github/github-ingestion.postgres-test-harness"; +import { startPostgresTestHarness, type PostgresTestHarness } from "#/test/postgres"; import { hashEnrollmentToken } from "#/modules/machines/enrollment.server"; import { disableOrganizationPairing, loadTeardownConnections, revokeOrganizationPairing } from "#/modules/machines/pairing-removal.server"; import { OrganizationRuntimeLive } from "#/modules/runtime/organization-runtime.server"; @@ -19,8 +19,8 @@ const capability = "ployz1:fixture-removal"; const encryption = makeSecretEncryption("fixture-removal-encryption-1234567890"); describe("protected pairing removal", () => { - let harness: GithubPostgresTestHarness; - beforeAll(async () => { harness = await startGithubPostgresTestHarness(); }, 60_000); + let harness: PostgresTestHarness; + beforeAll(async () => { harness = await startPostgresTestHarness(); }, 60_000); afterAll(async () => { await harness.stop(); }); beforeEach(async () => { await harness.pool.query("truncate organization cascade"); diff --git a/dashboard/src/modules/operations/core-operation-evidence.server.ts b/dashboard/src/modules/operations/core-operation-evidence.server.ts index 6df1275953..d3dadadc7c 100644 --- a/dashboard/src/modules/operations/core-operation-evidence.server.ts +++ b/dashboard/src/modules/operations/core-operation-evidence.server.ts @@ -5,10 +5,6 @@ import { coreOperationEvent as schemaCoreOperationEvent, } from "#/modules/operations/tables"; import type { JsonObject } from "#/db/tables"; -import type { - CoreOperationObservationState, - CoreOperationWatchCursorState, -} from "#/modules/operations/tables"; import { CoreOperationEvidencePersistenceFailure, CoreOperationWatchConflict, @@ -36,22 +32,6 @@ export type CoreOperationWatchClose = observationDetail: JsonObject | null; }; -export type CoreOperationEvidencePage = { - events: Array<{ - sequence: string; - eventType: string; - schemaVersion: number; - payload: JsonObject; - createdAt: Date; - }>; - hasMore: boolean; - nextSequence: string | null; - cursorState: CoreOperationWatchCursorState; - observationState: CoreOperationObservationState; - observationDetail: JsonObject | null; - deadlineAt: Date; -}; - export const closeCoreOperationWatch = Effect.fn("Operations.closeWatch")( function* (input: { organizationId: string; @@ -180,70 +160,3 @@ function* (input: { observationDetail: watch.observationDetail, }; }); - -export function listCoreOperationEvidencePageEffect( - input: { - organizationId: string; - coreOperationId: string; - afterSequence?: string; - limit: number; - }, - database: DatabaseService["drizzle"], -) { - return Effect.gen(function* () { - const [watch] = yield* database - .select({ - id: schemaCoreOperationWatch.id, - cursorState: schemaCoreOperationWatch.cursorState, - observationState: schemaCoreOperationWatch.observationState, - observationDetail: schemaCoreOperationWatch.observationDetail, - deadlineAt: schemaCoreOperationWatch.deadlineAt, - }) - .from(schemaCoreOperationWatch) - .where( - and( - eq(schemaCoreOperationWatch.organizationId, input.organizationId), - eq(schemaCoreOperationWatch.operationId, input.coreOperationId), - ), - ) - .limit(1); - if (!watch) return null; - - const rows = yield* database - .select({ - sequence: schemaCoreOperationEvent.sequence, - eventType: schemaCoreOperationEvent.eventType, - schemaVersion: schemaCoreOperationEvent.schemaVersion, - payload: schemaCoreOperationEvent.payload, - createdAt: schemaCoreOperationEvent.createdAt, - }) - .from(schemaCoreOperationEvent) - .where( - and( - eq(schemaCoreOperationEvent.watchId, watch.id), - ...(input.afterSequence - ? [ - sql`${schemaCoreOperationEvent.sequence}::numeric > ${input.afterSequence}::numeric`, - ] - : []), - ), - ) - .orderBy(sql`${schemaCoreOperationEvent.sequence}::numeric asc`) - .limit(input.limit + 1); - const hasMore = rows.length > input.limit; - return { - events: rows.slice(0, input.limit), - hasMore, - nextSequence: hasMore ? (rows[input.limit - 1]?.sequence ?? null) : null, - cursorState: watch.cursorState, - observationState: watch.observationState, - observationDetail: watch.observationDetail, - deadlineAt: watch.deadlineAt, - } satisfies CoreOperationEvidencePage; - }).pipe( - Effect.mapError( - (cause) => - new CoreOperationEvidencePersistenceFailure({ cause }), - ), - ); -} diff --git a/dashboard/src/modules/runtime/runtime-cancellation.server.postgres.test.ts b/dashboard/src/modules/runtime/runtime-cancellation.server.postgres.test.ts index bff61c25b0..3876431b38 100644 --- a/dashboard/src/modules/runtime/runtime-cancellation.server.postgres.test.ts +++ b/dashboard/src/modules/runtime/runtime-cancellation.server.postgres.test.ts @@ -3,7 +3,7 @@ import type { Client } from "@ployz/sdk"; import { Duration, Effect, Exit, Layer, ManagedRuntime, Scope } from "effect"; import { expect, it } from "vitest"; import { asTestDouble } from "#/lib/test-double"; -import { startGithubPostgresTestHarness } from "#/modules/github/github-ingestion.postgres-test-harness"; +import { startPostgresTestHarness } from "#/test/postgres"; import { hashEnrollmentToken } from "#/modules/machines/enrollment.server"; import { disableOrganizationPairing } from "#/modules/machines/pairing-removal.server"; import { @@ -19,7 +19,7 @@ import { makeSecretEncryption, SecretEncryption } from "#/utils/encrypted-secret const settle = () => sleep(2 * Duration.toMillis(PAIRING_CHANGE_POLL) + 250); it("closes every Cloud worker's session through the change log only after commit and preserves replacement pairings", async () => { - const harness = await startGithubPostgresTestHarness(); + const harness = await startPostgresTestHarness(); const organizationId = "00000000-0000-4000-8000-000000000881"; const machineId = "00000000000000000000000000000001"; const encryption = makeSecretEncryption("runtime-cancellation-test-encryption"); diff --git a/dashboard/src/modules/runtime/teardown-data-loss.server.postgres.test.ts b/dashboard/src/modules/runtime/teardown-data-loss.server.postgres.test.ts index 941fc5d29c..04f7ec18e4 100644 --- a/dashboard/src/modules/runtime/teardown-data-loss.server.postgres.test.ts +++ b/dashboard/src/modules/runtime/teardown-data-loss.server.postgres.test.ts @@ -11,9 +11,9 @@ import { } from "vitest"; import { asTestDouble } from "#/lib/test-double"; import { - type GithubPostgresTestHarness, - startGithubPostgresTestHarness, -} from "#/modules/github/github-ingestion.postgres-test-harness"; + type PostgresTestHarness, + startPostgresTestHarness, +} from "#/test/postgres"; import { OrganizationRuntime, type OrganizationRuntimeService, @@ -109,10 +109,10 @@ function connectedRuntime(session: PloyzSession): OrganizationRuntimeService { } describe("teardown Data Loss observation", () => { - let harness: GithubPostgresTestHarness; + let harness: PostgresTestHarness; beforeAll(async () => { - harness = await startGithubPostgresTestHarness(); + harness = await startPostgresTestHarness(); }, 60_000); afterAll(async () => { diff --git a/dashboard/src/modules/runtime/teardown.server.postgres.test.ts b/dashboard/src/modules/runtime/teardown.server.postgres.test.ts index b110d24c92..2f5b46ca4e 100644 --- a/dashboard/src/modules/runtime/teardown.server.postgres.test.ts +++ b/dashboard/src/modules/runtime/teardown.server.postgres.test.ts @@ -14,9 +14,9 @@ import { it, } from "vitest"; import { - type GithubPostgresTestHarness, - startGithubPostgresTestHarness, -} from "#/modules/github/github-ingestion.postgres-test-harness"; + type PostgresTestHarness, + startPostgresTestHarness, +} from "#/test/postgres"; import { InngestClient } from "#/modules/inngest/client"; import { type FakeHostedDns, startFakeHostedDns } from "#/modules/cluster-domain/hosted-dns.test-fixture"; import { @@ -42,7 +42,7 @@ const userId = "00000000-0000-4000-8000-000000000702"; const projectId = "00000000-0000-4000-8000-000000000703"; const environmentId = "00000000-0000-4000-8000-000000000704"; -async function insertAttempt(harness: GithubPostgresTestHarness) { +async function insertAttempt(harness: PostgresTestHarness) { return harness.runEffect( insertTeardownAttempt({ organizationId, @@ -84,7 +84,7 @@ function completeFromRuntimeInput(input: RuntimeCompletionInput) { } describe("teardown durable state", () => { - let harness: GithubPostgresTestHarness; + let harness: PostgresTestHarness; let hostedDns: FakeHostedDns; async function insertClusterDomain() { @@ -115,7 +115,7 @@ describe("teardown durable state", () => { } beforeAll(async () => { - [harness, hostedDns] = await Promise.all([startGithubPostgresTestHarness(), startFakeHostedDns()]); + [harness, hostedDns] = await Promise.all([startPostgresTestHarness(), startFakeHostedDns()]); }, 60_000); afterAll(async () => { diff --git a/dashboard/src/modules/runtime/volume-removal.server.postgres.test.ts b/dashboard/src/modules/runtime/volume-removal.server.postgres.test.ts index 95c4cd426d..b88b2b0a46 100644 --- a/dashboard/src/modules/runtime/volume-removal.server.postgres.test.ts +++ b/dashboard/src/modules/runtime/volume-removal.server.postgres.test.ts @@ -10,9 +10,9 @@ import { it, } from "vitest"; import { - type GithubPostgresTestHarness, - startGithubPostgresTestHarness, -} from "#/modules/github/github-ingestion.postgres-test-harness"; + type PostgresTestHarness, + startPostgresTestHarness, +} from "#/test/postgres"; import { InngestClient } from "#/modules/inngest/client"; import { cancelVolumeRemoveAttemptActivity, @@ -46,7 +46,7 @@ const volume = { }; async function insertAttempt( - harness: GithubPostgresTestHarness, + harness: PostgresTestHarness, retryOfAttemptId?: string, ) { return harness.runEffect( @@ -62,7 +62,7 @@ async function insertAttempt( } describe("direct volume removal durable state", () => { - let harness: GithubPostgresTestHarness; + let harness: PostgresTestHarness; function runPromiseDb( operation: Effect.Effect, @@ -71,7 +71,7 @@ describe("direct volume removal durable state", () => { } beforeAll(async () => { - harness = await startGithubPostgresTestHarness(); + harness = await startPostgresTestHarness(); }, 60_000); afterAll(async () => { diff --git a/dashboard/src/modules/waitlist/tables.ts b/dashboard/src/modules/waitlist/tables.ts deleted file mode 100644 index 9e06e60a74..0000000000 --- a/dashboard/src/modules/waitlist/tables.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { pgTable, text, timestamp, uuid } from "drizzle-orm/pg-core"; - - - -export const waitlist = pgTable("waitlist", { - id: uuid("id").defaultRandom().primaryKey(), - email: text("email").notNull().unique(), - createdAt: timestamp("created_at", { withTimezone: true }) - .defaultNow() - .notNull(), -}); diff --git a/dashboard/src/modules/waitlist/waitlist.server.postgres.test.ts b/dashboard/src/modules/waitlist/waitlist.server.postgres.test.ts deleted file mode 100644 index 11d8dcab55..0000000000 --- a/dashboard/src/modules/waitlist/waitlist.server.postgres.test.ts +++ /dev/null @@ -1,91 +0,0 @@ -import { testConfigEnvironment } from "#/test/config-environment"; -import { assert, it } from "@effect/vitest"; -import { sql } from "drizzle-orm"; -import { ConfigProvider, Effect, Layer } from "effect"; -import { waitlist } from "#/db/schema"; -import { AppConfig } from "#/server/config.server"; -import { Database, DatabaseLive } from "#/server/database.server"; -import { - migrateTestDatabase, - postgresTestContainer, -} from "#/test/postgres"; -import { handleWaitlistRequest } from "./waitlist.server"; - -function request(body: string) { - return new Request("http://localhost/api/waitlist", { - method: "POST", - headers: { "content-type": "application/json" }, - body, - }); -} - -const json = (response: Response) => - Effect.promise(() => response.json() as Promise); - -it.live( - "canonicalizes enrollment, keeps duplicates private, and redacts failures", - () => - Effect.gen(function* () { - const container = yield* postgresTestContainer; - yield* migrateTestDatabase(container.url); - const config = AppConfig.layer.pipe( - Layer.provide( - ConfigProvider.layer( - ConfigProvider.fromEnv({ - env: { - ...testConfigEnvironment(), - DATABASE_URL: container.url.href, - }, - }), - ), - ), - ); - const layer = DatabaseLive.pipe(Layer.provide(config)); - - yield* Effect.gen(function* () { - const database = yield* Database; - - const created = yield* handleWaitlistRequest( - request(JSON.stringify({ email: "Person@Example.COM" })), - ); - assert.strictEqual(created.status, 200); - assert.deepStrictEqual(yield* json(created), { ok: true }); - - const stored = yield* database.drizzle - .select({ email: waitlist.email }) - .from(waitlist); - assert.deepStrictEqual(stored, [{ email: "person@example.com" }]); - - const duplicate = yield* handleWaitlistRequest( - request(JSON.stringify({ email: "person@example.com" })), - ); - assert.strictEqual(duplicate.status, 200); - assert.deepStrictEqual(yield* json(duplicate), { ok: true }); - - const counts = yield* database.drizzle.execute<{ count: number }>( - sql`select count(*)::integer as count from waitlist`, - "objects", - ); - assert.deepStrictEqual(counts, [{ count: 1 }]); - - for (const body of [ - JSON.stringify({ email: " person@example.com " }), - JSON.stringify({ email: `${"a".repeat(243)}@example.test` }), - JSON.stringify({ email: "not-an-email" }), - "{", - ]) { - const invalid = yield* handleWaitlistRequest(request(body)); - assert.strictEqual(invalid.status, 400); - assert.deepStrictEqual(yield* json(invalid), { ok: false }); - } - - yield* database.drizzle.execute(sql`drop table waitlist`); - const failed = yield* handleWaitlistRequest( - request(JSON.stringify({ email: "private@example.com" })), - ); - assert.strictEqual(failed.status, 500); - assert.deepStrictEqual(yield* json(failed), { ok: false }); - }).pipe(Effect.provide(layer)); - }), - 60_000, -); diff --git a/dashboard/src/modules/waitlist/waitlist.server.ts b/dashboard/src/modules/waitlist/waitlist.server.ts deleted file mode 100644 index 41b1cf6186..0000000000 --- a/dashboard/src/modules/waitlist/waitlist.server.ts +++ /dev/null @@ -1,85 +0,0 @@ -import "@tanstack/react-start/server-only"; - -import { Cause, Data, Effect, Option, Schema, SchemaGetter } from "effect"; -import { waitlist } from "#/modules/waitlist/tables"; -import { errorEvidenceFrom } from "#/lib/error-evidence"; -import { Database } from "#/server/database.server"; -import { encodePublicError } from "#/server/public-error"; - -const email = Schema.String.check( - Schema.isMaxLength(254), - Schema.isPattern(/^[^\s@]+@[^\s@]+\.[^\s@]+$/), -).pipe( - Schema.decode({ - decode: SchemaGetter.transform((value) => value.trim().toLowerCase()), - encode: SchemaGetter.transform((value) => value), - }), - Schema.brand("WaitlistEmail"), -); - -const WaitlistEnrollment = Schema.Struct({ email }); -type WaitlistEnrollment = typeof WaitlistEnrollment.Type; - -export class WaitlistDatabaseFailure extends Data.TaggedError( - "WaitlistDatabaseFailure", -)<{ readonly cause: unknown }> { - readonly publicErrorCategory = "internal" as const; -} - -class WaitlistValidation extends Data.TaggedError("WaitlistValidation")<{ - readonly cause: unknown; -}> { - readonly publicErrorCategory = "validation" as const; -} - -function isDuplicateEnrollment(cause: { readonly cause: unknown }) { - if (errorEvidenceFrom(cause).code === "23505") return true; - if (!Cause.isCause(cause.cause)) return false; - const failure = Cause.findErrorOption(cause.cause); - return ( - Option.isSome(failure) && errorEvidenceFrom(failure.value).code === "23505" - ); -} - -export const enrollWaitlist = Effect.fn("Waitlist.enroll")(function* ( - enrollment: WaitlistEnrollment, -) { - const database = yield* Database; - yield* database.drizzle - .insert(waitlist) - .values({ email: enrollment.email }) - .pipe( - Effect.catchIf(isDuplicateEnrollment, () => Effect.void), - Effect.tapError((cause) => Effect.logError("waitlist insert", cause)), - Effect.mapError((cause) => new WaitlistDatabaseFailure({ cause })), - ); - return { ok: true } as const; -}); - -function errorResponse(cause: unknown) { - const error = encodePublicError(cause); - return Response.json( - { ok: false }, - { status: error.code === "VALIDATION_FAILED" ? 400 : 500 }, - ); -} - -export const handleWaitlistRequest = Effect.fn("Waitlist.handleRequest")( - function* (request: Request) { - const body = yield* Effect.promise(() => - request.json().catch(() => null), - ); - const enrollment = yield* Effect.result( - Schema.decodeUnknownEffect(WaitlistEnrollment)(body).pipe( - Effect.mapError((cause) => new WaitlistValidation({ cause })), - ), - ); - if (enrollment._tag === "Failure") { - return errorResponse(enrollment.failure); - } - return yield* Effect.match(enrollWaitlist(enrollment.success), { - onFailure: errorResponse, - onSuccess: Response.json, - }); - }, -); diff --git a/dashboard/src/routeTree.gen.ts b/dashboard/src/routeTree.gen.ts index 22e1299ebb..77cb4fe786 100644 --- a/dashboard/src/routeTree.gen.ts +++ b/dashboard/src/routeTree.gen.ts @@ -15,10 +15,6 @@ import { Route as ProtectedCloudRouteRouteImport } from './routes/_protected/clo import { Route as ProtectedDashboardRouteImport } from './routes/_protected/dashboard' import { Route as PublicIndexRouteImport } from './routes/_public/index' import { Route as PublicAuthRouteImport } from './routes/_public/auth' -import { Route as PublicDocsRouteImport } from './routes/_public/docs' -import { Route as PublicHomeRouteImport } from './routes/_public/home' -import { Route as PublicPricingRouteImport } from './routes/_public/pricing' -import { Route as ApiWaitlistRouteImport } from './routes/api/waitlist' import { Route as ProtectedCloudIndexRouteImport } from './routes/_protected/cloud/index' import { Route as ProtectedCloudOrganizationSlugRouteRouteImport } from './routes/_protected/cloud/$organizationSlug/route' import { Route as ApiAuthSplatRouteImport } from './routes/api/auth/$' @@ -35,7 +31,6 @@ import { Route as ProtectedCloudOrganizationSlugProjectProjectSlugRouteRouteImpo import { Route as ProtectedCloudOrganizationSlugProjectNewRouteImport } from './routes/_protected/cloud/$organizationSlug/_project/new' import { Route as ProtectedCloudOrganizationSlugOrgChar126IndexRouteImport } from './routes/_protected/cloud/$organizationSlug/_org/~/index' import { Route as ProtectedCloudOrganizationSlugOrgChar126BillingRouteImport } from './routes/_protected/cloud/$organizationSlug/_org/~/billing' -import { Route as ProtectedCloudOrganizationSlugOrgChar126LogsRouteImport } from './routes/_protected/cloud/$organizationSlug/_org/~/logs' import { Route as ProtectedCloudOrganizationSlugOrgChar126SettingsRouteImport } from './routes/_protected/cloud/$organizationSlug/_org/~/settings' import { Route as ProtectedCloudOrganizationSlugProjectProjectSlugIndexRouteImport } from './routes/_protected/cloud/$organizationSlug/_project/$projectSlug/index' import { Route as ProtectedCloudOrganizationSlugProjectProjectSlugEnvironmentSlugRouteRouteImport } from './routes/_protected/cloud/$organizationSlug/_project/$projectSlug/$environmentSlug/route' @@ -76,26 +71,6 @@ const PublicAuthRoute = PublicAuthRouteImport.update({ path: '/auth', getParentRoute: () => PublicRouteRoute, } as any) -const PublicDocsRoute = PublicDocsRouteImport.update({ - id: '/docs', - path: '/docs', - getParentRoute: () => PublicRouteRoute, -} as any) -const PublicHomeRoute = PublicHomeRouteImport.update({ - id: '/home', - path: '/home', - getParentRoute: () => PublicRouteRoute, -} as any) -const PublicPricingRoute = PublicPricingRouteImport.update({ - id: '/pricing', - path: '/pricing', - getParentRoute: () => PublicRouteRoute, -} as any) -const ApiWaitlistRoute = ApiWaitlistRouteImport.update({ - id: '/api/waitlist', - path: '/api/waitlist', - getParentRoute: () => rootRouteImport, -} as any) const ProtectedCloudIndexRoute = ProtectedCloudIndexRouteImport.update({ id: '/', path: '/', @@ -181,12 +156,6 @@ const ProtectedCloudOrganizationSlugOrgChar126BillingRoute = path: '/~/billing', getParentRoute: () => ProtectedCloudOrganizationSlugOrgRouteRoute, } as any) -const ProtectedCloudOrganizationSlugOrgChar126LogsRoute = - ProtectedCloudOrganizationSlugOrgChar126LogsRouteImport.update({ - id: '/~/logs', - path: '/~/logs', - getParentRoute: () => ProtectedCloudOrganizationSlugOrgRouteRoute, - } as any) const ProtectedCloudOrganizationSlugOrgChar126SettingsRoute = ProtectedCloudOrganizationSlugOrgChar126SettingsRouteImport.update({ id: '/~/settings', @@ -283,10 +252,6 @@ export interface FileRoutesByFullPath { '/cloud': typeof ProtectedCloudRouteRouteWithChildren '/dashboard': typeof ProtectedDashboardRoute '/auth': typeof PublicAuthRoute - '/docs': typeof PublicDocsRoute - '/home': typeof PublicHomeRoute - '/pricing': typeof PublicPricingRoute - '/api/waitlist': typeof ApiWaitlistRoute '/cloud/$organizationSlug': typeof ProtectedCloudOrganizationSlugRouteRouteWithChildren '/api/auth/$': typeof ApiAuthSplatRoute '/api/auth/github': typeof ApiAuthGithubRoute @@ -301,7 +266,6 @@ export interface FileRoutesByFullPath { '/cloud/$organizationSlug/new': typeof ProtectedCloudOrganizationSlugProjectNewRoute '/cloud/$organizationSlug/$projectSlug/$environmentSlug': typeof ProtectedCloudOrganizationSlugProjectProjectSlugEnvironmentSlugRouteRouteWithChildren '/cloud/$organizationSlug/~/billing': typeof ProtectedCloudOrganizationSlugOrgChar126BillingRoute - '/cloud/$organizationSlug/~/logs': typeof ProtectedCloudOrganizationSlugOrgChar126LogsRoute '/cloud/$organizationSlug/~/settings': typeof ProtectedCloudOrganizationSlugOrgChar126SettingsRoute '/cloud/$organizationSlug/~/': typeof ProtectedCloudOrganizationSlugOrgChar126IndexRoute '/cloud/$organizationSlug/$projectSlug/': typeof ProtectedCloudOrganizationSlugProjectProjectSlugIndexRoute @@ -317,10 +281,6 @@ export interface FileRoutesByTo { '/': typeof PublicIndexRoute '/dashboard': typeof ProtectedDashboardRoute '/auth': typeof PublicAuthRoute - '/docs': typeof PublicDocsRoute - '/home': typeof PublicHomeRoute - '/pricing': typeof PublicPricingRoute - '/api/waitlist': typeof ApiWaitlistRoute '/cloud/$organizationSlug': typeof ProtectedCloudOrganizationSlugRouteRouteWithChildren '/api/auth/$': typeof ApiAuthSplatRoute '/api/auth/github': typeof ApiAuthGithubRoute @@ -334,7 +294,6 @@ export interface FileRoutesByTo { '/cloud/$organizationSlug/new': typeof ProtectedCloudOrganizationSlugProjectNewRoute '/cloud/$organizationSlug/$projectSlug/$environmentSlug': typeof ProtectedCloudOrganizationSlugProjectProjectSlugEnvironmentSlugCanvasIndexRoute '/cloud/$organizationSlug/~/billing': typeof ProtectedCloudOrganizationSlugOrgChar126BillingRoute - '/cloud/$organizationSlug/~/logs': typeof ProtectedCloudOrganizationSlugOrgChar126LogsRoute '/cloud/$organizationSlug/~/settings': typeof ProtectedCloudOrganizationSlugOrgChar126SettingsRoute '/cloud/$organizationSlug/~': typeof ProtectedCloudOrganizationSlugOrgChar126IndexRoute '/cloud/$organizationSlug/$projectSlug': typeof ProtectedCloudOrganizationSlugProjectProjectSlugIndexRoute @@ -352,10 +311,6 @@ export interface FileRoutesById { '/_protected/cloud': typeof ProtectedCloudRouteRouteWithChildren '/_protected/dashboard': typeof ProtectedDashboardRoute '/_public/auth': typeof PublicAuthRoute - '/_public/docs': typeof PublicDocsRoute - '/_public/home': typeof PublicHomeRoute - '/_public/pricing': typeof PublicPricingRoute - '/api/waitlist': typeof ApiWaitlistRoute '/_public/': typeof PublicIndexRoute '/_protected/cloud/$organizationSlug': typeof ProtectedCloudOrganizationSlugRouteRouteWithChildren '/api/auth/$': typeof ApiAuthSplatRoute @@ -373,7 +328,6 @@ export interface FileRoutesById { '/_protected/cloud/$organizationSlug/_project/new': typeof ProtectedCloudOrganizationSlugProjectNewRoute '/_protected/cloud/$organizationSlug/_project/$projectSlug/$environmentSlug': typeof ProtectedCloudOrganizationSlugProjectProjectSlugEnvironmentSlugRouteRouteWithChildren '/_protected/cloud/$organizationSlug/_org/~/billing': typeof ProtectedCloudOrganizationSlugOrgChar126BillingRoute - '/_protected/cloud/$organizationSlug/_org/~/logs': typeof ProtectedCloudOrganizationSlugOrgChar126LogsRoute '/_protected/cloud/$organizationSlug/_org/~/settings': typeof ProtectedCloudOrganizationSlugOrgChar126SettingsRoute '/_protected/cloud/$organizationSlug/_org/~/': typeof ProtectedCloudOrganizationSlugOrgChar126IndexRoute '/_protected/cloud/$organizationSlug/_project/$projectSlug/': typeof ProtectedCloudOrganizationSlugProjectProjectSlugIndexRoute @@ -393,10 +347,6 @@ export interface FileRouteTypes { | '/cloud' | '/dashboard' | '/auth' - | '/docs' - | '/home' - | '/pricing' - | '/api/waitlist' | '/cloud/$organizationSlug' | '/api/auth/$' | '/api/auth/github' @@ -411,7 +361,6 @@ export interface FileRouteTypes { | '/cloud/$organizationSlug/new' | '/cloud/$organizationSlug/$projectSlug/$environmentSlug' | '/cloud/$organizationSlug/~/billing' - | '/cloud/$organizationSlug/~/logs' | '/cloud/$organizationSlug/~/settings' | '/cloud/$organizationSlug/~/' | '/cloud/$organizationSlug/$projectSlug/' @@ -427,10 +376,6 @@ export interface FileRouteTypes { | '/' | '/dashboard' | '/auth' - | '/docs' - | '/home' - | '/pricing' - | '/api/waitlist' | '/cloud/$organizationSlug' | '/api/auth/$' | '/api/auth/github' @@ -444,7 +389,6 @@ export interface FileRouteTypes { | '/cloud/$organizationSlug/new' | '/cloud/$organizationSlug/$projectSlug/$environmentSlug' | '/cloud/$organizationSlug/~/billing' - | '/cloud/$organizationSlug/~/logs' | '/cloud/$organizationSlug/~/settings' | '/cloud/$organizationSlug/~' | '/cloud/$organizationSlug/$projectSlug' @@ -461,10 +405,6 @@ export interface FileRouteTypes { | '/_protected/cloud' | '/_protected/dashboard' | '/_public/auth' - | '/_public/docs' - | '/_public/home' - | '/_public/pricing' - | '/api/waitlist' | '/_public/' | '/_protected/cloud/$organizationSlug' | '/api/auth/$' @@ -482,7 +422,6 @@ export interface FileRouteTypes { | '/_protected/cloud/$organizationSlug/_project/new' | '/_protected/cloud/$organizationSlug/_project/$projectSlug/$environmentSlug' | '/_protected/cloud/$organizationSlug/_org/~/billing' - | '/_protected/cloud/$organizationSlug/_org/~/logs' | '/_protected/cloud/$organizationSlug/_org/~/settings' | '/_protected/cloud/$organizationSlug/_org/~/' | '/_protected/cloud/$organizationSlug/_project/$projectSlug/' @@ -499,7 +438,6 @@ export interface FileRouteTypes { export interface RootRouteChildren { ProtectedRouteRoute: typeof ProtectedRouteRouteWithChildren PublicRouteRoute: typeof PublicRouteRouteWithChildren - ApiWaitlistRoute: typeof ApiWaitlistRoute ApiAuthSplatRoute: typeof ApiAuthSplatRoute ApiAuthGithubRoute: typeof ApiAuthGithubRoute ApiEnrollTokenRoute: typeof ApiEnrollTokenRouteWithChildren @@ -553,34 +491,6 @@ declare module '@tanstack/react-router' { preLoaderRoute: typeof PublicAuthRouteImport parentRoute: typeof PublicRouteRoute } - '/_public/docs': { - id: '/_public/docs' - path: '/docs' - fullPath: '/docs' - preLoaderRoute: typeof PublicDocsRouteImport - parentRoute: typeof PublicRouteRoute - } - '/_public/home': { - id: '/_public/home' - path: '/home' - fullPath: '/home' - preLoaderRoute: typeof PublicHomeRouteImport - parentRoute: typeof PublicRouteRoute - } - '/_public/pricing': { - id: '/_public/pricing' - path: '/pricing' - fullPath: '/pricing' - preLoaderRoute: typeof PublicPricingRouteImport - parentRoute: typeof PublicRouteRoute - } - '/api/waitlist': { - id: '/api/waitlist' - path: '/api/waitlist' - fullPath: '/api/waitlist' - preLoaderRoute: typeof ApiWaitlistRouteImport - parentRoute: typeof rootRouteImport - } '/_protected/cloud/': { id: '/_protected/cloud/' path: '/' @@ -693,13 +603,6 @@ declare module '@tanstack/react-router' { preLoaderRoute: typeof ProtectedCloudOrganizationSlugOrgChar126BillingRouteImport parentRoute: typeof ProtectedCloudOrganizationSlugOrgRouteRoute } - '/_protected/cloud/$organizationSlug/_org/~/logs': { - id: '/_protected/cloud/$organizationSlug/_org/~/logs' - path: '/~/logs' - fullPath: '/cloud/$organizationSlug/~/logs' - preLoaderRoute: typeof ProtectedCloudOrganizationSlugOrgChar126LogsRouteImport - parentRoute: typeof ProtectedCloudOrganizationSlugOrgRouteRoute - } '/_protected/cloud/$organizationSlug/_org/~/settings': { id: '/_protected/cloud/$organizationSlug/_org/~/settings' path: '/~/settings' @@ -782,7 +685,6 @@ declare module '@tanstack/react-router' { interface ProtectedCloudOrganizationSlugOrgRouteRouteChildren { ProtectedCloudOrganizationSlugOrgChar126BillingRoute: typeof ProtectedCloudOrganizationSlugOrgChar126BillingRoute - ProtectedCloudOrganizationSlugOrgChar126LogsRoute: typeof ProtectedCloudOrganizationSlugOrgChar126LogsRoute ProtectedCloudOrganizationSlugOrgChar126SettingsRoute: typeof ProtectedCloudOrganizationSlugOrgChar126SettingsRoute ProtectedCloudOrganizationSlugOrgChar126IndexRoute: typeof ProtectedCloudOrganizationSlugOrgChar126IndexRoute ProtectedCloudOrganizationSlugOrgChar126ServersIndexRoute: typeof ProtectedCloudOrganizationSlugOrgChar126ServersIndexRoute @@ -792,8 +694,6 @@ const ProtectedCloudOrganizationSlugOrgRouteRouteChildren: ProtectedCloudOrganiz { ProtectedCloudOrganizationSlugOrgChar126BillingRoute: ProtectedCloudOrganizationSlugOrgChar126BillingRoute, - ProtectedCloudOrganizationSlugOrgChar126LogsRoute: - ProtectedCloudOrganizationSlugOrgChar126LogsRoute, ProtectedCloudOrganizationSlugOrgChar126SettingsRoute: ProtectedCloudOrganizationSlugOrgChar126SettingsRoute, ProtectedCloudOrganizationSlugOrgChar126IndexRoute: @@ -936,17 +836,11 @@ const ProtectedRouteRouteWithChildren = ProtectedRouteRoute._addFileChildren( interface PublicRouteRouteChildren { PublicAuthRoute: typeof PublicAuthRoute - PublicDocsRoute: typeof PublicDocsRoute - PublicHomeRoute: typeof PublicHomeRoute - PublicPricingRoute: typeof PublicPricingRoute PublicIndexRoute: typeof PublicIndexRoute } const PublicRouteRouteChildren: PublicRouteRouteChildren = { PublicAuthRoute: PublicAuthRoute, - PublicDocsRoute: PublicDocsRoute, - PublicHomeRoute: PublicHomeRoute, - PublicPricingRoute: PublicPricingRoute, PublicIndexRoute: PublicIndexRoute, } @@ -969,7 +863,6 @@ const ApiEnrollTokenRouteWithChildren = ApiEnrollTokenRoute._addFileChildren( const rootRouteChildren: RootRouteChildren = { ProtectedRouteRoute: ProtectedRouteRouteWithChildren, PublicRouteRoute: PublicRouteRouteWithChildren, - ApiWaitlistRoute: ApiWaitlistRoute, ApiAuthSplatRoute: ApiAuthSplatRoute, ApiAuthGithubRoute: ApiAuthGithubRoute, ApiEnrollTokenRoute: ApiEnrollTokenRouteWithChildren, diff --git a/dashboard/src/routes/_protected/cloud/$organizationSlug/_org/-components/DashboardAccountMenu.tsx b/dashboard/src/routes/_protected/cloud/$organizationSlug/_org/-components/DashboardAccountMenu.tsx index 07910975d2..20a0c9ddd4 100644 --- a/dashboard/src/routes/_protected/cloud/$organizationSlug/_org/-components/DashboardAccountMenu.tsx +++ b/dashboard/src/routes/_protected/cloud/$organizationSlug/_org/-components/DashboardAccountMenu.tsx @@ -3,14 +3,12 @@ import { BookOpenIcon, ChevronsUpDownIcon, CheckIcon, - HomeIcon, LifeBuoyIcon, LogOutIcon, SunMoonIcon, UserIcon, } from "lucide-react"; import { Button } from "#/components/ui/button"; -import { Link } from "@tanstack/react-router"; import { getSignOutErrorMessage, useAuth, @@ -100,10 +98,6 @@ export default function DashboardAccountMenu({ - }> - - Home Page - Documentation diff --git a/dashboard/src/routes/_protected/cloud/$organizationSlug/_org/~/logs.tsx b/dashboard/src/routes/_protected/cloud/$organizationSlug/_org/~/logs.tsx deleted file mode 100644 index 6c1bc86782..0000000000 --- a/dashboard/src/routes/_protected/cloud/$organizationSlug/_org/~/logs.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { createFileRoute } from "@tanstack/react-router"; -import { ProjectRequiredState } from "#/components/project-required-state"; - -export const Route = createFileRoute( - "/_protected/cloud/$organizationSlug/_org/~/logs", -)({ - component: RouteComponent, -}); - -function RouteComponent() { - const { organizationSlug } = Route.useParams(); - - return ( - - ); -} diff --git a/dashboard/src/routes/_public/-components/AppHeaderActions.tsx b/dashboard/src/routes/_public/-components/AppHeaderActions.tsx deleted file mode 100644 index 2d676bc058..0000000000 --- a/dashboard/src/routes/_public/-components/AppHeaderActions.tsx +++ /dev/null @@ -1,73 +0,0 @@ -import { useState } from 'react' -import { Link, useHydrated } from '@tanstack/react-router' -import { ArrowRightIcon } from 'lucide-react' -import { toast } from 'sonner' -import { - getSignOutErrorMessage, - useAuth, - useSignOut, -} from '#/auth/auth.hooks' -import { Button } from '#/components/ui/button' -import { buttonVariants } from '#/components/ui/button-variants' -import { Spinner } from '#/components/ui/spinner' -import { Result } from 'effect' - -export default function AppHeaderActions() { - const auth = useAuth() - const isHydrated = useHydrated() - const signOut = useSignOut() - const [isSigningOut, setIsSigningOut] = useState(false) - - async function handleSignOut() { - setIsSigningOut(true) - - const result = await signOut() - - if (Result.isFailure(result)) { - toast.error(getSignOutErrorMessage(result.failure)) - } - - setIsSigningOut(false) - } - - return ( -
- {auth?.user ? ( - <> - - Dashboard - - - - ) : ( - <> - - Sign in - - - Self-host peacefully - - - - )} -
- ) -} diff --git a/dashboard/src/routes/_public/-components/Footer.tsx b/dashboard/src/routes/_public/-components/Footer.tsx deleted file mode 100644 index 80394855a9..0000000000 --- a/dashboard/src/routes/_public/-components/Footer.tsx +++ /dev/null @@ -1,26 +0,0 @@ -import { Link } from '@tanstack/react-router' -import { PloyzLogo } from '#/components/icons/ployz-logo' - -export default function Footer() { - const year = new Date().getFullYear() - - return ( -
-
-

- A calmer way to run software on infrastructure you control. -

- -
- - - © {year} Ployz -
-
-
- ) -} diff --git a/dashboard/src/routes/_public/-components/Header.tsx b/dashboard/src/routes/_public/-components/Header.tsx deleted file mode 100644 index 4382d08ebc..0000000000 --- a/dashboard/src/routes/_public/-components/Header.tsx +++ /dev/null @@ -1,16 +0,0 @@ -import { Link } from '@tanstack/react-router' -import { PloyzLogo } from '#/components/icons/ployz-logo' -import { MarketingPrimaryAction } from '#/routes/_public/-components/MarketingPrimaryAction' - -export default function Header() { - return ( -
- -
- ) -} diff --git a/dashboard/src/routes/_public/-components/LoginDialog.tsx b/dashboard/src/routes/_public/-components/LoginPanel.tsx similarity index 76% rename from dashboard/src/routes/_public/-components/LoginDialog.tsx rename to dashboard/src/routes/_public/-components/LoginPanel.tsx index 6a22f6f846..b3491bb042 100644 --- a/dashboard/src/routes/_public/-components/LoginDialog.tsx +++ b/dashboard/src/routes/_public/-components/LoginPanel.tsx @@ -3,31 +3,16 @@ import { useState, useTransition, type FormEvent, - type MouseEvent, - type ReactNode, } from "react"; import { GitHubMarkIcon } from "#/components/icons/github-mark"; import { Button } from "#/components/ui/button"; import { - Dialog, - DialogContent, - DialogDescription, - DialogHeader, - DialogTitle, -} from "#/components/ui/dialog"; -import { - Link, useHydrated, useRouter, useRouterState, } from "@tanstack/react-router"; import { Spinner } from "#/components/ui/spinner"; import { authClient } from "#/auth/auth-client"; -import { - buttonVariants, - type ButtonVariants, -} from "#/components/ui/button-variants"; -import { cn } from "#/lib/utils"; export function LoginPanel() { const isHydrated = useHydrated(); @@ -167,51 +152,3 @@ export function LoginPanel() { ); } - -type LoginDialogProps = Pick & { - children?: ReactNode; - className?: string; -}; - -export default function LoginDialog({ - children = "Sign in", - className, - size = "sm", - variant = "default", -}: LoginDialogProps) { - const isHydrated = useHydrated(); - const [open, setOpen] = useState(false); - - function handleTriggerClick(event: MouseEvent) { - if (!isHydrated) { - return; - } - - event.preventDefault(); - setOpen(true); - } - - return ( - - - {children} - - - - Sign in - - Sign in with GitHub to continue. - - - - - - ); -} diff --git a/dashboard/src/routes/_public/-components/MarketingPrimaryAction.tsx b/dashboard/src/routes/_public/-components/MarketingPrimaryAction.tsx deleted file mode 100644 index 6e67466b21..0000000000 --- a/dashboard/src/routes/_public/-components/MarketingPrimaryAction.tsx +++ /dev/null @@ -1,44 +0,0 @@ -import { Link } from '@tanstack/react-router' -import { ArrowRightIcon } from 'lucide-react' -import { useAuth } from '#/auth/auth.hooks' -import { buttonVariants } from '#/components/ui/button-variants' -import { cn } from '#/lib/utils' -import LoginDialog from '#/routes/_public/-components/LoginDialog' - -type MarketingPrimaryActionProps = { - showArrow?: boolean -} - -export function MarketingPrimaryAction({ - showArrow = false, -}: MarketingPrimaryActionProps) { - const auth = useAuth() - const className = 'marketing-action marketing-action--primary' - const content = ( - <> - {auth?.user ? 'Dashboard' : 'Start with Ployz'} - {showArrow ? : null} - - ) - - if (auth?.user) { - return ( - - {content} - - ) - } - - return ( - - {content} - - ) -} diff --git a/dashboard/src/routes/_public/-components/ThemeToggle.tsx b/dashboard/src/routes/_public/-components/ThemeToggle.tsx deleted file mode 100644 index 37caff6f2e..0000000000 --- a/dashboard/src/routes/_public/-components/ThemeToggle.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import { ToggleGroup, ToggleGroupItem } from '#/components/ui/toggle-group' -import { useTheme } from '#/components/theme-provider' - -export default function ThemeToggle() { - const { userTheme, setTheme } = useTheme() - - return ( - { - const nextTheme = value[0] - - if ( - nextTheme === 'light' || - nextTheme === 'dark' || - nextTheme === 'system' - ) { - setTheme(nextTheme) - } - }} - variant="outline" - size="sm" - aria-label="Theme mode" - > - - Light - - - Dark - - - Auto - - - ) -} diff --git a/dashboard/src/routes/_public/-components/home/BigCTA.tsx b/dashboard/src/routes/_public/-components/home/BigCTA.tsx deleted file mode 100644 index 8d4ac27e1d..0000000000 --- a/dashboard/src/routes/_public/-components/home/BigCTA.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import { MarketingPrimaryAction } from '#/routes/_public/-components/MarketingPrimaryAction' - -export function BigCTA() { - return ( -
-
-

Keep the platform experience. Own where it runs.

-

- Connect your first server and ship through the same workflow you can - grow with. -

- -
-
- ) -} diff --git a/dashboard/src/routes/_public/-components/home/Compare.tsx b/dashboard/src/routes/_public/-components/home/Compare.tsx deleted file mode 100644 index c079aa5435..0000000000 --- a/dashboard/src/routes/_public/-components/home/Compare.tsx +++ /dev/null @@ -1,62 +0,0 @@ -const comparisons = [ - ['Git deployments', 'Repository deploys with automatic deploys', 'Repository deploys to your servers'], - ['PR environments', 'Temporary environment per pull request', 'Temporary environment with isolated data'], - ['Workload location', 'Railway-managed regions', 'Servers you connect'], - ['Rollback scope', 'Previous image and custom variables', 'App release and database snapshot'], - ['Operating model', 'Hosted platform', 'Managed dashboard or open-source core'], -] as const - -export function Compare() { - return ( -
-
-
-

The familiar workflow, with a different boundary.

-

- If Railway is the workflow you know, Ployz changes where the - workloads run and how much of the stack you can own. -

-
-
- -
- - - - - - - - - - - {comparisons.map(([label, railway, ployz]) => ( - - - - - - ))} - -
- Railway and Ployz deployment boundary comparison -
BoundaryRailwayPloyz
{label} - Railway - {railway} - - Ployz - {ployz} -
-
- -

- Railway capabilities checked against its official{' '} - - deployment actions - {' '} - and environments{' '} - documentation. -

-
- ) -} diff --git a/dashboard/src/routes/_public/-components/home/Efficiency.tsx b/dashboard/src/routes/_public/-components/home/Efficiency.tsx deleted file mode 100644 index 4feda50cd1..0000000000 --- a/dashboard/src/routes/_public/-components/home/Efficiency.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { ArrowRightIcon } from 'lucide-react' - -export function Efficiency() { - return ( -
-
-

Managed when you want it. Open when you need it.

-
-
-

- Use Ployz Cloud for the managed dashboard, or run the open-source core - yourself. Either way, the workloads stay on your hardware. -

- - Explore the open-source core - -
-
- ) -} diff --git a/dashboard/src/routes/_public/-components/home/FeaturesJourney.tsx b/dashboard/src/routes/_public/-components/home/FeaturesJourney.tsx deleted file mode 100644 index 1ebebcde6a..0000000000 --- a/dashboard/src/routes/_public/-components/home/FeaturesJourney.tsx +++ /dev/null @@ -1,90 +0,0 @@ -type Benefit = { - title: string - description: string -} - -const benefits: ReadonlyArray = [ - { - title: 'See the whole environment.', - description: - 'Build and connect your stack on a visual canvas. Services, data, networking, and configuration stay visible at a glance.', - }, - { - title: 'Deploy without the platform work.', - description: - 'Connect a repo, choose where it runs, and push. Ployz handles builds, configuration, health checks, previews, and rollout—without a new stack to learn.', - }, - { - title: 'Networking is ready when your app is.', - description: - 'Private connections, public endpoints, TLS, and load balancing come together with the environment instead of becoming a separate project.', - }, - { - title: 'Grow without a platform rewrite.', - description: - 'Start on a single Linux server. Add cloud regions, bare metal, or a home lab later without changing how your team ships.', - }, - { - title: 'See problems where you ship.', - description: - 'Logs, metrics, health, alerts, and deployment history live together, so you can see what changed and what happened next.', - }, - { - title: 'Give every change room to breathe.', - description: - 'Spin up an environment for every pull request, review it with isolated data, and roll back the app and its state together when you need to.', - }, -] - -export function FeaturesJourney() { - return ( -
-
    - {benefits.map((benefit, index) => ( -
  • -
    -

    {benefit.title}

    -

    {benefit.description}

    -
    - {index === 0 ? : null} -
  • - ))} -
-
- ) -} - -function EnvironmentCanvas() { - return ( -
-
One environment, visible on one canvas
- - - - - - - - - Web - - - - API - - - - Worker - - - - Database - - -
- ) -} diff --git a/dashboard/src/routes/_public/-components/home/Hero.tsx b/dashboard/src/routes/_public/-components/home/Hero.tsx deleted file mode 100644 index 019ad82b00..0000000000 --- a/dashboard/src/routes/_public/-components/home/Hero.tsx +++ /dev/null @@ -1,37 +0,0 @@ -import { GitHubMarkIcon } from '#/components/icons/github-mark' -import { buttonVariants } from '#/components/ui/button-variants' -import { cn } from '#/lib/utils' -import { MarketingPrimaryAction } from '#/routes/_public/-components/MarketingPrimaryAction' - -export function Hero() { - return ( -
-
-

Ployz Cloud · open beta

-

The platform experience, on your servers.

-

- Connect your repo and your servers. Ployz takes care of the path from - preview to production, without taking over your infrastructure. -

- - - -

- Managed dashboard or open-source core. Your hardware either way. -

-
-
- ) -} diff --git a/dashboard/src/routes/_public/-components/home/HomePage.test.tsx b/dashboard/src/routes/_public/-components/home/HomePage.test.tsx deleted file mode 100644 index ffef6e951f..0000000000 --- a/dashboard/src/routes/_public/-components/home/HomePage.test.tsx +++ /dev/null @@ -1,25 +0,0 @@ -// @vitest-environment jsdom -import { cleanup, render, screen } from "@testing-library/react"; -import { - createMemoryHistory, - createRootRoute, - createRouter, - RouterProvider, -} from "@tanstack/react-router"; -import { afterEach, expect, it } from "vitest"; -import { HomePage } from "./HomePage"; - -afterEach(cleanup); - -it("renders the features menu, agent section, and sign-up path", async () => { - const router = createRouter({ - routeTree: createRootRoute({ component: HomePage }), - history: createMemoryHistory({ initialEntries: ["/"] }), - }); - render(); - expect(await screen.findByRole("button", { name: "Features" })).toBeTruthy(); - expect(screen.getByRole("link", { name: /Environment clones/ })).toBeTruthy(); - expect(screen.getByRole("heading", { name: /Give agents real power/ })).toBeTruthy(); - expect(screen.getAllByRole("link", { name: "Climb aboard" })[0]?.getAttribute("href")).toBe("/auth"); - expect(screen.queryByRole("progressbar")).toBeNull(); -}); diff --git a/dashboard/src/routes/_public/-components/home/HomePage.tsx b/dashboard/src/routes/_public/-components/home/HomePage.tsx deleted file mode 100644 index d4acc6e1fe..0000000000 --- a/dashboard/src/routes/_public/-components/home/HomePage.tsx +++ /dev/null @@ -1,418 +0,0 @@ -import { Link } from "@tanstack/react-router"; -import { - Anchor, - ArrowRight, - Bot, - ChevronDown, - Copy, - Eye, - HardDrive, - Map, - RotateCcw, - Telescope, - Ship, -} from "lucide-react"; -import { GitHubMarkIcon } from "#/components/icons/github-mark"; -import { PirateFlag } from "#/components/icons/pirate-flag"; -import { runtimeRepoHref } from "#/components/marketing/links"; - -// ponytail: nav mega-menu is pure CSS (hover + focus-within). No JS state. -// Vocabulary is "environment", never "branch". Only shipped features are listed. -const featureMenu = [ - { - group: "The shipyard", - items: [ - ["Canvas", "Drop a box. Get a service.", "#ways"], - ["CLI", "One binary, every action", "#ways"], - ["Agents", "Real power, short leash", "#agents"], - ], - }, - { - group: "The open sea", - items: [ - ["Your own servers", "VPS, bare metal, the box under the desk", "#own"], - ["Environment clones", "Data included. Seconds.", "#clone"], - ["Snapshots & rollback", "Every deploy is undoable", "#clone"], - ["Promote", "Review to production, one click", "#clone"], - ], - }, - { - group: "The captain's quarters", - items: [ - ["Preview then apply", "Every deploy shows its plan", "#ship"], - ["Ingress & TLS", "Public routes, private mesh", "#ship"], - ["Logs & metrics", "Next to the deploy that caused them", "#ship"], - ["Open source", "Inspect the hull any time", runtimeRepoHref], - ], - }, -] as const; - -const stacks = [ - "Node", "Bun", "Python", "Go", "Rust", "PHP", "Ruby", ".NET", - "Postgres", "MySQL", "Redis", "anything with a Dockerfile", -] as const; - -// ponytail: Upsun's "The specs" table. Numbers say "seconds" until a real run is on file. -const specs = [ - ["Environment clone", "Seconds, data included", "vs 30s to 24h elsewhere"], - ["Rollback", "Any snapshot, seconds", "every deploy is undoable"], - ["Clone storage", "0 GB until you write", "copy-on-write, ZFS underneath"], - ["New service on live data", "One rope on the canvas", "staging or production database"], -] as const; - -// ponytail: snippets are deliberately tiny. They prove there are many ways in, not teach the API. -const ways = [ - ["CLI", "terminal", `ployz host bootstrap # add a server`], - ["Agent", "transcript", `> promote review-42 → production\n awaiting your approval…`], -] as const; - -// ponytail: Upsun's "built for how teams actually ship". One sentence per card, written as a scene. -const scenes = [ - [Copy, "A migration looks scary.", "Clone production, run it there, throw the clone away."], - [RotateCcw, "The deploy went sideways at 2am.", "Roll back to the last snapshot. Go back to bed."], - [Ship, "New checkout service.", "Drop it on the canvas. Rope it to the production database."], - [Bot, "The agent finished.", "It previewed. You read the plan. You press promote."], - [Eye, "Someone asks what changed.", "Logs, metrics and history sit next to the deploy."], - [HardDrive, "The bill arrives.", "It's the server you already own. That's the bill."], -] as const; - -const compare = [ - ["Runs on", "Their regions", "Your YAML", "Your servers"], - ["Environments", "App only", "Build it yourself", "Cloned, data included"], - ["Rollback", "Redeploy and hope", "helm rollback, maybe", "Any snapshot, seconds"], - ["Deploys", "A spinner", "kubectl and prayer", "A plan you read first"], - ["Exit", "Rewrite", "Rewrite", "It's Docker. Walk away."], -] as const; - -const plans = [ - ["Self-host", "$0", "Runtime, CLI, mesh, ingress. Yours."], - ["Free", "$0", "Dashboard, unlimited servers, 2 environments."], - ["Hobby", "$9", "Logs, backups, scheduled jobs, more environments."], - ["Pro", "$29", "Unlimited everything, priority support."], -] as const; - -const faq = [ - ["Is this Kubernetes?", "No. It's Docker machines, a deploy planner, a private mesh and a dashboard. If it runs a container, it runs Ployz."], - ["What servers can I use?", "Any Linux box you can SSH into. Start on one, enrol more with one command."], - ["How far along is it?", "Open beta. Deploy, preview and apply, clones, snapshots and rollback ship today. Review environments on every pull request are next."], -] as const; - -const footerLinks: ReadonlyArray<[string, ReadonlyArray<[string, string]>]> = [ - ["Product", [["Environments", "#clone"], ["Agents", "#agents"], ["Features", "#ship"], ["Pricing", "/pricing"]]], - ["Learn", [["Docs", "/docs"], ["Why own", "#own"], ["Questions", "#faq"]]], - ["Source", [["Runtime", runtimeRepoHref], ["Install script", "https://ployz.sh"]]], -]; - -function SectionHead({ eyebrow, title, line }: { eyebrow: string; title: string; line: string }) { - return ( -
-

{eyebrow}

-

{title}

-

{line}

-
- ); -} - -// ponytail: static SVG diagram. No layout lib; three nodes and two edges is all it needs. -function CloneDiagram() { - return ( - - - - - - - - - - - production - web · api · db - - - - review-42 - same data · new web - - - - production - after · secrets kept - - clone · seconds - promote web - - ); -} - -export function HomePage() { - return ( -
- Skip to content -
- - - ployz™ - - - - Climb aboard
- -
-
-

OPEN-SOURCE DEPLOYMENT. YOUR SERVERS. OPEN BETA.

-

- Production-perfect -
- environments. -
- On your servers. -
- In seconds. - -

-
-

Clone any environment, data included. Deploy it to hardware you own. Roll back when it goes sideways.

-
- - Start deploying
-
-
    -
  • secondsto clone an environment, data included
  • -
  • 0Kubernetes
  • -
  • 1bill, and it's your server's
  • -
-
- -
-
- A pixel-art archipelago: a fortified island for production, a harbour for staging, small islands for review environments, and a lighthouse watching all of it. - - - - - - -
- ONE CLUSTER. MANY ENVIRONMENTS. - The islands are environments. The ship is an agent. -
-
-
    - {stacks.map((s) =>
  • {s}
  • )} -
-
- -
- OWN YOUR SERVERS - CLONE EVERYTHING - READ THE PLAN - LET THE CREW SAIL -
- -
- -
- -
- - - - - - - {specs.map(([feature, capability, note]) => ( - - ))} - -
The specs
FeatureCapabilityNote
{feature}{capability}{note}
-
- -
- -
-
-
Canvasdashboard
- -
- {ways.map(([title, file, snippet]) => ( -
-
{title}{file}
-
{snippet}
-
- ))} -
-
- -
-
- -
-
- AGENT · review-42 - LIVE -
-
{`> preview      plan: update web, run migrate · data loss: none
-> deploy       ✓ web.review-42.harbor.sh · 14s
-> promote      → production · keeps 12 secrets, 2 volumes
-               awaiting captain approval…`}
-
-
    -
  • Preview before apply
  • -
  • Data loss is named
  • -
  • Scope is one environment
  • -
  • You hold the promote button
  • -
-
-
- -
- -
- {scenes.map(([Icon, title, line]) => ( -
-
- ))} -
-
- -
-
-

WHY OWN THE SHIP

-

The cloud was a rental.
Rent is due.

-

A modern server is absurdly fast and absurdly cheap. Bring the €40 box, the rack, or the Ryzen you built for "machine learning".

-
    -
  • 1machine to start
  • -
  • 0registries or YAML required
  • -
  • $0for the runtime, forever
  • -
  • 100%of your data on your disks
  • -
-
-
- -
- - - - - - - - {compare.map(([label, paas, k8s, ployz]) => ( - - ))} - -
Ployz compared with hosted PaaS and Kubernetes
Hosted PaaSKubernetesPloyz
{label}{paas}{k8s}{ployz}
-
- -
- -
- {plans.map(([name, price, blurb]) => ( -
- {name.toUpperCase()} - {price}/mo -

{blurb}

-
- ))} -
- Full pricing
- -
- -
- {faq.map(([q, a]) => ( -
- {q} -

{a}

-
- ))} -
-
- -
-
- -

THE INTERNET NEEDS MORE LITTLE ADVENTURES.

-

Your next deploy
deserves an undo.

- Climb aboard
-
-
- -
-
-
- ployz -

Built for the joy of building.

-
- {footerLinks.map(([heading, links]) => ( - - ))} -
-
- © {new Date().getFullYear()} Ployz. Your ship. Your rules. - No Kubernetes was harmed. It was never here. -
-
-
- ); -} diff --git a/dashboard/src/routes/_public/-components/home/LogosRow.tsx b/dashboard/src/routes/_public/-components/home/LogosRow.tsx deleted file mode 100644 index 2682ae158e..0000000000 --- a/dashboard/src/routes/_public/-components/home/LogosRow.tsx +++ /dev/null @@ -1,19 +0,0 @@ -const infrastructure = ['Cloud VPS', 'Bare metal', 'Home lab'] as const - -export function LogosRow() { - return ( -
-
- One workflow. Your infrastructure. -
    - {infrastructure.map((item) => ( -
  • {item}
  • - ))} -
-
-
- ) -} diff --git a/dashboard/src/routes/_public/-components/home/Pillars.tsx b/dashboard/src/routes/_public/-components/home/Pillars.tsx deleted file mode 100644 index 8b6d449ca5..0000000000 --- a/dashboard/src/routes/_public/-components/home/Pillars.tsx +++ /dev/null @@ -1,20 +0,0 @@ -export function Pillars() { - return ( -
-
-

Your servers stay yours.

-
-

- Run on a cloud VPS, bare metal, or hardware in your own rack. Move - between them without moving the team to a different deployment - workflow. -

-

- Your applications and data stay with your workloads. Ployz manages - the platform work around them. -

-
-
-
- ) -} diff --git a/dashboard/src/routes/_public/-components/home/SectionIntro.tsx b/dashboard/src/routes/_public/-components/home/SectionIntro.tsx deleted file mode 100644 index 2ae60cd76b..0000000000 --- a/dashboard/src/routes/_public/-components/home/SectionIntro.tsx +++ /dev/null @@ -1,13 +0,0 @@ -export function SectionIntro() { - return ( -
-
-

All the platform benefits. None of the lock-in.

-

- Give your team a clear path from an idea to production while your - applications and data stay on infrastructure you control. -

-
-
- ) -} diff --git a/dashboard/src/routes/_public/auth.tsx b/dashboard/src/routes/_public/auth.tsx index f21f8510ae..fe9a4d640a 100644 --- a/dashboard/src/routes/_public/auth.tsx +++ b/dashboard/src/routes/_public/auth.tsx @@ -1,7 +1,7 @@ import { getAuthSession } from '#/auth/auth' import { createFileRoute, redirect } from '@tanstack/react-router' import { buildMarketingMeta } from '#/components/marketing/meta' -import { LoginPanel } from '#/routes/_public/-components/LoginDialog' +import { LoginPanel } from '#/routes/_public/-components/LoginPanel' export const Route = createFileRoute('/_public/auth')({ beforeLoad: async () => { @@ -26,7 +26,7 @@ export const Route = createFileRoute('/_public/auth')({ function RouteComponent() { return ( -
+
diff --git a/dashboard/src/routes/_public/docs.tsx b/dashboard/src/routes/_public/docs.tsx deleted file mode 100644 index 16d70bfc43..0000000000 --- a/dashboard/src/routes/_public/docs.tsx +++ /dev/null @@ -1,241 +0,0 @@ -import { createFileRoute } from '@tanstack/react-router' -import { CloudIcon, GitBranchIcon, ServerIcon, TerminalIcon } from 'lucide-react' -import { - dashboardRepoHref, - runtimeRepoHref, -} from '#/components/marketing/links' -import { buildMarketingMeta } from '#/components/marketing/meta' -import { SiteAction } from '#/components/marketing/SiteAction' -import { buttonVariants } from '#/components/ui/button-variants' -import { - Card, - CardContent, - CardDescription, - CardFooter, - CardHeader, - CardTitle, -} from '#/components/ui/card' -import { Separator } from '#/components/ui/separator' -import { PageHero } from '#/components/marketing/PageHero' -import { CodeBlock } from '#/components/marketing/CodeBlock' -import { Link } from '@tanstack/react-router' - -export const Route = createFileRoute('/_public/docs')({ - head: () => ({ - meta: buildMarketingMeta({ - title: 'Docs - Ployz', - description: - 'Start with one machine, add more when you need to, and use the same Ployz model across cloud and self-hosting.', - }), - }), - component: DocsPage, -}) - -const cliCommands = [ - { - cmd: 'npx ployzctl daemon install', - description: 'Install the Ployz daemon on the current server', - }, - { - cmd: 'ployzctl mesh init', - description: 'Initialize the overlay mesh on this machine', - }, - { - cmd: 'curl -fsSL https://ployz.sh | sh && sudo ployz host bootstrap cloud --cloud-host ployz.dev', - description: 'Enroll another machine with the Cloud bootstrap command', - }, - { - cmd: 'ployzctl deploy preview -f manifest.json', - description: 'Preview a deploy before you apply it', - }, - { - cmd: 'ployzctl deploy -f manifest.json', - description: 'Apply the manifest when the plan looks right', - }, -] - -function DocsPage() { - return ( -
- - -
-
-
- - -
- - Use Ployz Cloud -
- - Good fit if you want the workflow fast: GitHub sign-in, - projects, environments, and hosted billing. - -
- - -

1. Sign in with GitHub

-

2. Create a project and environment

-

3. Add a service from GitHub or a container image

-

4. Deploy now and add servers later if you need them

-
- - - Start in cloud - - -
- - - -
- - Self-host the runtime -
- - Good fit if you want the runtime on your own infrastructure and - care about how workloads move between machines. - -
- - -

1. Provision a Linux server

-

2. Install the runtime and start a mesh

-

3. Enroll more machines with the Cloud bootstrap command

-

4. Preview and apply deploys with the CLI

-
- - - Runtime quickstart - - -
-
-
-
- -
-
-
-

- What Ployz actually gives you -

-

- The strongest part of the product is the operating model, not just - the setup automation. -

-
-
- {[ - { - icon: GitBranchIcon, - title: 'One machine to fleet', - body: 'Start small. Add more machines only when you need the capacity.', - }, - { - icon: TerminalIcon, - title: 'Preview then apply', - body: 'The runtime supports a real preview and apply workflow instead of vague deploy magic.', - }, - { - icon: ServerIcon, - title: 'Replace weak servers', - body: 'Move workloads onto better hardware without turning it into a special migration project.', - }, - { - icon: CloudIcon, - title: 'Review before deploy', - body: 'Stage changes, inspect diffs, then deploy when you are ready instead of shipping blind edits.', - }, - { - icon: TerminalIcon, - title: 'Built-in operational basics', - body: 'Backups, scheduled jobs, branch deploys, and private service networking belong in the platform, not in extra glue code.', - }, - ].map((item) => { - const Icon = item.icon - - return ( - - -
- - {item.title} -
- {item.body} -
-
- ) - })} -
-
-
- -
-
-
- -

CLI quick reference

-
- `# ${c.description}\n${c.cmd}`).join('\n\n')} - /> -
- {cliCommands.map((cmd) => ( -
-

- {cmd.cmd.startsWith('npx ') - ? cmd.cmd.split(' ').slice(1, 3).join(' ') - : cmd.cmd.split(' ').slice(0, 2).join(' ')} -

-

{cmd.description}

-
- ))} -
-
-
- - {/* Links section */} -
-
-

- More resources -

-

- Read the repos directly if you want the raw implementation. -

-
- - Dashboard repo - - - Runtime repo - -
-
-
-
- ) -} diff --git a/dashboard/src/routes/_public/home.tsx b/dashboard/src/routes/_public/home.tsx deleted file mode 100644 index ca36aa8e9c..0000000000 --- a/dashboard/src/routes/_public/home.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import { createFileRoute } from '@tanstack/react-router' -import { buildMarketingMeta } from '#/components/marketing/meta' -import { HomePage } from '#/routes/_public/-components/home/HomePage' - -export const Route = createFileRoute('/_public/home')({ - head: () => ({ - meta: buildMarketingMeta({ - title: 'Ployz — Your ship. Your rules.', - description: - 'Bring your stack and your sense of adventure. Open-source deployment on servers you control. Your ship. Your rules.', - }), - }), - component: HomePage, -}) diff --git a/dashboard/src/routes/_public/index.tsx b/dashboard/src/routes/_public/index.tsx index 901c418d06..33881d4b23 100644 --- a/dashboard/src/routes/_public/index.tsx +++ b/dashboard/src/routes/_public/index.tsx @@ -1,7 +1,8 @@ import { getAuthSession } from '#/auth/auth' -import { createFileRoute, redirect } from '@tanstack/react-router' +import { Link, createFileRoute, redirect } from '@tanstack/react-router' import { buildMarketingMeta } from '#/components/marketing/meta' -import { HomePage } from '#/routes/_public/-components/home/HomePage' +import { PloyzLogo } from '#/components/icons/ployz-logo' +import { buttonVariants } from '#/components/ui/button-variants' export const Route = createFileRoute('/_public/')({ beforeLoad: async () => { @@ -13,10 +14,24 @@ export const Route = createFileRoute('/_public/')({ }, head: () => ({ meta: buildMarketingMeta({ - title: 'Ployz — Your ship. Your rules.', - description: - 'Bring your stack and your sense of adventure. Open-source deployment on servers you control. Your ship. Your rules.', + title: 'Ployz', + description: 'Deploy and run applications on servers you control.', }), }), - component: HomePage, + component: StubLander, }) + +// ponytail: stub until the separate marketing site ships. +function StubLander() { + return ( +
+ +

+ Deploy and run applications on servers you control. +

+ + Sign in + +
+ ) +} diff --git a/dashboard/src/routes/_public/pricing.tsx b/dashboard/src/routes/_public/pricing.tsx deleted file mode 100644 index 906c26bdb4..0000000000 --- a/dashboard/src/routes/_public/pricing.tsx +++ /dev/null @@ -1,277 +0,0 @@ -import { createFileRoute } from '@tanstack/react-router' -import { CheckIcon } from 'lucide-react' -import { - runtimeRepoHref, -} from '#/components/marketing/links' -import { buildMarketingMeta } from '#/components/marketing/meta' -import { SiteAction } from '#/components/marketing/SiteAction' -import { Badge } from '#/components/ui/badge' -import { buttonVariants } from '#/components/ui/button-variants' -import { - Card, - CardContent, - CardDescription, - CardFooter, - CardHeader, - CardTitle, -} from '#/components/ui/card' -import { Separator } from '#/components/ui/separator' -import { Tabs, TabsContent, TabsList, TabsTrigger } from '#/components/ui/tabs' -import { PageHero } from '#/components/marketing/PageHero' -import { CodeBlock } from '#/components/marketing/CodeBlock' -import { CTASection } from '#/components/marketing/CTASection' -import { Link } from '@tanstack/react-router' - -export const Route = createFileRoute('/_public/pricing')({ - head: () => ({ - meta: buildMarketingMeta({ - title: 'Pricing - Ployz', - description: - 'Choose hosted cloud plans or self-host the Ployz runtime for free. Start on one machine and grow when you need to.', - }), - }), - component: PricingPage, -}) - -const cloudPlans = [ - { - name: 'Free', - price: '$0', - period: 'per month', - description: 'For experimenting and personal projects', - features: [ - 'Unlimited servers, deployments, apps, and databases', - '2 environments', - 'GitHub or image deploys', - 'Community support', - 'No log storage, backups, or scheduled jobs', - ], - cta: 'Start in cloud', - ctaVariant: 'outline' as const, - }, - { - name: 'Hobby', - price: '$9', - period: 'per month', - description: 'For individual developers who want real operational tooling', - features: [ - 'Everything in Free', - 'Log storage and metrics retention', - 'Deployment diffs with per-field review', - 'Push-to-deploy with optional CI gating', - 'Volume and database backups', - 'Scheduled jobs', - 'More environments and email support', - ], - cta: 'Start in cloud', - ctaVariant: 'default' as const, - highlight: true, - }, - { - name: 'Pro', - price: '$29', - period: 'per month', - description: 'For production workloads', - features: [ - 'Everything in Hobby', - 'Unlimited environments, backups, and scheduled jobs', - 'Longer log and metric retention', - 'Priority support', - ], - cta: 'Start in cloud', - ctaVariant: 'outline' as const, - }, -] - -const selfHostedFeatures = [ - 'Free and open source runtime', - 'Start on one machine and enroll more with the bootstrap command', - 'Preview and apply deploy workflow', - 'Git or image based services', - 'Same canvas and staged deploy workflow as cloud', -] - -function PricingPage() { - return ( -
- - -
-
- - - Cloud - Self-hosted - - - -
- {cloudPlans.map((plan) => ( - - -
- {plan.name} - {plan.highlight ? ( - - Best place to start - - ) : null} -
-
- {plan.price} - - / {plan.period} - -
- {plan.description} -
- - - {plan.features.map((f) => ( -
- - {f} -
- ))} -
- - - {plan.cta} - - -
- ))} -
-

- Cloud sign-in uses GitHub. After that you create a project, - choose Git or image, and deploy. -

-
- - -
- - - - Open source runtime - - Self-host Ployz for free - - Good fit if you want the runtime on your own infrastructure - and care more about the operator model than hosted SaaS - conveniences. - - - - -
- {selfHostedFeatures.map((feature) => ( -
- - {feature} -
- ))} -
- -
- - - Self-host docs - - - Runtime repo - - -
-
-
-
-
-
- - {/* FAQ */} -
-
-

- Common questions -

-
- {[ - { - q: 'Is the Free plan really free forever?', - a: 'Yes. No credit card required to sign up. The Free plan stays free — we only charge if you upgrade to Pro.', - }, - { - q: 'What counts as an "app"?', - a: 'Each deployed service is one app. A web server and a separate worker running in the same project each count as one app.', - }, - { - q: 'Is self-hosting truly unlimited?', - a: 'Yes. The self-hosted runtime is open source and has no per-app or per-seat limits. You pay for your own servers, not for using Ployz.', - }, - { - q: 'Can I switch between Cloud and self-hosted?', - a: 'Yes. The CLI and the cloud platform use the same concepts. Export your config and import it wherever you want to run.', - }, - { - q: 'What happens when my app crashes?', - a: 'You configure healthchecks and restart policies per service. Ployz monitors your containers and automatically restarts them based on your rules — on failure, always, or never.', - }, - { - q: 'Do you support monorepos?', - a: 'Yes. Each service can point at a different subdirectory in the same repo. One repository, as many services as you need.', - }, - { - q: 'How do my services talk to each other?', - a: 'Every service gets a private DNS name automatically. Your backend can reach your database by name — no hardcoded IPs or service discovery configuration.', - }, - ].map((item) => ( -
-

{item.q}

-

{item.a}

-
- ))} -
-
-
- - -
- ) -} diff --git a/dashboard/src/routes/_public/route.tsx b/dashboard/src/routes/_public/route.tsx index bcd7ccfa5c..06f3784e48 100644 --- a/dashboard/src/routes/_public/route.tsx +++ b/dashboard/src/routes/_public/route.tsx @@ -1,27 +1,4 @@ -import { Outlet, createFileRoute, useLocation } from "@tanstack/react-router"; -import Footer from "#/routes/_public/-components/Footer"; -import Header from "#/routes/_public/-components/Header"; +import { createFileRoute } from "@tanstack/react-router"; -export const Route = createFileRoute("/_public")({ - component: RouteComponent, -}); - -function RouteComponent() { - const isHome = useLocation({ - select: (location) => - location.pathname === "/" || - location.pathname === "/home" || - location.pathname === "/home/", - }); - if (isHome) return ; - - return ( -
-
-
- -
-
-
- ); -} +// Pathless group for signed-out pages; LoginPanel sends sign-ins from here to /cloud. +export const Route = createFileRoute("/_public")({}); diff --git a/dashboard/src/routes/api/waitlist.ts b/dashboard/src/routes/api/waitlist.ts deleted file mode 100644 index 2c11872d94..0000000000 --- a/dashboard/src/routes/api/waitlist.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { createFileRoute } from "@tanstack/react-router"; -import { handleWaitlistRequest } from "#/modules/waitlist/waitlist.server"; -import { publicErrorResponse } from "#/server/public-error"; -import { runAppEffect } from "#/server/run.server"; - -export const Route = createFileRoute("/api/waitlist")({ - server: { - handlers: { - POST: ({ request }) => - runAppEffect(handleWaitlistRequest(request), { - signal: request.signal, - }).catch(publicErrorResponse), - }, - }, -}); diff --git a/dashboard/src/server/config.server.effect.test.ts b/dashboard/src/server/config.server.effect.test.ts index 50289fcc14..79c16aac4a 100644 --- a/dashboard/src/server/config.server.effect.test.ts +++ b/dashboard/src/server/config.server.effect.test.ts @@ -57,6 +57,16 @@ describe("AppConfig", () => { }), ); + it.effect("names every missing required variable at once", () => + Effect.gen(function* () { + const failure = yield* Effect.flip(load({})); + assert.instanceOf(failure, Config.ConfigError); + for (const name of Object.keys(requiredEnvironment)) { + assert.include(failure.message, name); + } + }), + ); + it.effect("loads hosted Polar with one product", () => Effect.gen(function* () { const config = yield* load({ ...requiredEnvironment, ...hostedPolar }); diff --git a/dashboard/src/server/config.server.ts b/dashboard/src/server/config.server.ts index 4db19c3688..8e4d7dcd1f 100644 --- a/dashboard/src/server/config.server.ts +++ b/dashboard/src/server/config.server.ts @@ -7,7 +7,9 @@ import { Layer, Option, type Redacted, + Result, Schema, + SchemaIssue, } from "effect"; const Uuid = Schema.String.check(Schema.isUUID()); @@ -34,7 +36,7 @@ export class InvalidConfiguration extends Data.TaggedError( const optional = (config: Config.Config) => Config.option(config).pipe(Config.map(Option.getOrUndefined)); -const rawConfig = Config.all({ +const rawFields = { nodeEnv: Config.literals(["development", "test", "production"], "NODE_ENV").pipe( Config.withDefault("production"), ), @@ -73,11 +75,39 @@ const rawConfig = Config.all({ inngestEventKey: Config.schema(NonEmptySecret, "INNGEST_EVENT_KEY"), inngestSigningKey: Config.schema(NonEmptySecret, "INNGEST_SIGNING_KEY"), encryptionSecret: Config.schema(EncryptionSecret, "APP_ENCRYPTION_SECRET"), -}); +}; +/** + * Config.all stops at the first bad variable. Read every field once so one + * ConfigError names all missing or malformed variables. + */ +const loadRawConfig = Effect.all(rawFields, { mode: "result" }).pipe( + Effect.flatMap((results) => { + const issues: Array = []; + for (const result of Object.values(results)) { + if (result._tag === "Success") continue; + const { cause } = result.failure; + issues.push( + Schema.isSchemaError(cause) + ? cause.issue + : new SchemaIssue.InvalidValue({ message: cause.message }), + ); + } + const [head, ...tail] = issues; + return head === undefined + ? Effect.fromResult(Result.all(results)) + : Effect.fail( + new Config.ConfigError( + new Schema.SchemaError( + new SchemaIssue.Composite(Schema.Unknown.ast, [head, ...tail]), + ), + ), + ); + }), +); /** No Polar variables means a Self-hosted Cloud; a partial set is a mistake. */ const resolvePolarConfiguration = Effect.fn("Config.resolvePolar")(function* ( - input: Config.Success, + input: Effect.Success, ) { const { polarAccessToken, polarWebhookSecret, polarProductId } = input; if ( @@ -107,7 +137,7 @@ const resolvePolarConfiguration = Effect.fn("Config.resolvePolar")(function* ( }); const makeAppConfig = Effect.gen(function* () { - const raw = yield* rawConfig; + const raw = yield* loadRawConfig; const polar = yield* resolvePolarConfiguration(raw); const appUrl = raw.appUrl.href.replace(/\/$/, ""); diff --git a/dashboard/src/styles.css b/dashboard/src/styles.css index b1fd9e6020..75ed9e0b66 100644 --- a/dashboard/src/styles.css +++ b/dashboard/src/styles.css @@ -4,7 +4,6 @@ @import "@fontsource-variable/geist"; @import "@fontsource-variable/geist-mono"; @import "../tokens.css"; -@import "./home-documentary.css"; @custom-variant dark (&:is(.dark *)); @plugin "./tailwind-typography.js"; @@ -510,44 +509,6 @@ body:has([data-deployment-canvas]) [data-mobile-navigation] { background: var(-- } } -@layer components { - .marketing-shell { - position: relative; - overflow: hidden; - background: - radial-gradient(circle at 14% 18%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 34%), - radial-gradient(circle at 84% 0%, color-mix(in srgb, var(--info) 14%, transparent), transparent 24%), - linear-gradient( - 180deg, - color-mix(in srgb, var(--background) 94%, var(--muted) 6%), - var(--background) - ); - } - - .marketing-shell::after { - content: ""; - position: absolute; - inset: 0; - pointer-events: none; - background-image: - linear-gradient(to right, color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px), - linear-gradient(to bottom, color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px); - background-size: 3rem 3rem; - mask-image: linear-gradient(180deg, black, transparent 82%); - opacity: 0.28; - } - - .marketing-panel { - background: - linear-gradient( - 180deg, - color-mix(in srgb, var(--card) 92%, var(--background) 8%), - color-mix(in srgb, var(--card) 98%, var(--muted) 2%) - ); - box-shadow: var(--shadow-xl); - } -} - @layer base { * { @apply border-border outline-ring/50; @@ -621,1125 +582,3 @@ body:has([data-deployment-canvas]) [data-mobile-navigation] { background: var(-- color: var(--destructive); } } - -@layer components { - .marketing-page, - .marketing-header, - .marketing-footer { - --background: var(--color-paper); - --foreground: var(--color-ink); - --card: var(--color-paper-raised); - --card-foreground: var(--color-ink); - --popover: var(--color-paper-raised); - --popover-foreground: var(--color-ink); - --primary: var(--color-accent); - --primary-foreground: var(--color-accent-ink); - --secondary: var(--color-paper-soft); - --secondary-foreground: var(--color-ink); - --muted: var(--color-paper-soft); - --muted-foreground: var(--color-muted); - --accent: var(--color-paper-strong); - --accent-foreground: var(--color-ink); - --border: var(--color-rule); - --input: var(--color-rule); - --ring: var(--color-focus); - --radius: var(--radius-control); - color: var(--color-ink); - font-family: var(--font-body); - } - - .marketing-page { - min-width: 0; - overflow-x: clip; - background: var(--color-paper); - } - - .marketing-page *, - .marketing-header *, - .marketing-footer * { - min-width: 0; - } - - .marketing-page h1, - .marketing-page h2, - .marketing-page h3, - .marketing-footer__statement, - .marketing-header .font-heading, - .marketing-footer .font-heading { - font-family: var(--font-display); - } - - .marketing-page h1, - .marketing-page h2, - .marketing-page h3 { - margin: 0; - color: var(--color-ink); - font-weight: 560; - letter-spacing: -0.045em; - line-height: 0.98; - text-wrap: balance; - overflow-wrap: anywhere; - } - - .marketing-page p, - .marketing-footer p { - margin: 0; - } - - .marketing-page a:not([class*="group/button"]), - .marketing-footer a { - color: inherit; - text-decoration-color: var(--color-rule); - text-underline-offset: 0.22em; - transition-duration: var(--duration-fast); - transition-property: color, text-decoration-color; - transition-timing-function: var(--ease-out); - } - - .marketing-page a:not([class*="group/button"]):hover, - .marketing-footer a:hover { - color: var(--color-accent); - text-decoration-color: currentColor; - } - - .marketing-page a:not([class*="group/button"]):active, - .marketing-footer a:active { - color: var(--color-ink); - } - - .marketing-page a:focus-visible, - .marketing-header a:focus-visible, - .marketing-footer a:focus-visible { - outline: 2px solid var(--color-focus); - outline-offset: 4px; - } - - .marketing-frame { - width: min(100%, var(--measure-page)); - margin-inline: auto; - padding-inline: clamp(var(--space-4), 4vw, var(--space-8)); - } - - .marketing-header { - position: sticky; - z-index: var(--z-sticky-nav); - top: 0; - border-bottom: 1px solid var(--color-rule-soft); - background: var(--color-paper); - } - - .marketing-nav { - display: flex; - min-height: var(--banner-height); - align-items: center; - justify-content: space-between; - gap: var(--space-4); - } - - .marketing-nav > a:first-child { - display: inline-flex; - flex: none; - min-height: var(--control-height); - align-items: center; - } - - .marketing-action { - min-height: var(--control-height); - white-space: nowrap; - } - - .marketing-hero { - border-bottom: 1px solid var(--color-rule-soft); - } - - .marketing-hero__grid { - display: grid; - grid-template-columns: minmax(0, 7fr) minmax(18rem, 5fr); - gap: clamp(var(--space-12), 7vw, var(--space-24)); - align-items: center; - padding-top: var(--space-16); - padding-bottom: var(--space-24); - } - - .marketing-hero__copy { - max-width: 43rem; - } - - .marketing-kicker, - .marketing-plan figcaption, - .marketing-step-proof figcaption, - .marketing-architecture__figure > figcaption { - color: var(--color-muted); - font-family: var(--font-body); - font-size: 0.75rem; - font-weight: 520; - letter-spacing: 0.02em; - } - - .marketing-hero h1 { - max-width: 15ch; - margin-top: var(--space-6); - font-size: clamp(3.4rem, 6.9vw, 5.5rem); - } - - .marketing-hero__lede { - max-width: var(--measure-copy); - margin-top: var(--space-8) !important; - color: var(--color-ink-soft); - font-size: clamp(1.05rem, 1.8vw, 1.25rem); - line-height: 1.58; - } - - .marketing-actions { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: var(--space-3); - margin-top: var(--space-8); - } - - .marketing-hero__availability { - margin-top: var(--space-5) !important; - color: var(--color-muted); - font-size: 0.82rem; - line-height: 1.5; - } - - .marketing-plan { - margin: 0; - border: 1px solid var(--color-rule); - border-top: 3px solid var(--color-accent); - border-radius: var(--radius-panel); - background: var(--color-paper-raised); - padding: clamp(var(--space-5), 4vw, var(--space-8)); - } - - .marketing-plan__heading { - display: flex; - align-items: baseline; - justify-content: space-between; - gap: var(--space-4); - margin-top: var(--space-8); - padding-bottom: var(--space-5); - } - - .marketing-plan__heading span { - font-size: 1.1rem; - font-weight: 620; - } - - .marketing-plan code { - color: var(--color-muted); - font-family: var(--font-code); - font-size: 0.72rem; - } - - .marketing-plan dl { - margin: 0; - border-top: 1px solid var(--color-rule-soft); - } - - .marketing-plan dl > div { - display: grid; - grid-template-columns: minmax(4.5rem, 1fr) minmax(0, 2.2fr); - gap: var(--space-4); - padding-block: var(--space-4); - border-bottom: 1px solid var(--color-rule-soft); - } - - .marketing-plan dt, - .marketing-plan dd { - margin: 0; - font-size: 0.86rem; - line-height: 1.45; - } - - .marketing-plan dt { - color: var(--color-muted); - font-family: var(--font-body); - } - - .marketing-plan dd { - color: var(--color-ink-soft); - } - - .marketing-plan > p { - margin-top: var(--space-5) !important; - color: var(--color-ink-soft); - font-size: 0.82rem; - } - - .marketing-boundary-strip { - border-bottom: 1px solid var(--color-rule-soft); - } - - .marketing-boundary-strip__grid { - display: grid; - grid-template-columns: repeat(2, minmax(0, 1fr)); - } - - .marketing-boundary-strip__grid > div { - padding-block: var(--space-8); - } - - .marketing-boundary-strip__grid > div + div { - border-left: 1px solid var(--color-rule-soft); - padding-left: clamp(var(--space-6), 5vw, var(--space-16)); - } - - .marketing-boundary-strip h2 { - color: var(--color-muted); - font-family: var(--font-body); - font-size: 0.75rem; - font-weight: 520; - letter-spacing: 0.02em; - } - - .marketing-boundary-strip p { - margin-top: var(--space-3); - color: var(--color-ink-soft); - font-size: 0.9rem; - line-height: 1.55; - } - - .marketing-section-intro, - .marketing-section-head { - display: block; - } - - .marketing-section-intro { - padding-block: clamp(var(--space-20), 11vw, var(--space-28)) var(--space-8); - } - - .marketing-section-head { - padding-block: clamp(var(--space-20), 9vw, var(--space-24)) var(--space-12); - } - - .marketing-section-intro > div, - .marketing-section-head > div { - max-width: 52rem; - } - - .marketing-section-intro h2, - .marketing-section-head h2 { - font-size: clamp(2.5rem, 5.4vw, 4.8rem); - } - - .marketing-section-intro p, - .marketing-section-head p { - max-width: var(--measure-copy); - margin-top: var(--space-6) !important; - color: var(--color-ink-soft); - font-size: 1.05rem; - line-height: 1.62; - } - - .marketing-journey { - padding-bottom: clamp(var(--space-20), 9vw, var(--space-28)); - } - - .marketing-journey > ol { - margin: 0; - padding: 0; - list-style: none; - } - - .marketing-journey__step { - display: grid; - grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); - gap: clamp(var(--space-10), 8vw, var(--space-24)); - align-items: start; - padding-block: clamp(var(--space-12), 7vw, var(--space-20)); - border-top: 1px solid var(--color-rule); - } - - .marketing-journey__copy > span { - color: var(--color-accent); - font-family: var(--font-body); - font-size: 0.78rem; - } - - .marketing-journey__copy h3 { - max-width: 14ch; - margin-top: var(--space-5); - font-size: clamp(2rem, 4vw, 3.35rem); - line-height: 1.02; - } - - .marketing-journey__copy p { - max-width: 31rem; - margin-top: var(--space-5) !important; - color: var(--color-ink-soft); - line-height: 1.65; - } - - .marketing-step-proof { - margin: 0; - border: 1px solid var(--color-rule); - border-radius: var(--radius-panel); - background: var(--color-paper-raised); - padding: clamp(var(--space-5), 4vw, var(--space-8)); - } - - .marketing-step-proof figcaption { - margin-bottom: var(--space-8); - } - - .marketing-proof-list { - margin: 0; - } - - .marketing-proof-list > div { - display: grid; - grid-template-columns: minmax(5rem, 1fr) minmax(0, 2fr); - gap: var(--space-4); - padding-block: var(--space-4); - border-top: 1px solid var(--color-rule-soft); - } - - .marketing-proof-list dt, - .marketing-proof-list dd { - margin: 0; - font-size: 0.9rem; - } - - .marketing-proof-list dt { - color: var(--color-muted); - font-family: var(--font-body); - } - - .marketing-proof-list dd { - color: var(--color-ink-soft); - } - - .marketing-flow-line { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: var(--space-3); - color: var(--color-ink-soft); - font-family: var(--font-body); - font-size: 0.82rem; - } - - .marketing-flow-line span:nth-child(odd) { - border-bottom: 1px solid var(--color-rule); - padding-block: var(--space-3); - } - - .marketing-flow-line span:nth-child(even) { - color: var(--color-accent); - } - - .marketing-proof-sequence { - display: grid; - gap: var(--space-4); - margin: 0; - padding: 0; - list-style: none; - counter-reset: deployment-step; - } - - .marketing-proof-sequence li { - display: grid; - grid-template-columns: 2rem minmax(0, 1fr); - gap: var(--space-3); - align-items: baseline; - color: var(--color-ink-soft); - counter-increment: deployment-step; - } - - .marketing-proof-sequence li::before { - color: var(--color-accent); - font-family: var(--font-body); - font-size: 0.76rem; - content: counter(deployment-step, decimal-leading-zero); - } - - .marketing-recovery-proof { - display: grid; - grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.5fr); - gap: var(--space-4); - align-items: center; - color: var(--color-ink-soft); - font-size: 0.9rem; - } - - .marketing-recovery-proof > span:nth-child(2) { - color: var(--color-accent); - font-size: 1.5rem; - } - - .marketing-recovery-proof strong { - font-weight: 620; - } - - .marketing-ownership { - border-block: 1px solid var(--color-rule-soft); - background: var(--color-paper-soft); - padding-bottom: clamp(var(--space-20), 8vw, var(--space-24)); - } - - .marketing-spec { - margin-block: 0; - } - - .marketing-spec > div { - display: grid; - grid-template-columns: minmax(9rem, 3fr) minmax(0, 9fr); - gap: clamp(var(--space-6), 5vw, var(--space-16)); - padding-block: var(--space-6); - border-top: 1px solid var(--color-rule); - } - - .marketing-spec dt, - .marketing-spec dd { - margin: 0; - } - - .marketing-spec dt { - color: var(--color-muted); - font-family: var(--font-body); - font-size: 0.78rem; - } - - .marketing-spec dd { - display: grid; - grid-template-columns: minmax(10rem, 4fr) minmax(0, 8fr); - gap: var(--space-6); - } - - .marketing-spec dd strong { - font-size: 0.95rem; - font-weight: 620; - } - - .marketing-spec dd span { - color: var(--color-ink-soft); - font-size: 0.92rem; - line-height: 1.55; - } - - .marketing-architecture { - padding-bottom: clamp(var(--space-20), 10vw, var(--space-28)); - } - - .marketing-architecture .marketing-section-head { - padding-inline: 0; - } - - .marketing-architecture__figure { - margin: 0; - border: 1px solid var(--color-rule); - border-radius: var(--radius-panel); - background: var(--color-paper-raised); - padding: clamp(var(--space-5), 5vw, var(--space-10)); - } - - .marketing-architecture__flow { - display: grid; - grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr) auto minmax(0, 1.65fr); - gap: var(--space-4); - align-items: stretch; - margin-top: var(--space-8); - } - - .marketing-architecture__flow > div { - display: flex; - flex-direction: column; - justify-content: center; - gap: var(--space-3); - border-top: 2px solid var(--color-rule); - padding: var(--space-5) var(--space-4); - background: var(--color-paper); - } - - .marketing-architecture__flow > .marketing-architecture__control { - border-top-color: var(--color-accent); - } - - .marketing-architecture__flow span, - .marketing-architecture__flow li { - color: var(--color-muted); - font-family: var(--font-body); - font-size: 0.72rem; - } - - .marketing-architecture__flow strong { - font-size: 0.95rem; - font-weight: 620; - } - - .marketing-architecture__connector { - align-self: center; - color: var(--color-accent) !important; - font-size: 1.2rem !important; - } - - .marketing-architecture__fleet ul { - display: flex; - flex-wrap: wrap; - gap: var(--space-2); - margin: 0; - padding: 0; - list-style: none; - } - - .marketing-architecture__fleet li { - border: 1px solid var(--color-rule-soft); - padding: var(--space-2) var(--space-3); - } - - .marketing-architecture__figure > p { - max-width: var(--measure-copy); - margin-top: var(--space-8) !important; - color: var(--color-ink-soft); - font-size: 0.9rem; - line-height: 1.55; - } - - .marketing-comparison { - border-block: 1px solid var(--color-rule-soft); - background: var(--color-paper-soft); - padding-bottom: clamp(var(--space-20), 9vw, var(--space-24)); - } - - .marketing-comparison__table { - display: block; - width: 100%; - overflow: hidden; - border-collapse: collapse; - } - - .marketing-comparison__table thead, - .marketing-comparison__table tbody { - display: block; - width: 100%; - } - - .marketing-comparison__header, - .marketing-comparison__row { - display: grid; - grid-template-columns: minmax(9rem, 3fr) repeat(2, minmax(0, 4.5fr)); - gap: clamp(var(--space-5), 4vw, var(--space-12)); - padding-block: var(--space-5); - border-top: 1px solid var(--color-rule); - } - - .marketing-comparison__header { - color: var(--color-muted); - font-family: var(--font-body); - font-size: 0.75rem; - } - - .marketing-comparison__header th, - .marketing-comparison__row th, - .marketing-comparison__row td { - padding: 0; - text-align: left; - } - - .marketing-comparison__row th { - font-size: 0.94rem; - font-weight: 620; - } - - .marketing-comparison__row > td { - color: var(--color-ink-soft); - font-size: 0.92rem; - line-height: 1.5; - } - - .marketing-comparison__row > td:last-child { - color: var(--color-ink); - font-weight: 560; - } - - .marketing-comparison__row small { - display: none; - color: var(--color-muted); - font-family: var(--font-body); - font-size: 0.72rem; - font-weight: 460; - } - - .marketing-comparison__sources { - margin-top: var(--space-8) !important; - color: var(--color-muted); - font-size: 0.78rem; - line-height: 1.55; - } - - .marketing-comparison__sources a { - text-decoration: underline; - } - - .marketing-final-cta { - --background: var(--color-ink); - --foreground: var(--color-paper); - --primary: var(--color-accent); - --primary-foreground: var(--color-accent-ink); - --color-focus: var(--color-focus-on-dark); - background: var(--color-ink); - color: var(--color-paper); - } - - .marketing-final-cta__inner { - display: grid; - grid-template-columns: minmax(0, 7fr) minmax(14rem, 3fr); - gap: var(--space-8) clamp(var(--space-10), 8vw, var(--space-24)); - align-items: end; - padding-block: clamp(var(--space-20), 11vw, 9rem); - } - - .marketing-final-cta h2 { - max-width: 13ch; - color: var(--color-paper); - font-size: clamp(3rem, 7vw, 6.2rem); - grid-row: span 2; - } - - .marketing-final-cta p { - color: var(--color-rule); - font-size: 1rem; - line-height: 1.6; - } - - .marketing-final-cta .marketing-action { - justify-self: start; - } - - .marketing-footer { - border-top: 1px solid var(--color-rule-soft); - background: var(--color-paper); - } - - .marketing-footer__inner { - padding-block: clamp(var(--space-16), 8vw, var(--space-24)) var(--space-8); - } - - .marketing-footer__statement { - max-width: 23ch; - color: var(--color-ink-soft); - font-size: clamp(1.7rem, 4vw, 3.2rem); - font-weight: 520; - letter-spacing: -0.04em; - line-height: 1.08; - text-wrap: balance; - } - - .marketing-footer__meta { - display: grid; - grid-template-columns: 1fr auto auto; - gap: var(--space-8); - align-items: center; - margin-top: clamp(var(--space-16), 9vw, var(--space-24)); - padding-top: var(--space-6); - border-top: 1px solid var(--color-rule); - color: var(--color-muted); - font-size: 0.8rem; - } - - .marketing-footer__links { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: var(--space-5); - line-height: 1; - } - - .marketing-footer__links a { - display: inline-flex; - min-height: var(--control-height); - align-items: center; - white-space: nowrap; - } - - @media (prefers-reduced-motion: no-preference) { - .marketing-hero__copy, - .marketing-plan { - animation: marketing-enter var(--duration-enter) var(--ease-out) both; - } - - .marketing-plan { - animation-delay: 90ms; - } - } - - @keyframes marketing-enter { - from { - opacity: 0; - transform: translateY(14px); - } - - to { - opacity: 1; - transform: translateY(0); - } - } - - @media (prefers-reduced-motion: reduce) { - .marketing-action { - transition-duration: 0ms; - } - - .marketing-action:active { - transform: none; - } - } - - @media (max-width: 56rem) { - .marketing-hero__grid, - .marketing-journey__step, - .marketing-final-cta__inner { - grid-template-columns: minmax(0, 1fr); - } - - .marketing-plan { - max-width: 38rem; - } - - .marketing-final-cta h2 { - grid-row: auto; - } - - .marketing-architecture__flow { - grid-template-columns: minmax(0, 1fr); - } - - .marketing-architecture__connector { - justify-self: center; - transform: rotate(90deg); - } - } - - @media (max-width: 42rem) { - .marketing-hero__grid { - grid-template-columns: minmax(0, 1fr); - gap: var(--space-16); - padding-top: var(--space-12); - padding-bottom: var(--space-16); - } - - .marketing-hero h1 { - font-size: clamp(3rem, 16vw, 4.75rem); - } - - .marketing-plan__heading, - .marketing-boundary-strip__grid, - .marketing-spec > div, - .marketing-spec dd, - .marketing-recovery-proof, - .marketing-footer__meta { - grid-template-columns: minmax(0, 1fr); - } - - .marketing-plan__heading { - align-items: start; - } - - .marketing-boundary-strip__grid > div + div { - border-top: 1px solid var(--color-rule-soft); - border-left: 0; - padding-left: 0; - } - - .marketing-journey__step { - gap: var(--space-8); - } - - .marketing-spec > div, - .marketing-spec dd { - gap: var(--space-3); - } - - .marketing-recovery-proof > span:nth-child(2) { - transform: rotate(-90deg); - justify-self: start; - } - - .marketing-comparison__header { - display: none; - } - - .marketing-comparison__row { - grid-template-columns: minmax(0, 1fr); - gap: var(--space-4); - padding-block: var(--space-6); - } - - .marketing-comparison__row > td { - display: grid; - grid-template-columns: minmax(4.5rem, 0.35fr) minmax(0, 1fr); - gap: var(--space-3); - } - - .marketing-comparison__row small { - display: block; - } - - .marketing-footer__meta { - justify-items: start; - gap: var(--space-5); - } - } - - @media (max-width: 23.5rem) { - .marketing-nav .marketing-action { - min-height: var(--control-height); - font-size: 0.78rem; - } - - .marketing-actions { - align-items: stretch; - flex-direction: column; - } - - .marketing-actions .marketing-action { - width: 100%; - } - - .marketing-plan dl > div, - .marketing-proof-list > div { - grid-template-columns: minmax(0, 1fr); - gap: var(--space-2); - } - } -} - -@media (hover: hover) and (pointer: fine) { - .marketing-header .marketing-action--primary:hover, - .marketing-page .marketing-action--primary:hover { - background: var(--color-accent-hover); - color: var(--color-accent-ink); - } -} - -/* The public pirate world is deliberately separate from the operations UI. */ -.pirate-home { - --pirate-paper: #f8f5eb; - --pirate-ink: #202b28; - --pirate-coral: #f37756; - --pirate-rule: #cbcdbf; - --pirate-sea: #a8d9ce; - --pirate-muted: #596055; - --pirate-moss: #e4e9d9; - background: var(--pirate-paper); - color: var(--pirate-ink); - font-family: 'Geist Variable', sans-serif; - overflow: clip; -} -.pirate-home * { box-sizing: border-box; } -.pirate-home a { text-decoration: none; } -.pirate-home button, .pirate-home a { -webkit-tap-highlight-color: transparent; } -.pirate-home :is(a, button, summary):focus-visible { outline: 3px solid #aa3d25; outline-offset: 5px; } -.pirate-home button { cursor: pointer; background: none; border: 0; color: inherit; font: inherit; } -.pirate-home pre, .pirate-home code { font-family: 'Geist Mono Variable', monospace; } -.pirate-home h1, .pirate-home h2, .pirate-home h3, .pirate-home p { margin: 0; } -.pirate-frame { width: min(1200px, calc(100% - 96px)); margin-inline: auto; } -.pirate-eyebrow, .pirate-caption, .pirate-world-caption { font-family: 'Geist Mono Variable', monospace; font-size: 11px; font-weight: 500; letter-spacing: 1.2px; } -.pirate-eyebrow { color: #b74c32; } - -/* nav */ -.pirate-nav { position: relative; z-index: 20; min-height: 96px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--pirate-rule); gap: 28px; } -.pirate-wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; font-size: 34px; letter-spacing: -2px; line-height: 1; } -.pirate-wordmark svg { width: 38px; height: 38px; flex-shrink: 0; transition: transform 200ms; transform-origin: 10% 90%; } -.pirate-wordmark:hover svg { transform: rotate(-6deg); } -.pirate-wordmark span { font-size: 10px; align-self: flex-start; margin-top: 2px; letter-spacing: 0; font-weight: 600; } -.pirate-nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 550; } -.pirate-home nav a:hover { text-decoration: underline; text-underline-offset: 5px; } -.pirate-menu { position: relative; } -.pirate-menu > button { display: flex; align-items: center; gap: 5px; padding-block: 36px; font-weight: 550; } -.pirate-menu > button svg { width: 14px; height: 14px; transition: transform 120ms; } -.pirate-menu-panel { position: absolute; top: 100%; left: -24px; display: none; grid-template-columns: repeat(3, 230px); padding: 26px; background: var(--pirate-paper); border: 1px solid var(--pirate-ink); box-shadow: 5px 5px 0 var(--pirate-coral); } -.pirate-menu:is(:hover, :focus-within) .pirate-menu-panel { display: grid; } -.pirate-menu:is(:hover, :focus-within) > button svg { transform: rotate(180deg); } -.pirate-menu-panel > div { padding-inline: 12px; } -.pirate-menu-panel > div + div { border-left: 1px solid var(--pirate-rule); } -.pirate-menu-panel .pirate-caption { color: #b74c32; margin-bottom: 12px; } -.pirate-menu-panel a { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; margin-inline: -10px; } -.pirate-menu-panel a:hover { background: var(--pirate-moss); text-decoration: none; } -.pirate-menu-panel strong { font-size: 13px; font-weight: 650; } -.pirate-menu-panel a > span { font-size: 11px; color: var(--pirate-muted); font-weight: 450; } -.pirate-login { display: flex; align-items: center; gap: 20px; font-size: 13px; font-weight: 650; border: 1px solid var(--pirate-ink); padding: 12px 17px; } -.pirate-login svg { width: 16px; height: 16px; } - -/* hero */ -.pirate-hero { padding-top: 96px; padding-bottom: 72px; } -.pirate-hero h1 { position: relative; width: fit-content; font-size: clamp(64px, 8vw, 124px); line-height: .92; letter-spacing: -.075em; font-weight: 850; margin: 28px 0 44px; } -.pirate-star { display: inline-block; color: var(--pirate-coral); font-size: .8em; margin-left: 34px; vertical-align: top; transform: rotate(12deg); } -.pirate-hero-bottom { display: flex; align-items: end; justify-content: space-between; gap: 48px; } -.pirate-hero-bottom p { font-size: 20px; line-height: 1.5; max-width: 520px; } -.pirate-hero-actions { display: flex; flex-direction: column; gap: 14px; } -.pirate-hero-stats { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--pirate-ink); } -.pirate-hero-stats li { padding: 24px 24px 0 0; display: grid; gap: 6px; } -.pirate-hero-stats strong { font-size: 40px; font-weight: 850; letter-spacing: -.05em; line-height: 1; } -.pirate-hero-stats span { font-size: 14px; color: var(--pirate-muted); } -.pirate-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 25px; padding: 18px 24px; min-height: 56px; background: var(--pirate-ink); color: var(--pirate-paper); border: 1px solid var(--pirate-ink); box-shadow: 3px 3px 0 var(--pirate-coral); font-size: 15px; font-weight: 600; transition: transform 120ms, box-shadow 120ms; } -.pirate-button svg { width: 18px; height: 18px; flex-shrink: 0; } -.pirate-button:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--pirate-coral); } -.pirate-button:active { transform: translate(2px, 2px); box-shadow: none; } -.pirate-install { margin: 0; padding: 12px 16px; border: 1px dashed var(--pirate-ink); font-size: 12px; background: #fff9; user-select: all; } - -/* map + stacks */ -.pirate-map { position: relative; margin: 0; border: 1px solid var(--pirate-ink); background: var(--pirate-sea); isolation: isolate; } -.pirate-map > img { display: block; width: 100%; height: auto; image-rendering: pixelated; } -.pirate-map-label { position: absolute; display: flex; align-items: center; gap: 7px; border: 1px solid var(--pirate-ink); padding: 5px 10px; background: var(--pirate-paper); box-shadow: 3px 3px 0 #203b3355; font-family: 'Geist Mono Variable', monospace; font-size: 11px; font-weight: 600; white-space: nowrap; } -.pirate-map-label svg { width: 14px; height: 14px; } -.pirate-world-caption { display: flex; justify-content: space-between; gap: 20px; padding: 14px 16px; border-top: 1px solid var(--pirate-ink); background: var(--pirate-paper); font-size: 10px; } -.pirate-world-caption span:last-child { font-family: 'Geist Variable', sans-serif; letter-spacing: 0; font-size: 13px; } -.pirate-stacks { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-family: 'Geist Mono Variable', monospace; font-size: 12px; color: var(--pirate-muted); } -.pirate-stacks li:last-child { color: var(--pirate-ink); } - -/* manifesto strip */ -.pirate-manifesto { display: flex; align-items: center; justify-content: space-evenly; gap: 25px; padding: 24px 30px; margin-top: 72px; background: var(--pirate-coral); border-block: 1px solid var(--pirate-ink); font-family: 'Geist Mono Variable', monospace; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; } -.pirate-manifesto span[aria-hidden] { font-size: 30px; line-height: 1; } - -/* sections */ -.pirate-section { padding-block: 128px; scroll-margin-top: 25px; } -.pirate-section + .pirate-section { padding-top: 0; } -.pirate-head { display: grid; gap: 20px; max-width: 860px; margin-bottom: 56px; } -.pirate-head h2 { font-size: clamp(44px, 5.4vw, 72px); font-weight: 800; letter-spacing: -.065em; line-height: 1; text-wrap: balance; } -.pirate-head > p:last-child { font-size: 19px; line-height: 1.5; color: var(--pirate-muted); max-width: 560px; } -.pirate-head > p:last-child:empty { display: none; } -.pirate-panel { max-width: 960px; border: 1px solid var(--pirate-ink); background: #fff9; box-shadow: 6px 6px 0 var(--pirate-coral); padding: 32px; } -.pirate-diagram { display: block; width: 100%; height: auto; } -.pirate-node rect { fill: var(--pirate-paper); stroke: var(--pirate-ink); stroke-width: 1.5; } -.pirate-node--preview rect { fill: var(--pirate-moss); } -.pirate-node--prod rect { fill: var(--pirate-ink); } -.pirate-node--prod text { fill: var(--pirate-paper); } -.pirate-node-title { font-family: 'Geist Variable', sans-serif; font-size: 20px; font-weight: 750; letter-spacing: -.5px; fill: var(--pirate-ink); } -.pirate-node-meta, .pirate-edge-label { font-family: 'Geist Mono Variable', monospace; font-size: 11px; letter-spacing: .5px; fill: var(--pirate-muted); } -.pirate-node--prod .pirate-node-meta { fill: #b5c6bb; } -.pirate-edge-label--coral { fill: #b74c32; } -.pirate-pills { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; } -.pirate-pills li { padding: 10px 16px; border: 1px solid var(--pirate-ink); font-size: 14px; font-weight: 550; background: var(--pirate-paper); } -.pirate-pills--dark li { border-color: #627068; color: var(--pirate-paper); background: transparent; } - -/* ways */ -.pirate-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } -.pirate-way { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--pirate-ink); background: #fff9; } -.pirate-way figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--pirate-ink); font-size: 14px; } -.pirate-way figcaption .pirate-caption { color: #b74c32; font-size: 10px; } -.pirate-way pre { flex: 1; margin: 0; padding: 14px; background: var(--pirate-ink); color: var(--pirate-paper); font-size: 11px; line-height: 1.6; overflow-x: auto; white-space: pre-wrap; } -.pirate-way--canvas { grid-column: 1 / -1; background: var(--pirate-moss); box-shadow: 4px 4px 0 var(--pirate-coral); } -.pirate-way--canvas svg { display: block; width: 100%; max-height: 180px; padding: 16px 24px; } -.pirate-canvas-text text { font-family: 'Geist Mono Variable', monospace; font-size: 11px; text-anchor: middle; fill: var(--pirate-ink); } -.pirate-way--canvas rect { fill: var(--pirate-paper); stroke: var(--pirate-ink); stroke-width: 1.5; } -.pirate-way--canvas .pirate-canvas-primary { fill: var(--pirate-coral); } - -/* agents */ -.pirate-agents { padding-block: 128px; background: var(--pirate-ink); color: var(--pirate-paper); scroll-margin-top: 25px; } -.pirate-agents .pirate-head > p:last-child { color: #b5c6bb; } -.pirate-agents .pirate-eyebrow { color: var(--pirate-coral); } -.pirate-terminal { border: 1px solid #627068; box-shadow: 6px 6px 0 var(--pirate-coral); background: #17201d; } -.pirate-terminal-bar { display: flex; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid #627068; color: #b5c6bb; } -.pirate-terminal-bar .pirate-caption:last-child { color: var(--pirate-coral); } -.pirate-terminal pre { margin: 0; padding: 32px; font-size: 15px; line-height: 1.7; overflow-x: auto; } - -/* feature grid */ -.pirate-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--pirate-rule); border: 1px solid var(--pirate-rule); } -.pirate-feature { padding: 40px 32px; background: var(--pirate-paper); display: grid; gap: 14px; align-content: start; } -.pirate-feature > svg { width: 32px; height: 32px; stroke-width: 1.4; color: #b74c32; margin-bottom: 10px; } -.pirate-feature h3 { font-size: 20px; letter-spacing: -.5px; font-weight: 700; } -.pirate-feature p { font-size: 15px; line-height: 1.5; color: var(--pirate-muted); } - -/* own */ -.pirate-own { background: var(--pirate-moss); border-block: 1px solid var(--pirate-rule); padding-block: 128px; scroll-margin-top: 25px; } -.pirate-own h2 { text-wrap: balance; font-size: clamp(48px, 7vw, 104px); font-weight: 850; letter-spacing: -.07em; line-height: .95; margin: 24px 0 32px; } -.pirate-own-line { font-size: 20px; line-height: 1.5; max-width: 620px; color: var(--pirate-muted); } -.pirate-own-stats { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--pirate-ink); } -.pirate-own-stats li { padding: 28px 24px 0 0; display: grid; gap: 8px; } -.pirate-own-stats strong { font-size: 64px; font-weight: 850; letter-spacing: -.06em; line-height: 1; } -.pirate-own-stats span { font-size: 14px; color: var(--pirate-muted); } - -/* compare */ -.pirate-compare { width: 100%; border-collapse: collapse; font-size: 15px; } -.pirate-compare th, .pirate-compare td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--pirate-rule); vertical-align: top; line-height: 1.5; } -.pirate-compare thead th { font-family: 'Geist Mono Variable', monospace; font-size: 11px; letter-spacing: 1px; font-weight: 600; border-bottom: 1px solid var(--pirate-ink); } -.pirate-compare tbody th { font-weight: 650; } -.pirate-compare td:nth-child(2), .pirate-compare td:nth-child(3) { color: var(--pirate-muted); } -.pirate-compare th:last-child, .pirate-compare td:last-child { background: #fff9; font-weight: 600; } -.pirate-specs { max-width: 960px; margin-top: 40px; } -.pirate-specs td:nth-child(2) { color: var(--pirate-ink); font-weight: 600; background: #fff9; } -.pirate-specs td:last-child { background: none; font-weight: 400; color: var(--pirate-muted); } - -/* plans */ -.pirate-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; } -.pirate-plan { border: 1px solid var(--pirate-ink); padding: 28px; display: grid; gap: 14px; background: #fff9; } -.pirate-plan:nth-child(3) { box-shadow: 6px 6px 0 var(--pirate-coral); } -.pirate-plan strong { font-size: 48px; font-weight: 850; letter-spacing: -.05em; line-height: 1; } -.pirate-plan small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--pirate-muted); margin-left: 4px; } -.pirate-plan p { font-size: 14px; line-height: 1.5; color: var(--pirate-muted); } -.pirate-textlink { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-size: 14px; font-weight: 650; text-decoration: underline; text-underline-offset: 5px; } -.pirate-textlink svg { width: 15px; height: 15px; } - -/* faq */ -.pirate-faq .pirate-head { margin-bottom: 24px; } -.pirate-faq-list { border-top: 1px solid var(--pirate-ink); max-width: 760px; } -.pirate-faq-list details { border-bottom: 1px solid var(--pirate-rule); } -.pirate-faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 20px; font-weight: 650; letter-spacing: -.3px; cursor: pointer; list-style: none; } -.pirate-faq-list summary::-webkit-details-marker { display: none; } -.pirate-faq-list summary svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 120ms; } -.pirate-faq-list details[open] summary svg { transform: rotate(180deg); } -.pirate-faq-list p { padding: 0 0 24px; font-size: 16px; line-height: 1.6; color: var(--pirate-muted); } - -/* end + footer */ -.pirate-end { background: var(--pirate-moss); border-block: 1px solid var(--pirate-rule); } -.pirate-end-inner { display: flex; flex-direction: column; align-items: center; padding-block: 96px; text-align: center; } -.pirate-end-inner > svg { width: 56px; height: 56px; margin-bottom: 24px; } -.pirate-end h2 { font-size: clamp(58px, 8vw, 112px); font-weight: 850; line-height: .95; letter-spacing: -.07em; margin: 20px 0 36px; } -.pirate-source { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-top: 22px; } -.pirate-source svg { width: 15px; height: 15px; } -.pirate-footer { padding-block: 56px 32px; } -.pirate-footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; } -.pirate-footer-top > div p { margin-top: 12px; font-size: 13px; color: var(--pirate-muted); } -.pirate-footer nav { display: grid; gap: 10px; align-content: start; font-size: 14px; } -.pirate-footer nav .pirate-caption { color: #b74c32; margin-bottom: 4px; } -.pirate-footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--pirate-rule); font-size: 12px; color: var(--pirate-muted); } -.pirate-skip { position: fixed; top: -100px; left: 12px; z-index: 50; padding: 12px; background: var(--pirate-paper); } -.pirate-skip:focus { top: 12px; } -@media (prefers-reduced-motion: reduce) { .pirate-home * { transition: none !important; scroll-behavior: auto !important; } } -@media (max-width: 1000px) { - .pirate-frame { width: calc(100% - 48px); } - .pirate-nav-links { gap: 18px; } - .pirate-menu-panel { grid-template-columns: repeat(3, 200px); } - .pirate-feature-grid, .pirate-plans, .pirate-own-stats { grid-template-columns: 1fr 1fr; } - .pirate-hero-stats { grid-template-columns: 1fr; } - .pirate-ways { grid-template-columns: 1fr 1fr; } - .pirate-footer-top { grid-template-columns: 1fr 1fr; } -} -@media (max-width: 700px) { - .pirate-frame { width: calc(100% - 36px); } - .pirate-nav { min-height: 78px; } - .pirate-nav-links { display: none; } - .pirate-login { gap: 10px; padding: 10px 12px; font-size: 12px; } - .pirate-wordmark { font-size: 29px; } - .pirate-hero { padding-top: 48px; padding-bottom: 40px; } - .pirate-eyebrow { font-size: 9px; } - .pirate-hero h1 { font-size: clamp(48px, 12.5vw, 80px); } - .pirate-star { margin-left: 12px; font-size: .65em; } - .pirate-hero-bottom { align-items: stretch; flex-direction: column; gap: 28px; } - .pirate-hero-bottom p { font-size: 17px; } - .pirate-map-label { font-size: 9px; padding: 3px 6px; gap: 4px; } - .pirate-map-label svg { width: 11px; height: 11px; } - .pirate-map-label:nth-of-type(3), .pirate-map-label:nth-of-type(4) { left: auto !important; right: 3%; } - .pirate-world-caption { flex-direction: column; gap: 5px; } - .pirate-stacks { gap: 8px 16px; font-size: 11px; } - .pirate-manifesto { flex-wrap: wrap; gap: 12px; padding: 18px 12px; margin-top: 40px; font-size: 10px; } - .pirate-manifesto span[aria-hidden] { font-size: 18px; } - .pirate-section, .pirate-agents, .pirate-own { padding-block: 72px; } - .pirate-head { margin-bottom: 36px; } - .pirate-head > p:last-child { font-size: 16px; } - .pirate-panel { padding: 12px; } - .pirate-terminal pre { padding: 18px; font-size: 12px; } - .pirate-feature-grid, .pirate-plans, .pirate-ways, .pirate-footer-top { grid-template-columns: 1fr; } - .pirate-way--canvas svg { max-height: none; } - .pirate-feature { padding: 28px 22px; } - .pirate-own-stats { grid-template-columns: 1fr 1fr; } - .pirate-own-stats strong { font-size: 44px; } - .pirate-compare { display: block; overflow-x: auto; font-size: 13px; } - .pirate-compare th, .pirate-compare td { padding: 12px; min-width: 140px; } - .pirate-end-inner { padding-block: 64px; } - .pirate-footer-bottom { flex-direction: column; } -} diff --git a/dashboard/src/test/postgres.ts b/dashboard/src/test/postgres.ts index 7f62b77700..1281c21369 100644 --- a/dashboard/src/test/postgres.ts +++ b/dashboard/src/test/postgres.ts @@ -1,8 +1,18 @@ import { execFile as execFileCallback } from "node:child_process"; import { randomUUID } from "node:crypto"; import { promisify } from "node:util"; -import { Effect } from "effect"; -import { Client } from "pg"; +import { PgClient } from "@effect/sql-pg"; +import { makeWithDefaults } from "drizzle-orm/effect-postgres"; +import { drizzle } from "drizzle-orm/node-postgres"; +import { Effect, Exit, Layer, ManagedRuntime, Scope } from "effect"; +import * as Reactivity from "effect/unstable/reactivity/Reactivity"; +import { Client, Pool } from "pg"; +import { + Database, + ReportingDatabase, + makeDatabaseService, + makeReportingDatabase, +} from "#/server/database.server"; const execFile = promisify(execFileCallback); @@ -111,3 +121,85 @@ export const migrateTestDatabase = (url: URL) => maxBuffer: 20 * 1024 * 1024, }), ); + +/** + * Shares one migrated {@link postgresTestContainer} across the promise-style tests of a file, + * with raw `pg`, Drizzle, and Effect `Database` access over one pool. + */ +export async function startPostgresTestHarness() { + const scope = Scope.makeUnsafe(); + const closeScope = () => Effect.runPromise(Scope.close(scope, Exit.void)); + try { + const { url } = await Effect.runPromise( + postgresTestContainer.pipe( + Effect.tap(({ url }) => migrateTestDatabase(url)), + Scope.provide(scope), + ), + ); + const databaseUrl = url.href; + const pool = new Pool({ connectionString: databaseUrl, max: 8 }); + // Closed before the container is removed. + await Effect.runPromise( + Scope.addFinalizer(scope, Effect.promise(() => pool.end().catch(() => undefined))), + ); + const databaseRuntime = ManagedRuntime.make( + Layer.effect( + Database, + Effect.gen(function* () { + const client = yield* PgClient.fromPool({ + acquire: Effect.acquireRelease( + Effect.succeed(pool), + () => Effect.void, + ), + applicationName: "ployz-cloud-test", + }); + const effectDatabase = yield* makeWithDefaults().pipe( + Effect.provideService(PgClient.PgClient, client), + ); + return makeDatabaseService(effectDatabase); + }), + ).pipe( + Layer.merge(Layer.effect(ReportingDatabase, makeReportingDatabase(databaseUrl))), + Layer.provide(Reactivity.layer), + ), + ); + // Finalizers run in reverse: the runtime closes before the pool. + await Effect.runPromise( + Scope.addFinalizer(scope, Effect.promise(() => databaseRuntime.dispose())), + ); + const database = await databaseRuntime.runPromise(Database); + return { + databaseUrl, + reportingDatabase: await databaseRuntime.runPromise(ReportingDatabase), + db: drizzle({ client: pool }), + database, + pool, + runEffect( + operation: Effect.Effect, + ) { + return databaseRuntime.runPromise(operation); + }, + runTransaction( + operation: ( + transaction: typeof database.drizzle, + ) => Effect.Effect, + ) { + return databaseRuntime.runPromise( + database.transaction( + Effect.gen(function* () { + return yield* operation((yield* Database).drizzle); + }), + ), + ); + }, + stop: closeScope, + }; + } catch (error) { + await closeScope(); + throw error; + } +} + +export type PostgresTestHarness = Awaited< + ReturnType +>; diff --git a/dashboard/vitest.config.ts b/dashboard/vitest.config.ts index 294d28ec1b..4a26492310 100644 --- a/dashboard/vitest.config.ts +++ b/dashboard/vitest.config.ts @@ -34,6 +34,8 @@ export default defineConfig({ name: "postgres", include: ["src/**/*.postgres.test.ts"], maxWorkers: 2, + // Removing a test container under load can outlast the default 10s hook timeout. + hookTimeout: 60_000, sequence: { groupOrder: 1 }, }, }, diff --git a/docs/adr/0003-organization-enrollment-protocol.md b/docs/adr/0003-organization-enrollment-protocol.md deleted file mode 100644 index 6b35d58140..0000000000 --- a/docs/adr/0003-organization-enrollment-protocol.md +++ /dev/null @@ -1,3 +0,0 @@ -# Organization enrollment uses one versioned Founding Claim - -Cloud coordinates one Organization-scoped Founding Claim through enrollment protocol version 1 (reset from pre-stable version 2 for 0.2.0). Founder completion is the final Cloud commit only after requested ingress and DNS converge, a protected Connection Candidate is persisted against the current claim, and shared Machine RPC negotiation verifies the intended Machine; failures resume that founder or require an explicit verified reset rather than automatic transfer. [0005](0005-management-connection-candidates.md) defines the protected connection and completion contract. diff --git a/docs/adr/0005-management-connection-candidates.md b/docs/adr/0005-management-connection-candidates.md deleted file mode 100644 index ecfe20e99b..0000000000 --- a/docs/adr/0005-management-connection-candidates.md +++ /dev/null @@ -1,9 +0,0 @@ -# Management Capability connection candidates - -SSH and the Management Capability share the existing Machine RPC Connector and identity confirmation. Cloud stores `organizationMachine` as encrypted backend-only connection metadata, scoped by Organization, Machine and current pairing; it is neither membership nor presence. - -The authenticated founder publishes its candidate before completion. The enrollment claim fixes the intended Machine and pairing generation, while its Management Capability may rotate. An authenticated retry may replace the capability only after shared negotiation verifies the intended Machine; publication rechecks the current claim and unchanged saved candidate after verification, without holding a database lock across the network call. The current claim records the intended Machine as well as its public key; shared negotiation must confirm that Machine before transactional first-connect admission. Matching retries resume even after a lost completion response. Candidate absence and transport failure never authorize founder transfer or reset; reset remains unavailable until endpoint revocation can be confirmed. - -The greenfield database history is a single baseline containing the current schema. It initializes fresh databases. Every new pairing must name a non-null 32-hex founding Machine ID. - -Supported Machine RPC connections use local sockets, SSH, or the in-process iroh management transport: the daemon serves Machine RPC on its Management Identity, and clients dial it through the self-hosted Ployz Relay, upgrading to direct paths when they work. Set stages a fresh public client key while retaining the accepted key. Authenticating and negotiating DescribeContract with a pending key only verifies identity; it does not change the accepted key. Cloud commits the verified candidate before issuing operational RPCs. The first operational RPC activates the replacement, so removal racing verification retains a usable saved credential. Lost issuance responses leave the old key usable for retry. Only public client keys are persisted by the daemon. A CLI enrolling through a saved Management connection durably replaces its local capability before publishing it to Cloud, so activation followed by a lost HTTP response leaves the same command retryable. Pairing and key handover are one tagged persisted state; unpaired records cannot contain client keys. Each management RPC checks its key at dispatch, and local mutations recheck after acquiring admission, including queued Build work. Clear rejects queued work whose key has been revoked; work that already acquired admission may finish. Removing a pairing clears both accepted and pending client keys in one mutation and closes its connections; a successful Clear or an authenticated response confirming that both client keys and the pairing are cleared is removal confirmation. Refusal of a replaced key and an unreachable Machine stay unconfirmed. diff --git a/docs/adr/0007-service-configuration-ownership.md b/docs/adr/0007-service-configuration-ownership.md deleted file mode 100644 index 2f5523656a..0000000000 --- a/docs/adr/0007-service-configuration-ownership.md +++ /dev/null @@ -1,13 +0,0 @@ -# Service configuration ownership - -Status: Accepted - -Service display metadata, deployment policy, and deployable configuration have different lifetimes. Putting them into one authored document made renames and trigger preferences look like runtime changes and let Discard undo credential rotation. - -Store display name and deployment policy on the Service identity. Edit them immediately through the metadata command. Keep private DNS independent. Only deployable settings belong to the Environment document and Working/Saved/Applied comparisons. TanStack DB joins these owners for reads; configuration and metadata have separate typed writers. - -Saved source/branch and current policy determine automated admission. Recheck under the Environment lock used by policy edits. Waiting CI triggers remain durable and re-evaluate the latest Saved target when resumed. Once admitted, a deployment retains its snapshots. - -Configuration references a Service-owned registry credential by stable ID. Rotation replaces encrypted contents and advances credential revision without editing configuration. Admission resolves and freezes those contents; retries preserve the frozen material. No shared credential catalog is introduced. - -Core owns deployable configuration and comparison; Cloud owns display metadata, trigger policy, and encrypted credential storage. Existing serialized contracts change together: no compatibility wrapper or ignored-field blacklist. diff --git a/docs/agents/domain.md b/docs/agents/domain.md index c6bfcc1d78..cfd2f2b822 100644 --- a/docs/agents/domain.md +++ b/docs/agents/domain.md @@ -6,7 +6,7 @@ When changing domain behavior, terminology, or ownership boundaries: - Read [CONTEXT-MAP.md](../../CONTEXT-MAP.md), then the relevant glossary. Read both glossaries for work crossing the Engine–Cloud boundary. -- Read relevant ADRs under `docs/adr/`. +- Read the affected project's `DESIGN.md`. - Use the glossary's defined terms rather than introducing synonyms. -- Surface conflicts with existing ADRs explicitly. +- Surface conflicts with `DESIGN.md` explicitly. - Create or amend domain documentation only when a term or decision is actually resolved. diff --git a/docs/audits/2026-09-effect-v4-usage.md b/docs/audits/2026-09-effect-v4-usage.md deleted file mode 100644 index dac82c2137..0000000000 --- a/docs/audits/2026-09-effect-v4-usage.md +++ /dev/null @@ -1,170 +0,0 @@ -# Effect v4 usage audit (dashboard) - -Audit of `dashboard/src` against `effect@4.0.0-rc.112`, `@effect/sql-pg@4.0.0-rc.112`, -`@effect/vitest@4.0.0-rc.112`. Six areas were reviewed in parallel (services and -layers, errors, Schema, composition and concurrency, tests, database and Inngest -boundaries); every API claim below was checked against the installed `.d.ts` files. - -Two findings from the first pass were retracted after verification and are -recorded here so they are not re-raised: - -- The `retriable` field on domain errors is a deliberate, pervasive convention - (30+ sites) read through `parseErrorEvidence`, not an orphan. -- `cause.name === "NonRetriableError"` in `environment-deployment.inngest.ts` is - required: Inngest rethrows a step's exhausted failure as `StepError`, which - keeps only the serialized `name`. -- Ployz SDK methods other than `connect`, `confirm`, and `watch` do not accept an - `AbortSignal`, so not threading one there is not a defect. -- `@effect/sql-pg`'s `PgClient.listen` is not a drop-in for the hand-rolled - `subscribeDatabaseNotifications`: it registers a no-op `error` handler on its - dedicated client and never fails the stream on connection end, so a dropped - backend would go undetected. The hand-rolled version fails on `error`/`end`, - which is what makes reconnect possible. It stays. -- `pg_notify` in `pairing-removal.server.ts` runs inside the transaction on - purpose: transactional NOTIFY fires on commit. -- `Schema.is` takes no parse options, so it cannot replace the guards that - reject excess properties (`isValid`, the two GitHub struct guards). Only the - three option-free scalar guards were converted. -- The `step.run` around the envelope decode in - `environment-deployment.inngest.ts` is a tested contract (the engine test - asserts one `step.run` call for the decode). It stays. -- Internal Inngest event payloads are not unvalidated: every consumer decodes - its envelope with a `Schema.Struct` at the handler (deploy, volume and - machine removal, teardown, GitHub sync and ingestion, billing sync, - cancellation). Only the `eventType` declarations in `inngest/events.ts` are - type-only, and the per-consumer schemas are duplicated rather than shared. - That is a consolidation, not a bug, and was not pursued. - -## Top five - -### 1. Effect to Inngest error boundary (fixed in this PR) - -`src/server/run.server.ts` - -- `makeEffectRunner` threw the raw `Cause` whenever the cause tree carried a - defect or interruption, even when a typed failure was present. A `Conflict` - racing a finalizer defect lost its public-error category and its - non-retriable classification. -- `makeInngestEffectRunner` could not classify a raw `Cause` (it is not an - `Error`), so every defect surfaced to Inngest as `"Effect activity failed."` - and was retried. The `NonRetriableError` branch dropped `cause` for - non-`Error` values. - -Fix: a typed failure wins (matching `Cause.squash` precedence) and the shadowed -defect is logged; classification and messages use the squashed cause; `cause` -is always forwarded. - -### 2. Pairing-removal listener latches dead (fixed in a follow-up PR) - -`src/modules/runtime/organization-runtime.server.ts:94-104` - -- On any stream failure `listenerFailure` is set and never cleared, so every - later `OrganizationRuntime.open` fails until the process restarts. - `database.server.postgres.test.ts` shows `pg_terminate_backend` produces - exactly that failure. - -Fix: the listener re-subscribes with exponential, jittered backoff capped at -30 seconds. While it is down, `open` fails closed and live sessions are -closed, since removals during the gap were not observed. The first LISTEN -still gates layer startup. Malformed payloads are logged and skipped instead -of ending the listener. The database-layer subscription is unchanged (see the -retraction above). - -### 3. Runtime escape hatches and lost interruption (fixed in a follow-up PR) - -- `src/modules/deployments/runtime-activities.server.ts:233` runs a bare - `Effect.runPromise` with a manually provided `Database` inside the SDK - `onEvent` callback, while already executing under `AppRuntime`. Plan: a - bounded `Queue` fed by `Queue.offerUnsafe` from the callback and drained by a - `forkScoped` child fiber, so context, spans, and interruption are inherited. -- `src/server/auth.server.ts:153-162` `runHook` is a second hand-built runtime - for better-auth hooks. Plan: call `runAppEffect`, or capture - `Effect.context()` once and `Effect.provideContext` if there is an - initialization-order cycle. -- `src/routes/api/runtime/events.ts:35` calls `runAppEffect` without - `{ signal: request.signal }`, unlike every boundary in `tanstack.ts`. -- `src/modules/github/github-observation.api.ts:434,511` ignore the - `AbortSignal` that `Effect.tryPromise` passes to the thunk. -- `AppRuntime.dispose()` is never called outside a test fixture; there is no - SIGTERM hook, so the pool's `acquireRelease` finalizer never runs in - production. - -### 4. No ceiling on the organization connect phase (fixed in a follow-up PR) - -- `OrganizationRuntime.open` had no bound on establishing a shared machine - session. The SDK's `timeoutMs` bounds the whole session lifetime, which - would cut long deploys, so only the connect phase is bounded (30 seconds, - `ORGANIZATION_CONNECT_TIMEOUT`). A timeout surfaces as `unreachable`. -- `preview`/`inspect` take no `AbortSignal`, so an Effect timeout there would - only orphan the promise; interactive callers are bounded by the request - signal and the session scope closing. -- The original first bullet (a remote call inside a row-locked transaction) - is retracted; see above. - -### 5. Test conventions (partially fixed in a follow-up PR) - -- 18 of about 60 Effect-touching test files use `@effect/vitest`; 17 of 28 - `*.postgres.test.ts` files hand-roll `ManagedRuntime.make` plus - `beforeAll`/`afterAll`. -- 32 sites assert `Exit.isFailure` and dig into `exit.cause` manually; the - `assertExitFailure`/`assertFailure`/`assertInstanceOf` helpers in - `@effect/vitest/utils` are unused. `config.server.effect.test.ts:46,82,97` - do not check which error fired. -- Two near-identical postgres docker harnesses exist: `src/test/postgres.ts` - (Effect-native) and `github-ingestion.postgres-test-harness.ts` - (promise-based, used by 17 files, most outside GitHub). -- `TestClock` is unused despite `Effect.sleep` retry loops in - `pairing-removal.server.ts:173` and `runtime-activities.server.ts:217`. -- `Layer.mock` and `it.scoped` do not exist in rc.112; the codebase correctly - never uses them. - -Done: the `Exit.isFailure` digs in unit tests use `Effect.flip` plus an -`instanceof` assertion, and a static-analysis test keeps the idiom out. -Remaining, since they need a Postgres container to verify: migrate the -`*.postgres.test.ts` files to `it.layer`, consolidate the two docker -harnesses, and add `TestClock` tests for the two `Effect.sleep` loops. - -## Smaller items - -Done in a follow-up PR: the GitHub token `Cache`, `Schema.is` for the scalar -guards, logging of dropped dispatch failures, the duplicate -`isUniqueViolation`, and removal of the unused `parseEnvironmentResourceNodeConfig`. -Still open: branded identifiers (large and mechanical; best done one -identifier at a time once the current PRs merge) and `publicMessage` on public -errors (a product copy decision, not a code defect). - -- `Uuid` is an unbranded string reused for every identifier in 15+ files; - `Schema.brand` is used once. Brand one identifier at a time and follow the - type errors. -- `Schema.is(schema)` replaces `isValid` in `environment-design/schema.ts` and - the five `isValidGithub*` guards in `github-ingestion.contracts.ts`. -- `environment-resource-node.ts:89-95` builds a typed `SchemaError` Effect then - `Effect.runSync`s it into a throw; return the Effect. -- `encodePublicError` replaces every domain message with one of six fixed - strings. Add an opt-in `publicMessage` on tagged errors. -- `github-ingestion.branch.repository.ts:538-548` drops every non-SQL dispatch - failure and every defect silently; add `Effect.tapErrorCause` logging and - re-fail on `Conflict`. -- The GitHub installation-token cache is a mutable `Map` without in-flight - deduplication; `Cache.make({ lookup, capacity, timeToLive })` deduplicates - concurrent misses. -- `workspace-operations.server.ts:35-37` duplicates `isUniqueViolation` from - `database.server.ts`. -- `environment-deployment.inngest.ts:433-437` wraps a pure envelope decode in - `step.run`, costing a step round-trip for no durability. - -## What is already right - -- Layer memoization in `runtime.server.ts` is correct: `InfrastructureLive` is - shared by object identity between the auth and runtime branches, so each - leaf layer is built once. -- `Database.transaction` swaps the service correctly at every call site - checked; callers re-acquire `Database` inside the transaction body. -- `Effect.fn` at 336 sites versus 109 `Effect.gen`; all 27 `Effect.tryPromise` - boundaries produce tagged errors, enforced by - `effect-try-promise-boundary.test.ts`. -- `Context.Service` is the current API in this rc (there is no `ServiceMap` - module and no `Effect.Service`). -- `organization-runtime.server.ts` session scoping (`Scope.fork`, `Deferred` - cancellation raced against connect, finalizers) is the pattern the rest of - the codebase should copy. diff --git a/docs/audits/cloud-git-builds-qualification.md b/docs/audits/cloud-git-builds-qualification.md deleted file mode 100644 index 922d471a1a..0000000000 --- a/docs/audits/cloud-git-builds-qualification.md +++ /dev/null @@ -1,152 +0,0 @@ -# Cloud Git build qualification - -Live qualification on 2026-09-21. This report records measured results, including -the cancellation defect found during the run and its successful requalification. - -## Deployed code and scope - -- Reviewed code: `39fc17842b906bbebd32d1edbbf568decf2b4c6d`. -- Railway deployment: `4cc52c71-012d-4872-b9a4-b13f128cd3fe`; remote revision file - matched that SHA and the native SDK loaded. -- Final cancellation correction and cleanup: reviewed code - `74952ac7f5c1ced727ec2814684982775c693043`, Railway deployment - `cb2af351-e21e-4f9c-bfef-ee14ddd8b0d6`. Remote revision, native SDK, public auth, - signed workflow execution and private registration were verified again. -- Existing VPS: `ployz-dev`, `149.28.186.137`, machine - `fd78a2aac76a44d197f586e14e23b822`, beta38 daemon, Docker 29.8.1, x86_64. - No daemon protocol change or upgrade was required. -- Private source: `getployz/ployz-beta-fixture`, branch - `spec930-build-qualification`, commit - `b314ca6d19c19bf700ea6ded73dfa1d06466e30d`. -- Isolated fixture: project `payable-harrier`, environment - `6ca50ed8-39e2-432a-9d16-2ef892599802`, namespace - `payable-harrier-production`, service `db851e0d-51a1-4f79-b472-d496753af934`. - -An external bundled qualification driver invoked existing authorized domain -commands with the existing organization member Actor. It created the fixture, -authored settings, submitted the normal reviewed publication, and let the real -Inngest deployment workflow execute. It did not insert deployment rows or forge -browser sessions. This qualifies the domain/workflow/runtime path; it does not -claim a browser authentication/UI smoke test. - -## Results - -All times below are UTC. Initial cases recorded source SHA `b314ca6d...`; the -final cancellation retest recorded `e2daad27b2c2d3849a3a06fec18f3a37698f0adc` -from branch `spec930-cancel-qualification`. That branch adds `Dockerfile.cancel` -with an uncached `sleep 961` step. Cleanup has no Git source. - -| Case | Attempt | Start → finish | Result | -| --- | --- | --- | --- | -| Dockerfile | `1002c0fd-0142-4c68-959c-faad23b0e4e0` | 13:26:33.868 → 13:27:26.293 | Applied; selected `ployz-dev`, built and delivered image, running application returned expected health and identity responses. | -| Cached Dockerfile | `77b336b1-ffea-4f91-a8c2-2fb5efe01c8b` | 13:27:47.947 → 13:28:06.363 | Applied; actual BuildKit `#7 CACHED` and `#8 CACHED` output, 18.4 seconds. | -| Railpack | `b3ee02fc-31cc-4391-93c3-d18e124d209a` | 13:29:19.443 → 13:31:15.052 | Applied; public HTTPS `/health` and `/identity` returned 200 with expected fixture JSON. | -| Deliberate failure | `98543c59-0b58-4e82-a44b-f7ff71e63982` | 13:32:02.499 → 13:32:15.951 | Expected failure during Building; bounded output contains exit 42; no transfer/ready phase; previous applied container unchanged. | -| Explicit Retry | `f7170151-c064-44ff-b532-74d261b30956` | 13:32:46.315 → 13:32:59.740 | Expected repeated failure; recorded SHA and settings preserved. | -| Quiet cancellation | `a02a41c7-e413-410e-b5c1-70070077a295` | 13:33:32.201 → 13:34:23.085 | **Defect:** remote cancellation terminated the build and cleaned its builder, but Cloud recorded failed instead of cancelled. | -| Long quiet completion | `7678b896-4ee9-4dfb-bbb5-675a03aa58d6` | 13:36:12.852 → 13:52:36.071 | Applied; uncached 960-second build, 983.2-second live Inngest step, public HTTPS health 200. | -| Cancellation retest | `85a44701-0372-4023-9aab-d015cc0ec5ea` | 14:03:21.722 → 14:04:23.683 | **Passed on final code:** cancelled / `sdk_preparation_cancelled`; actual sleep 961 process and builder stopped; previous application stayed healthy. | -| Fixture cleanup | `f1073af6-177d-4ed3-92e9-ccbe88a50baa` | 14:05:25.298 → 14:05:41.014 | Applied through normal reviewed deletion; fixture container removed. | - -The fixture initially authored port 8081 based on its image default. Runtime supplies -`PORT=8080`; the application was healthy there. The fixture route was corrected -through the ordinary authoring command to target 8080 before Railpack qualification. -The resulting public HTTPS route returned the expected identity payload. This was -a qualification configuration correction, not a source-code change. - -Failure and Retry retained the Railpack container -`5adbeb9bb9b614d3860885d1098886458eeb261a425369d07c0bfab3cba08d9f` -and its immutable image digest -`sha256:80838aa6f89b792a3951f6b98d867c9022e206bedb40dba2d39322bc5994c2b5`. -Its public health response remained 200. - -## Isolated connection loss - -A separate Node child owned only its own SDK connection and an unconfirmed fixture -preparation. The parent used the normal authorized Git acquisition and canonical -pairing loader. For this fault test only, its temporary Dockerfile added a fresh -UUID stdout marker before `sleep960`; this prevented caching and distinguished -actual execution from a cached command description. Main Cloud cases used the -unchanged pinned source. - -After observing the timestamped BuildKit marker, the parent killed that child with -SIGKILL. No deployment confirmation occurred. By 13:36:03 the observed sleep process -PID 17142 and its BuildKit container were gone. The daemon reported a missing -temporary Build tag during cleanup; no host quarantine conclusion is inferred. -The parent scope removed the temporary checkout. - -This is real isolated SDK connection loss and server cleanup. It is narrower than -killing a complete live Cloud workflow: unknown-outcome mapping remains covered -at the deterministic Cloud workflow seam. No shared Cloud session, daemon, relay, -or user workload was stopped for the fault. - -## Private networking and duration - -All 23 registered function callbacks used the private origin -`http://web.railway.internal:8080` and path `/api/inngest`, including normal -function/step query parameters. Unsigned private POST returned 401; public auth -returned 200. The live deployments above executed through those registered callbacks. - -The uncached quiet step started 13:36:26; host process PID 18262 was observed running -`sleep960`. It completed successfully. Inngest run `01M322WVTEMF5WW1FX8N8MQCX1` recorded -a completed `executor.step` from 13:36:12.876 to 13:52:36.098: **983.222170 seconds**. -The deployment applied at 13:52:36.071; public HTTPS health returned 200. This proves -one real quiet request longer than 15 minutes completed through the private route. - -Inngest 1.45.1 has a two-hour executor request ceiling. Node's ongoing-response socket -timeout is disabled; request/header limits concern receiving the request. -Core defaults allow 10 minutes queue wait, 30 minutes active build, and bounded -cleanup (up to 70 seconds daemon teardown), plus source acquisition, multiple serial -builds, transfer, and deployment. **Aggregate timeout limitation:** three serial builds each using the full -10-minute queue allowance and 30-minute active-build allowance consume the entire -120-minute HTTP ceiling before source acquisition, cleanup, image transfer, or -deployment. Worst-case multi-service duration is therefore unsupported and -unqualified by this run. Only the measured single-service path is live-qualified; -this is not full timeout-budget acceptance for arbitrary deployment sizes. - -## Preservation, cleanup and remaining scope - -Before qualification, the existing `mechanical-platypus-production` environment's -authored-intent fingerprint was `4c0f545379f1edb7410529aebb78d33b`, and its latest -Applied attempt was `ee54c378-44f3-4627-a7cf-3e45161fb97a`. The five existing nginx -container IDs were `984cb25bd936`, `f508317fab5b`, `3053962b5e3b`, `3255feb27136`, -and `9ca4340136c2`; ingress was `d9babc0fe62f`, Corrosion `3c9d1a6d3b0c`. -Final checks confirmed the same authored-intent fingerprint, latest Applied -attempt, and all seven original container IDs. The fixture service was deleted -through the normal domain commands and its container is absent. The isolated -project and attempt history remain as qualification evidence. The only additional -running container is Ployz-managed `ployz-unregistry`; no host-wide Docker cache -pruning was performed. Qualification scripts and the temporary manifest were -removed from Railway after confirming no active fixture attempt. - -Distinct builder/destination delivery belongs to the existing multi-Machine -contract harness; this live run used one VPS and does not independently prove -multi-Machine transfer. Full repository check results are recorded by the parent -implementation workflow. The cancellation fix changes the SDK structured outcome to cancelled only when -cancellation was requested and the remote result confirms termination; Unknown -remains Unknown. The real retest observed sleep 961 PID 20714 before requesting -Cancel, then confirmed the process and BuildKit container were gone, durable -status was cancelled, and the previous application still returned health 200. -No application execution followed cancellation. The original failed attempt is -retained unchanged as evidence of the defect. - - -## Repository checks - -The implementation coordinator verified the following on the reviewed branch: - -- `cargo test --locked -p ployz-core -p ployz-build -p ployz --lib --tests` passed; - the affected CLI library/integration suite was rerun after review fixes. -- Four actual Node → native SDK → RPC contracts passed, including successful - same-Machine and distinct build-only/runtime-only Machine variants, zero - eligible builders before upload, failed versus unknown outcomes, and quiet - cancellation retaining stage/work evidence. This is the distinct-Machine - evidence; it is separate from the single-VPS hosted run. -- Thirteen real PostgreSQL runtime-persistence tests passed, including cancelled - terminalization. Final `pnpm pr:check` on `74952ac7` passed all stages: - 195 files, 890 tests. All four review axes passed on that candidate; - [CI run35608018717](https://github.com/getployz/ployz2/actions/runs/35608018717) - succeeded. - -Existing privileged Docker Compose suites remained ignored; this report does -not claim every privileged test executed or sum nested subprocess test counts. diff --git a/docs/design/on-demand-container-logs.md b/docs/design/on-demand-container-logs.md deleted file mode 100644 index d6168f3fe0..0000000000 --- a/docs/design/on-demand-container-logs.md +++ /dev/null @@ -1,48 +0,0 @@ -# On-demand container logs - -Status: implementation authorized; no prototype gate. This document records the accepted scope. - -Cloud's Deployment, Service and Environment pages share one viewer. Deployment logs combine concise lifecycle events with stdout/stderr from application and pre-deploy hook containers. Build logs remain separate. Deployment completion does not stop following container output. - -Application output stays in Docker. The viewer initially reads 200 records per container, follows while open, and offers Load older. A viewer-local TanStack DB collection owns loaded records; rendering is virtualized, with no additional browser buffer cap. Search covers loaded output; service and server filters narrow that output. - -The existing Corrosion runtime watch discovers matching containers, including retained stopped containers and hooks. No polling discovery process or persistent log collector is added. Containers carry the stable Cloud service ID as a user label and the creating deployment attempt ID as execution metadata; deployment identity does not alter authored service configuration. The existing Project Name identifies the environment namespace. Machine ID and Container ID identify each source. - -## Transport and history - -Preserve the existing ContainerLogs RPC for tails and following. Add an independently advertised ContainerLogHistory operation for finite history reads: Container ID, decimal nanosecond timestamp boundary, and a limit of 1–1000 older records. The daemon expands local Docker tails and returns the nearest older records plus the inclusive timestamp boundary. Timestamp groups remain intact, so a page can exceed its requested count. - -Server RPCs must remain supported after release. Do not expose Cloud identities or speculative Docker record cursors in this transport. The SDK handles filters, source discovery, multiplexing and viewer record identities. History positions are per source because initial tails cover different time ranges. Loading history leaves the live stream open. - -Docker does not provide permanent record IDs or snapshots. Pagination is best effort across rotation, clock regressions and identical timestamp groups; an opaque token would not strengthen those guarantees. Boundary reads replace a potentially partial timestamp group in the viewer. Identical messages remain distinct. Removed containers and rotated output are unavailable; this is not retained logging. - -Follow reconnects after clean EOF when Corrosion observes the container running, rereading from the last timestamp's second and suppressing already-delivered boundary records. Source errors are reported separately; one failed source does not stop the others. Closing the viewer cancels its reads. - -Paid ClickHouse storage, continuous collection, 30-day retention and billing are deferred. No backend plugin framework is needed for this release. - -## Verification - -Use daemon history selection tests, the existing real-Docker RPC integration test, SDK stream tests and Cloud collection/authorization seams. Run the dashboard's final PR gate and four independent review axes. No separate exploratory prototype is required. - -## Measured read cost — 2026-09-22 - -Benchmarked Docker 29.1.3 on the development VM (AMD Ryzen 9 5950X, x86-64), through the local Unix socket. Synthetic stdout records contained a sequence number and 240 padding characters (251 payload bytes, approximately 290 bytes with Docker timestamps/framing). Three measured runs per case; medians below. Recent, warm log files; this is not a production VPS, cold-disk, network, or end-to-end Cloud benchmark. - -| Read strategy | History / scenario | Median | -| --- | --- | --- | -| Scan history before cutoff, retain last 200 | 10,000 lines, cutoff near end | 62 ms | -| Same | 100,000 lines | 489 ms | -| Same | 1,000,000 lines | 4,973 ms | -| Expanding native tails, filter locally | 1,000,000 lines, preceding recent 200 | 3.6 ms json-file; 3.0 ms local | -| Same | 100,000 newer lines beyond cutoff | 1,171 ms json-file; 1,351 ms local | -| Same | Concurrent writer targeting 10,000 lines/sec, cutoff captured two seconds earlier | 546 ms json-file | - -The expanding read starts at tail=400, filters before the requested timestamp locally, and doubles only if it has not found 200 eligible records and Docker returned a full tail. Each query returns only the selected 200. Static and concurrent-write tests asserted exact sequence-number ranges. This tests monotonic, distinct timestamps, not timestamp ties, clock regressions, rotation, or browser/live-stream merging. - -Native tail=200 with an older until bound returned zero records despite retained older output, confirming that it cannot implement a previous-page request. - -Recommendation: preserve the Load older UI and implement the extra read on the Machine, not in Cloud. Recent history required only 116 KB of local Docker response versus approximately 290 MB for the million-line full scan. Returning 200 records requires roughly 58 KB before protocol differences; this network reduction is calculated, not measured across iroh. No application-log persistence is introduced. The current reader sends all requested Docker records outward, so local selection needs a deliberate RPC/daemon change. - -This supersedes the earlier recommendation to restart/replace the viewer's live stream for every history expansion: perform finite history reads separately, retaining the current live stream. Record identity, equal-timestamp boundaries, and merging are covered by implementation tests. The benchmark supports the cost decision, not a claim of exact pagination under every Docker retention condition. - -Runnable benchmark artifacts: `/tmp/ployz-log-bench/bench.py`, `/tmp/ployz-log-bench/adaptive.py`; raw results: `results.json` and `adaptive-results.json` in the same directory. Benchmark containers were removed. diff --git a/evidence/product-paths.tsv b/evidence/product-paths.tsv deleted file mode 100644 index 65173f8970..0000000000 --- a/evidence/product-paths.tsv +++ /dev/null @@ -1,4 +0,0 @@ -path rung1 rung2 rung3 rung4 rung5 -machine-installer crates/ployzd/src/installer/mod.rs::tests::{installation_interface_contract,zfs_candidate_download_contract}; crates/ployzd/src/installer/release.rs::tests - - - ployzd install --software-only with a foreign-owned freshly built musl release on the retained Ubuntu systemd Machine -machine-setup crates/ployz/src/provisioning.rs::tests; scripts/test-{missing-ssh-client,qualify-release}.sh crates/ployz/tests/cloud_init/daemon_sync.rs crates/ployz/tests/setup_cli.rs - scripts/qualify-release.sh with verified musl CLI and daemon archives on real Machines -machine-upgrade crates/ployzd/src/installer/upgrade.rs::tests::upgrade_attempt_contract; crates/ployzd/src/machine_api/local_tests.rs::upgrade_and_machine_mutations_refuse_each_other_at_the_rpc_boundary crates/ployz-core/tests/{contract,capabilities}.rs crates/ployz/tests/cli_shape.rs::machine_upgrade_requires_explicit_targets_and_has_typed_inspection - scripts/qualify-release.sh with real source/target musl releases, independent worker, disconnected client, persistent ZFS traffic, corrupt preflight, failed activation, and explicit repair diff --git a/scripts/ci.py b/scripts/ci.py index 62fd44350e..cab5ebb30a 100644 --- a/scripts/ci.py +++ b/scripts/ci.py @@ -22,7 +22,7 @@ def select(paths): selected = {"contracts"} for path in paths: - if path.endswith(".md") or path == "evidence/product-paths.tsv" or path.startswith(("docs/", ".agents/", ".claude/", ".cursor/", "core/site/")): + if path.endswith(".md") or path.startswith(("docs/", ".agents/", ".claude/", ".cursor/", "core/site/")): continue if path.startswith(".github/") or Path(path).name in {"Cargo.toml", "Cargo.lock"}: return JOBS.copy() diff --git a/scripts/test-ci.py b/scripts/test-ci.py index fb0d2d164c..e1eac4abf6 100644 --- a/scripts/test-ci.py +++ b/scripts/test-ci.py @@ -17,7 +17,6 @@ class CiTest(unittest.TestCase): def test_selects_checks_for_actual_consumers(self): cases = [ (["core/DESIGN.md"], {"contracts"}), - (["evidence/product-paths.tsv"], {"contracts"}), (["core/relay/compose.yaml"], {"contracts"}), (["dashboard/src/app.tsx"], {"contracts", "cloud"}), (["core/crates/ployz/tests/management_connect.rs"], {"contracts", "rust-lint", "rust-tests", "macos-cli"}),