Database Models#

Database models are provided by the ccat_ops_db package.

Key Models#

Operations:

  • ExecutedObsUnit - Actual telescope observations

  • RawDataFile - Data file metadata

  • RawDataPackage - File groupings

Planning:

  • ObsUnit - Planned observations

  • ObservingProgram - Observation programs

  • Source - Astronomical sources

Transfer:

  • DataTransfer - Legacy transfer row (status/counter columns dropped by ops-db #95)

  • PhysicalCopy - Physical storage copies

Operations (uniform model):

The transfer pipeline state lives in uniform per-kind Operation rows — one subclass per stage: PackagingOperation, BundlingOperation, TransferOperation, UnpackOperation, ArchiveOperation, keyed by OperationKind. The API read side navigates these by FK (no artifact→operation ORM relationship). The model is defined and described in ops-db — see the ops-db Operation model reference and the data-transfer two-axes page for identity vs routing. It is not re-described here.

Authentication:

  • User - System users

  • APIToken - API tokens

  • Role - User roles

  • Permission - Permissions

For complete model definitions, see the ops-db repository.