====== pears.WPKGlobalSwitchGroup ====== Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. ===== Description ===== Groups of Woodpecker Switches. ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **WPKGlobalSwitchGroupID** | char(20) | NOT NULL | | | | Name | char(50) | NOT NULL | | | | Notes | long varchar | NULL | | | | SortOrder | smallint | NULL | | | ===== Primary Key ===== * WPKGlobalSwitchGroupID ===== Foreign Keys ===== * No outgoing foreign keys found. ===== Referenced By ===== ^ Table ^ Constraint ^ Columns ^ Referenced columns ^ | [[database:tables:pears_wpkglobalswitch|pears.WPKGlobalSwitch]] | WPKGlobalSwitchGroup | WPKGlobalSwitchGroupID | WPKGlobalSwitchGroupID | ===== Indexes ===== ^ Name ^ Type ^ Columns ^ Detail ^ | SwitchGroupMaint | Index | SortOrder, Name | | ===== Triggers ===== * No triggers found. ===== Original SQL ===== -- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."WPKGlobalSwitchGroup" -- Table comment: Groups of Woodpecker Switches. -- Statement count: 3 CREATE TABLE "pears"."WPKGlobalSwitchGroup" ( "WPKGlobalSwitchGroupID" char(20) NOT NULL ,"Name" char(50) NOT NULL ,"Notes" long varchar NULL ,"SortOrder" smallint NULL ,PRIMARY KEY ("WPKGlobalSwitchGroupID" ASC) ) go COMMENT ON TABLE "pears"."WPKGlobalSwitchGroup" IS 'Groups of Woodpecker Switches.' go CREATE INDEX "SwitchGroupMaint" ON "pears"."WPKGlobalSwitchGroup" ( "SortOrder","Name" ) go