====== pears.DashboardObject ======
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
===== Description =====
Objects which may appear on IQXWeb dashboard
===== Columns =====
^ Column ^ Type ^ Null ^ Default ^ Comment ^
| **DashboardObjectID** | char(20) | NOT NULL | | |
| StaffID | char(20) | NULL | | |
| Type | char(50) | NOT NULL | | |
| Title | char(250) | NOT NULL | | |
| Descriptor | long varchar | NULL | | |
| Shared | smallint | NULL | 0 | |
| AccessLevel | smallint | NULL | 0 | |
| SortOrder | smallint | NULL | 0 | |
===== Primary Key =====
* DashboardObjectID
===== Foreign Keys =====
^ Constraint ^ Columns ^ References ^ Delete/update action ^
| Staff | StaffID | [[database:tables:pears_staff|pears.staff (staffid)]] | ON DELETE CASCADE |
===== Referenced By =====
^ Table ^ Constraint ^ Columns ^ Referenced columns ^
| [[database:tables:pears_dashboarddisplayedobject|pears.DashboardDisplayedObject]] | DashboardObject | DashboardObjectID | DashboardObjectID |
===== Indexes =====
* No indexes found.
===== Triggers =====
* No triggers found.
===== Original SQL =====
-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."DashboardObject"
-- Table comment: Objects which may appear on IQXWeb dashboard
-- Statement count: 3
CREATE TABLE "pears"."DashboardObject" (
"DashboardObjectID" char(20) NOT NULL
,"StaffID" char(20) NULL
,"Type" char(50) NOT NULL
,"Title" char(250) NOT NULL
,"Descriptor" long varchar NULL
,"Shared" smallint NULL DEFAULT 0
,"AccessLevel" smallint NULL DEFAULT 0
,"SortOrder" smallint NULL DEFAULT 0
,PRIMARY KEY ("DashboardObjectID" ASC)
)
go
COMMENT ON TABLE "pears"."DashboardObject" IS
'Objects which may appear on IQXWeb dashboard'
go
ALTER TABLE "pears"."DashboardObject"
ADD FOREIGN KEY "Staff" ("StaffID" ASC)
REFERENCES "pears"."staff" ("staffid")
ON DELETE CASCADE
go