Skip to main content
DocumentWorkspaceConnector is a junction table that records the relationship between a Document and the WorkspaceConnector responsible for ingesting or distributing it. Each row captures which connector handled a given document, in which direction (input = ingested from a source, output = routed to a destination), and when the link was created. It is the provenance ledger for the document sync pipeline: every document that enters or leaves Well through a connector has at least one DWC row, and the table is the primary surface queried during sync-status range checks (filtered by workspace_connector_pk + created_at BETWEEN). The entity carries no public UUID key β€” it is an internal infrastructure join record, not a user-facing resource.
Internal object. Not currently exposed on the public REST API. The operations below describe the intended contract.

API operations

Data model

Attributes

Relationships

System-computed

  • created_at β€” set once by onCreate: () => new Date(); also set explicitly to new Date() by DocumentWorkspaceConnectorService.createDocumentWorkspaceConnector() and .stage()
  • updated_at β€” set by onCreate and onUpdate hooks; also set explicitly by the service methods
  • deleted_at β€” soft-delete sentinel; NULL on creation; not written by the pipeline’s normal create/stage paths
  • pk β€” auto-increment serial primary key assigned by Postgres; internal join target only, never exposed in the public API
  • No public UUID (*_id) column β€” this is a pure infrastructure junction record with no user-facing stable identifier beyond pk

Example

Source: apps/api/src/database/entities/DocumentWorkspaceConnector.ts Β· domain: ingestion Β· tier: Infrastructure