Skip to content

Commit

Permalink
Add FK constraint from ForcedSource to Object in dp02_dc2 schema
Browse files Browse the repository at this point in the history
This demonstrates working foreign key constraints in felis that are
loaded into the TAP_SCHEMA table.
  • Loading branch information
JeremyMcCormick authored and gpdf committed Oct 23, 2023
1 parent 46b1a69 commit a773134
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions yml/dp02_dc2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7213,6 +7213,15 @@ tables:
ivoa:ucd: phot.flux
tap:principal: 1
tap:column_index: 30
constraints:
- name: FK_forcedSourceId_objectId
"@type": "ForeignKey"
"@id": "#FK_forcedSourceId_objectId"
description: Foreign key from ForcedSource to Object
columns:
- "#ForcedSource.forcedSourceId"
referencedColumns:
- "#Object.objectId"
- name: DiaObject
"@id": "#DiaObject"
description: "Properties of time-varying astronomical objects based on association
Expand Down

0 comments on commit a773134

Please sign in to comment.