pears.WPKPickListChoice

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Choices for WPKPickList when not defined in SQL.

Column Type Null Default Comment
WPKPickListID char(20) NOT NULL
WPKPickListChoiceID char(20) NOT NULL
Name char(50) NOT NULL
SortOrder smallint NULL
  • WPKPickListID, WPKPickListChoiceID
Constraint Columns References Delete/update action
WPKPickList WPKPickListID pears.WPKPickList (WPKPickListID) NOT NULL; ON DELETE CASCADE
  • No incoming foreign keys found.
  • No indexes found.
Name Timing Event
WPKPickChoiceChange after insert,delete,update order 1
-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."WPKPickListChoice"
-- Table comment: Choices for WPKPickList when not defined in SQL.
-- Statement count: 5
 
CREATE TABLE "pears"."WPKPickListChoice" (
    "WPKPickListID"                  CHAR(20) NOT NULL
   ,"WPKPickListChoiceID"            CHAR(20) NOT NULL
   ,"Name"                           CHAR(50) NOT NULL
   ,"SortOrder"                      SMALLINT NULL
   ,PRIMARY KEY ("WPKPickListID" ASC,"WPKPickListChoiceID" ASC) 
)
GO
 
 
COMMENT ON TABLE "pears"."WPKPickListChoice" IS 
	'Choices for WPKPickList when not defined in SQL.'
GO
 
 
ALTER TABLE "pears"."WPKPickListChoice"
    ADD NOT NULL FOREIGN KEY "WPKPickList" ("WPKPickListID" ASC)
    REFERENCES "pears"."WPKPickList" ("WPKPickListID")
    ON DELETE CASCADE
GO
 
 
CREATE TRIGGER "WPKPickChoiceChange" after INSERT,DELETE,UPDATE ORDER 1 ON
"pears"."WPKPickListChoice"
REFERENCING NEW AS "chc"
FOR each ROW
BEGIN
  CALL "WPKTrackChange"('P',"chc"."WPKPickListID")
END
GO
 
 
COMMENT TO PRESERVE FORMAT ON TRIGGER "pears"."WPKPickListChoice"."WPKPickChoiceChange" IS 
{CREATE TRIGGER WPKPickChoiceChange 
 after INSERT,DELETE,UPDATE ORDER 1 ON
WPKPickListChoice
REFERENCING NEW AS chc
FOR each ROW
BEGIN
  CALL WPKTrackChange('P',chc.WPKPickListID)
END
}
GO
  • database/tables/pears_wpkpicklistchoice.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1