Database Models#
Database models are provided by the ccat_ops_db package.
Key Models#
Operations:
ExecutedObsUnit- Actual telescope observationsRawDataFile- Data file metadataRawDataPackage- File groupings
Planning:
ObsUnit- Planned observationsObservingProgram- Observation programsSource- 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 usersAPIToken- API tokensRole- User rolesPermission- Permissions
For complete model definitions, see the ops-db repository.