pears.IQXNetNotificationCascade
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
Description
If original staff member does not respond who should the message cascade to
Columns
| Column | Type | Null | Default | Comment |
|---|---|---|---|---|
| CascadeType | char(20) | NOT NULL | ||
| DiaryID | char(20) | NOT NULL | ||
| WhenCascaded | timestamp | NULL | current timestamp | |
| Address | char(100) | NULL |
Primary Key
- CascadeType, DiaryID
Foreign Keys
| Constraint | Columns | References | Delete/update action |
|---|---|---|---|
| Diary | DiaryID | pears.diary (diaryid) | 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"."IQXNetNotificationCascade" -- Table comment: If original staff member does not respond who should the message cascade to -- Statement count: 3 CREATE TABLE "pears"."IQXNetNotificationCascade" ( "CascadeType" CHAR(20) NOT NULL ,"DiaryID" CHAR(20) NOT NULL ,"WhenCascaded" TIMESTAMP NULL DEFAULT CURRENT TIMESTAMP ,"Address" CHAR(100) NULL ,PRIMARY KEY ("CascadeType" ASC,"DiaryID" ASC) ) GO COMMENT ON TABLE "pears"."IQXNetNotificationCascade" IS 'If original staff member does not respond who should the message cascade to' GO ALTER TABLE "pears"."IQXNetNotificationCascade" ADD NOT NULL FOREIGN KEY "Diary" ("DiaryID" ASC) REFERENCES "pears"."diary" ("diaryid") ON DELETE CASCADE GO