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.WPKCustomGridColumnPrivateSelection ====== <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 ===== Woodpecker Custom Column Definitions ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **StaffID** | char(20) | NOT NULL | | | | **DivisionID** | char(20) | NOT NULL | 'DEFAULT' | | | **WPKFormID** | char(50) | NOT NULL | | | | **WPKViewID** | char(50) | NOT NULL | | | | **WPKCustomGridColumnID** | char(50) | NOT NULL | | May refer to a WPKViewItemID to over-ride position or visibility, or may be custom | | Position | smallint | NULL | 0 | Orders the items in a view. 1 for extreme left. 0 to hide the item. | ===== Primary Key ===== * StaffID, DivisionID, WPKFormID, WPKViewID, WPKCustomGridColumnID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | Staff | StaffID | [[database:tables:pears_staff|pears.staff (staffid)]] | 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"."WPKCustomGridColumnPrivateSelection" -- Table comment: Woodpecker Custom Column Definitions -- Statement count: 5 CREATE TABLE "pears"."WPKCustomGridColumnPrivateSelection" ( "StaffID" char(20) NOT NULL ,"DivisionID" char(20) NOT NULL DEFAULT 'DEFAULT' ,"WPKFormID" char(50) NOT NULL ,"WPKViewID" char(50) NOT NULL ,"WPKCustomGridColumnID" char(50) NOT NULL ,"Position" smallint NULL DEFAULT 0 ,PRIMARY KEY ("StaffID" ASC,"DivisionID" ASC,"WPKFormID" ASC,"WPKViewID" ASC,"WPKCustomGridColumnID" ASC) ) go COMMENT ON COLUMN "pears"."WPKCustomGridColumnPrivateSelection"."WPKCustomGridColumnID" IS 'May refer to a WPKViewItemID to over-ride position or visibility, or may be custom' go COMMENT ON COLUMN "pears"."WPKCustomGridColumnPrivateSelection"."Position" IS 'Orders the items in a view. 1 for extreme left. 0 to hide the item.' go COMMENT ON TABLE "pears"."WPKCustomGridColumnPrivateSelection" IS 'Woodpecker Custom Column Definitions' go ALTER TABLE "pears"."WPKCustomGridColumnPrivateSelection" ADD NOT NULL FOREIGN KEY "Staff" ("StaffID" ASC) REFERENCES "pears"."staff" ("staffid") ON DELETE CASCADE go </code> database/tables/pears_wpkcustomgridcolumnprivateselection.txt Last modified: 2026/08/07 19:24by 127.0.0.1