Skip to content

Commit

Permalink
Add foreign key constraint from ForcedSource to Object
Browse files Browse the repository at this point in the history
This demonstrates a working foreign key constraint in Felis.
  • Loading branch information
JeremyMcCormick committed Oct 20, 2023
1 parent c700ad8 commit abde08d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions yml/dp02_dc2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7213,6 +7213,17 @@ 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 abde08d

Please sign in to comment.