pears.WPKCustomGridColumnPrivateSelection
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
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 | 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
-- 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