The
obsprocedure_obsdpropertytable defines a many‑to‑many relationship between observing procedures and observed properties, linking theobservingprocedureandobservedpropertytables. This relationship allows a single observing procedure to be associated with one or more observed properties and, conversely, enables the same observed property to be used by multiple observing procedures.
datastreamOnly procedure–property pairs that are explicitly registered in obsprocedure_obsdproperty shall be persisted in the datastream table (guid_observingprocedure, guid_observedproperty).
This constraint shall be enforced by triggers that verify pair membership prior to INSERT and UPDATE operations on datastream.
Warning
If the specified pair is not present in obsprocedure_obsdproperty, the operation shall be rejected and the record shall not be saved.
Accordingly, each datastream shall declare only Observed Procedure - Observed Property combinations that are pre‑defined in the relational catalogue.
obsprocedure_obsdproperty| Name | Type | Constraints | Description |
|---|---|---|---|
id |
INTEGER |
PRIMARY KEY | A unique, read-only attribute that serves as an identifier for the entity. |
guid_observingprocedure |
TEXT |
NOT NULL | Foreign key to the Procedure table, guid field. |
guid_observedproperty |
TEXT |
NOT NULL | Foreign key to the Observed Property table, guid field. |
obsprocedure_obsdproperty.guid_observedproperty → observedproperty.guid (ON UPDATE CASCADE, ON DELETE RESTRICT)obsprocedure_obsdproperty.guid_observingprocedure → observingprocedure.guid (ON UPDATE CASCADE, ON DELETE CASCADE)
observingprocedure cascades to obsprocedure_obsdproperty.