Show pageOld revisionsBacklinksExport to PDFFold/unfold allBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== pears.ComplianceLinkedDomain ====== <WRAP center round info> Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. </WRAP> ===== Description ===== Linkage between Domains so several can apply ===== Columns ===== ^ 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 | ===== Primary Key ===== * ComplianceDomainID, ComplianceLinkedDomainID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | ComplianceLinkedDomain1 | ComplianceDomainID | [[database:tables:pears_compliancedomain|pears.ComplianceDomain (ComplianceDomainID)]] | NOT NULL; ON DELETE CASCADE | | ComplianceLinkedDomain2 | ComplianceLinkedDomainID | [[database:tables:pears_compliancedomain|pears.ComplianceDomain (ComplianceDomainID)]] | NOT NULL; ON DELETE CASCADE | ===== Referenced By ===== * No incoming foreign keys found. ===== Indexes ===== * No indexes found. ===== Triggers ===== * No triggers found. ===== Original SQL ===== <code sql> -- 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 </code> database/tables/pears_compliancelinkeddomain.txt Last modified: 2026/08/07 19:24by 127.0.0.1