Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-41652: Part 2 of adding single-attribute foreign keys to DP0.2 #186

Merged
merged 5 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
64 changes: 64 additions & 0 deletions doc/dp02_dc2.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
---
title: DP0.2 Table Relationships
---
erDiagram
Object {
long objectId UK
long tract FK
long patch FK
}
Object ||--o{ MatchesTruth : matches
Object }o..|| CoaddPatches : "found in"
Object ||--|{ ForcedSource : seeds

Source {
long ccdVisitId FK
long visit FK
}
Source }o..|| CcdVisit : "found in"
Source }o..|| Visit : "found in"
ForcedSource {
long objectId FK
long ccdVisitId FK
long tract FK
long patch FK
}
ForcedSource }o..|| CcdVisit : "measured in"
DiaObject {
long diaObjectId UK
long nDiaSources
}
DiaObject |o..|{ DiaSource : "built from"
DiaObject ||--|{ ForcedSourceOnDiaObject : "seeds"
DiaSource {
long diaObjectId FK
long ccdVisitId FK
}
DiaSource }o..|| CcdVisit : "found in"
ForcedSourceOnDiaObject {
long diaObjectId FK
long ccdVisitId FK
long tract FK
long patch FK
}
ForcedSourceOnDiaObject }o..|| CcdVisit : "measured in"
CcdVisit {
long ccdVisitId UK
long visitId FK
}
Visit {
long visit UK
}
Visit ||--|{ CcdVisit : contains
CoaddPatches {
long lsst_tract PK
long lsst_patch PK
}
MatchesTruth {
string id_truth_type FK
long match_objectId FK
}
TruthSummary {
string id_truth_type PK
}
TruthSummary ||--o{ MatchesTruth : matches
6 changes: 4 additions & 2 deletions yml/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
Rubin Data Model Definitions
============================

The files in this directory contain definitions, in the "Felis" format,
The files in this directory contain definitions,
[in the "Felis" format](https://felis.lsst.io/),
of the data models for the Rubin Observatory's public and principal internal
catalog and observation metadata tabular data products.
catalog and observation metadata tabular data products,
including IVOA-related metadata.

See [the main README for this repository](../README.md) for more information.

Expand Down