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 | ||
| PersonID | char(20) | NOT NULL |
| Constraint | Columns | References | Delete/update action |
|---|---|---|---|
| ComplianceDomain | ComplianceDomainID | pears.ComplianceDomain (ComplianceDomainID) | NOT NULL; ON DELETE CASCADE |
| Person | PersonID | pears.Person (personid) | NOT NULL; ON DELETE CASCADE |
-- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."CompliancePersonDomain" -- Table comment: Linkage between Domains so several can apply -- Statement count: 4 CREATE TABLE "pears"."CompliancePersonDomain" ( "ComplianceDomainID" CHAR(20) NOT NULL ,"PersonID" CHAR(20) NOT NULL ,PRIMARY KEY ("ComplianceDomainID" ASC,"PersonID" ASC) ) GO COMMENT ON TABLE "pears"."CompliancePersonDomain" IS 'Linkage between Domains so several can apply' GO ALTER TABLE "pears"."CompliancePersonDomain" ADD NOT NULL FOREIGN KEY "ComplianceDomain" ("ComplianceDomainID" ASC) REFERENCES "pears"."ComplianceDomain" ("ComplianceDomainID") ON DELETE CASCADE GO ALTER TABLE "pears"."CompliancePersonDomain" ADD NOT NULL FOREIGN KEY "Person" ("PersonID" ASC) REFERENCES "pears"."Person" ("personid") ON DELETE CASCADE GO