Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
Defines links between people - used for NOK etc.
| Column | Type | Null | Default | Comment |
|---|---|---|---|---|
| InterPersonLinkID | char(20) | NOT NULL | ||
| Person1ID | char(20) | NOT NULL | ||
| Person2ID | char(20) | NOT NULL | ||
| LinkType | char(1) | NOT NULL | ||
| Description | char(50) | NULL |
| Constraint | Columns | References | Delete/update action |
|---|---|---|---|
| Person1 | Person1ID | pears.Person (personid) | NOT NULL; ON DELETE CASCADE |
| Person2 | Person2ID | pears.Person (personid) | NOT NULL; ON DELETE CASCADE |
-- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."InterPersonLink" -- Table comment: Defines links between people - used for NOK etc. -- Statement count: 4 CREATE TABLE "pears"."InterPersonLink" ( "InterPersonLinkID" CHAR(20) NOT NULL ,"Person1ID" CHAR(20) NOT NULL ,"Person2ID" CHAR(20) NOT NULL ,"LinkType" CHAR(1) NOT NULL ,"Description" CHAR(50) NULL ,PRIMARY KEY ("InterPersonLinkID" ASC) ) GO COMMENT ON TABLE "pears"."InterPersonLink" IS 'Defines links between people - used for NOK etc.' GO ALTER TABLE "pears"."InterPersonLink" ADD NOT NULL FOREIGN KEY "Person1" ("Person1ID" ASC) REFERENCES "pears"."Person" ("personid") ON DELETE CASCADE GO ALTER TABLE "pears"."InterPersonLink" ADD NOT NULL FOREIGN KEY "Person2" ("Person2ID" ASC) REFERENCES "pears"."Person" ("personid") ON DELETE CASCADE GO