pears.ComplianceLinkedDomain

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Linkage between Domains so several can apply

Column Type Null Default Comment
ComplianceDomainID char(20) NOT NULL
ComplianceLinkedDomainID char(20) NOT NULL
IfTagLocation char(2) NULL P for Person questionnaire, A% for Departmental
IfTagID char(3) NULL
IfTagChoiceID char(4) NULL All three of these must be filled or the Linked Domain will be unconditionally enforced
IfTagChoiceNegate tinyint NULL 0 Enforce if the choice is NOT selected
  • ComplianceDomainID, ComplianceLinkedDomainID
Constraint Columns References Delete/update action
ComplianceLinkedDomain1 ComplianceDomainID pears.ComplianceDomain (ComplianceDomainID) NOT NULL; ON DELETE CASCADE
ComplianceLinkedDomain2 ComplianceLinkedDomainID pears.ComplianceDomain (ComplianceDomainID) NOT NULL; ON DELETE CASCADE
  • No incoming foreign keys found.
  • No indexes found.
  • No triggers found.
-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."ComplianceLinkedDomain"
-- Table comment: Linkage between Domains so several can apply
-- Statement count: 7
 
CREATE TABLE "pears"."ComplianceLinkedDomain" (
    "ComplianceDomainID"             CHAR(20) NOT NULL
   ,"ComplianceLinkedDomainID"       CHAR(20) NOT NULL
   ,"IfTagLocation"                  CHAR(2) NULL
   ,"IfTagID"                        CHAR(3) NULL
   ,"IfTagChoiceID"                  CHAR(4) NULL
   ,"IfTagChoiceNegate"              tinyint NULL DEFAULT 0
   ,PRIMARY KEY ("ComplianceDomainID" ASC,"ComplianceLinkedDomainID" ASC) 
)
GO
 
 
COMMENT ON COLUMN "pears"."ComplianceLinkedDomain"."IfTagLocation" IS 
	'P for Person questionnaire, A% for Departmental'
GO
 
 
COMMENT ON COLUMN "pears"."ComplianceLinkedDomain"."IfTagChoiceID" IS 
	'All three of these must be filled or the Linked Domain will be unconditionally enforced'
GO
 
 
COMMENT ON COLUMN "pears"."ComplianceLinkedDomain"."IfTagChoiceNegate" IS 
	'Enforce if the choice is NOT selected'
GO
 
 
COMMENT ON TABLE "pears"."ComplianceLinkedDomain" IS 
	'Linkage between Domains so several can apply'
GO
 
 
ALTER TABLE "pears"."ComplianceLinkedDomain"
    ADD NOT NULL FOREIGN KEY "ComplianceLinkedDomain1" ("ComplianceDomainID" ASC)
    REFERENCES "pears"."ComplianceDomain" ("ComplianceDomainID")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."ComplianceLinkedDomain"
    ADD NOT NULL FOREIGN KEY "ComplianceLinkedDomain2" ("ComplianceLinkedDomainID" ASC)
    REFERENCES "pears"."ComplianceDomain" ("ComplianceDomainID")
    ON DELETE CASCADE
GO
  • database/tables/pears_compliancelinkeddomain.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1