From a7731344505a6ed60949e004210b88cd5bd96644 Mon Sep 17 00:00:00 2001 From: Jeremy McCormick Date: Fri, 20 Oct 2023 13:50:34 -0500 Subject: [PATCH] Add FK constraint from ForcedSource to Object in dp02_dc2 schema This demonstrates working foreign key constraints in felis that are loaded into the TAP_SCHEMA table. --- yml/dp02_dc2.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/yml/dp02_dc2.yaml b/yml/dp02_dc2.yaml index c242edb7..2f31ccc4 100644 --- a/yml/dp02_dc2.yaml +++ b/yml/dp02_dc2.yaml @@ -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