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.InterPersonLink ====== <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 ===== Defines links between people - used for NOK etc. ===== Columns ===== ^ 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 | | | ===== Primary Key ===== * InterPersonLinkID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | Person1 | Person1ID | [[database:tables:pears_person|pears.Person (personid)]] | NOT NULL; ON DELETE CASCADE | | Person2 | Person2ID | [[database:tables:pears_person|pears.Person (personid)]] | 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"."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 </code> database/tables/pears_interpersonlink.txt Last modified: 2026/08/07 19:24by 127.0.0.1