n8n/docs/generated/postgres-schema/public.source_control_scope.md
Irénée f06db123e4
feat: spike multi-repository source control and project isolation
Add multi-repo source control connections with per-project scoping
(LIGO-923): connection entities/repositories/services, sync service,
REST controller, DB migration, schema docs, and editor-ui for managing
connections, push/pull, and project-level source control.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-07 12:50:41 +01:00

3.1 KiB

public.source_control_scope

Columns

Name Type Default Nullable Children Parents Comment
connectionId varchar(36) false public.source_control_connection
createdAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
id varchar(36) false
projectId varchar(36) true public.project
scopeType varchar(16) false
updatedAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false

Constraints

Name Type Definition
CHK_source_control_scope_scopeType CHECK CHECK ((("scopeType")::text = ANY ((ARRAY['project'::character varying, 'instance'::character varying])::text[])))
FK_72b7e38e545688d47bce4534384 FOREIGN KEY FOREIGN KEY ("connectionId") REFERENCES source_control_connection(id) ON DELETE CASCADE
FK_97d8e9baacd10e8ea11db44ed35 FOREIGN KEY FOREIGN KEY ("projectId") REFERENCES project(id) ON DELETE CASCADE
PK_5466e741188f23e3a7b29ed0c10 PRIMARY KEY PRIMARY KEY (id)
source_control_scope_connectionId_not_null n NOT NULL "connectionId"
source_control_scope_createdAt_not_null n NOT NULL "createdAt"
source_control_scope_id_not_null n NOT NULL id
source_control_scope_scopeType_not_null n NOT NULL "scopeType"
source_control_scope_updatedAt_not_null n NOT NULL "updatedAt"

Indexes

Name Definition
IDX_source_control_scope_project CREATE UNIQUE INDEX "IDX_source_control_scope_project" ON public.source_control_scope USING btree ("projectId")
PK_5466e741188f23e3a7b29ed0c10 CREATE UNIQUE INDEX "PK_5466e741188f23e3a7b29ed0c10" ON public.source_control_scope USING btree (id)

Relations

erDiagram

"public.source_control_scope" }o--|| "public.source_control_connection" : "FOREIGN KEY (#quot;connectionId#quot;) REFERENCES source_control_connection(id) ON DELETE CASCADE"
"public.source_control_scope" }o--o| "public.project" : "FOREIGN KEY (#quot;projectId#quot;) REFERENCES project(id) ON DELETE CASCADE"

"public.source_control_scope" {
  varchar_36_ connectionId FK
  timestamp_3__with_time_zone createdAt
  varchar_36_ id
  varchar_36_ projectId FK
  varchar_16_ scopeType
  timestamp_3__with_time_zone updatedAt
}
"public.source_control_connection" {
  varchar_16_ branchColor
  varchar_255_ branchName
  boolean branchReadOnly
  boolean connected
  varchar_16_ connectionType
  timestamp_3__with_time_zone createdAt
  text encryptedPassword
  text encryptedPrivateKey
  text encryptedUsername
  varchar_36_ id
  text publicKey
  text repositoryUrl
  timestamp_3__with_time_zone updatedAt
}
"public.project" {
  timestamp_3__with_time_zone createdAt
  uuid creatorId FK
  json customTelemetryTags
  varchar_512_ description
  json icon
  varchar_36_ id
  varchar_255_ name
  varchar_36_ type
  timestamp_3__with_time_zone updatedAt
}

Generated by tbls