-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #186 from lsst/tickets/DM-41652-part2
DM-41652: Part 2 of adding single-attribute foreign keys to DP0.2
- Loading branch information
Showing
3 changed files
with
154 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.