====== pears.DiaryTaskList ====== Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. ===== Description ===== Task list tasks. ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **DiaryTaskListID** | char(20) | NOT NULL | | | | StaffID | char(20) | NOT NULL | | | | Ticked | smallint | NULL | 0 | | | SortOrder | smallint | NULL | | | | Details | long varchar | NULL | | | ===== Primary Key ===== * DiaryTaskListID ===== 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 ===== -- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."DiaryTaskList" -- Table comment: Task list tasks. -- Statement count: 3 CREATE TABLE "pears"."DiaryTaskList" ( "DiaryTaskListID" char(20) NOT NULL ,"StaffID" char(20) NOT NULL ,"Ticked" smallint NULL DEFAULT 0 ,"SortOrder" smallint NULL ,"Details" long varchar NULL ,PRIMARY KEY ("DiaryTaskListID" ASC) ) go COMMENT ON TABLE "pears"."DiaryTaskList" IS 'Task list tasks.' go ALTER TABLE "pears"."DiaryTaskList" ADD NOT NULL FOREIGN KEY "staff" ("StaffID" ASC) REFERENCES "pears"."staff" ("staffid") ON DELETE CASCADE go