Source Control Deployments — Deployment tracking
| Field | Type | Required | Description |
|---|
| orgId | string | Yes | Organization ID for multi-tenant isolation |
| repositoryId | Id<"sourceControlRepositories"> | Yes | |
| programId | Id<"programs"> | Yes | Parent program reference |
| environment | string | Yes | |
| rawEnvironment | string | Yes | |
| status | ”pending” | “in_progress” | “success” | “failure” | “error” | “inactive” | Yes | |
| sha | string | Yes | |
| ref | string | Yes | |
| providerDeploymentId | number | No | |
| deployedBy | string | No | |
| deployedAt | number | Yes | |
| completedAt | number | No | |
| relatedPRNumbers | number[] | No | |
| relatedTaskIds | Id<"tasks">[] | No | |
| manualPRAdjustments | object | No | |
| workflowRunId | number | No | |
| workflowName | string | No | |
| durationMs | number | No | |
| Name | Fields |
|---|
| by_program_env | programId, environment |
| by_repo | repositoryId |
| by_sha | sha |