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.ReferenceMasterQuestion ====== <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 ===== Which questions to include in the reference request ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **ReferenceMasterQuestionID** | char(20) | NOT NULL | | | | ReferenceMasterID | char(20) | NOT NULL | | | | taglocation | char(3) | NOT NULL | | | | instanceid | char(20) | NULL | | | | tagid | char(3) | NOT NULL | | | | sortorder | smallint | NULL | | | ===== Primary Key ===== * ReferenceMasterQuestionID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | ReferenceMaster | ReferenceMasterID | [[database:tables:pears_referencemaster|pears.ReferenceMaster (ReferenceMasterID)]] | NOT NULL; ON DELETE CASCADE | | tag | taglocation, tagid | [[database:tables:pears_tag|pears.tag (taglocation, tagid)]] | 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"."ReferenceMasterQuestion" -- Table comment: Which questions to include in the reference request -- Statement count: 4 CREATE TABLE "pears"."ReferenceMasterQuestion" ( "ReferenceMasterQuestionID" char(20) NOT NULL ,"ReferenceMasterID" char(20) NOT NULL ,"taglocation" char(3) NOT NULL ,"instanceid" char(20) NULL COMPUTE ("ReferenceMasterID") ,"tagid" char(3) NOT NULL ,"sortorder" smallint NULL ,PRIMARY KEY ("ReferenceMasterQuestionID" ASC) ) go COMMENT ON TABLE "pears"."ReferenceMasterQuestion" IS 'Which questions to include in the reference request' go ALTER TABLE "pears"."ReferenceMasterQuestion" ADD NOT NULL FOREIGN KEY "ReferenceMaster" ("ReferenceMasterID" ASC) REFERENCES "pears"."ReferenceMaster" ("ReferenceMasterID") ON DELETE CASCADE go ALTER TABLE "pears"."ReferenceMasterQuestion" ADD NOT NULL FOREIGN KEY "tag" ("taglocation" ASC,"tagid" ASC) REFERENCES "pears"."tag" ("taglocation","tagid") ON DELETE CASCADE go </code> database/tables/pears_referencemasterquestion.txt Last modified: 2026/08/07 19:24by 127.0.0.1