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.TSQueryReasons ====== <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 ===== Lookup of Timesheet Query Reasons ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **ReasonCode** | char(5) | NOT NULL | | | | ReasonName | char(50) | NOT NULL | | | | SortOrder | smallint | NULL | | | | TSQueryCode | char(5) | NULL | | | | DefaultDestination | char(1) | NULL | | F=requires front attention=owner front, B=requires back attention=owner back, T=requires TI attention=owner TI | | UserType | char(6) | NULL | | Cand or Client. Also means Web only | | DivisionID | char(20) | NULL | | | ===== Primary Key ===== * ReasonCode ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | Division | DivisionID | [[database:tables:pears_division|pears.Division (divisionid)]] | ON DELETE SET NULL | ===== Referenced By ===== ^ Table ^ Constraint ^ Columns ^ Referenced columns ^ | [[database:tables:pears_tsquerylog|pears.TSQueryLog]] | TSQueryReasons | ReasonCode | ReasonCode | ===== 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"."TSQueryReasons" -- Table comment: Lookup of Timesheet Query Reasons -- Statement count: 5 CREATE TABLE "pears"."TSQueryReasons" ( "ReasonCode" char(5) NOT NULL ,"ReasonName" char(50) NOT NULL ,"SortOrder" smallint NULL ,"TSQueryCode" char(5) NULL ,"DefaultDestination" char(1) NULL ,"UserType" char(6) NULL ,"DivisionID" char(20) NULL ,PRIMARY KEY ("ReasonCode" ASC) ) go COMMENT ON COLUMN "pears"."TSQueryReasons"."DefaultDestination" IS 'F=requires front attention=owner front, B=requires back attention=owner back, T=requires TI attention=owner TI' go COMMENT ON COLUMN "pears"."TSQueryReasons"."UserType" IS 'Cand or Client. Also means Web only' go COMMENT ON TABLE "pears"."TSQueryReasons" IS 'Lookup of Timesheet Query Reasons' go ALTER TABLE "pears"."TSQueryReasons" ADD FOREIGN KEY "Division" ("DivisionID" ASC) REFERENCES "pears"."Division" ("divisionid") ON DELETE SET NULL go </code> database/tables/pears_tsqueryreasons.txt Last modified: 2026/08/07 19:24by 127.0.0.1