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 | 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