Show pageOld revisionsBacklinksExport to PDFFold/unfold allBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== pears.NotificationDeepLink ====== <WRAP center round info> Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. </WRAP> ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **NotificationDeepLinkID** | char(20) | NOT NULL | | | | NotificationTemplateID | char(50) | NULL | | | | BatchID | char(20) | NULL | | | | GUID | uniqueidentifier | NULL | | | | PersonID | char(20) | NULL | | | | WhoEntered | char(20) | NULL | | | | WhenEntered | timestamp | NULL | current timestamp | | | WhenSent | timestamp | NULL | | | | WhenProcessed | timestamp | NULL | | | | LockID | char(50) | NULL | | | | Locked | timestamp | NULL | | | | EmailError | long varchar | NULL | | | | JSONData | long varchar | NULL | | | | ExpiryDate | date | NULL | | | | ResponseJSONData | long varchar | NULL | | | | Responsedatetime | timestamp | NULL | | | ===== Primary Key ===== * NotificationDeepLinkID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | Person | PersonID | [[database:tables:pears_person|pears.Person (personid)]] | ON DELETE SET NULL | | Staff | WhoEntered | [[database:tables:pears_staff|pears.staff (staffid)]] | ON DELETE SET NULL | ===== Referenced By ===== * No incoming foreign keys found. ===== Indexes ===== ^ Name ^ Type ^ Columns ^ Detail ^ | NotificationDeepLinkPersonID | Index | PersonID | | | NotificationDeepLinkBatchID | Index | BatchID | | | NotificationDeepLinkTemplateID | Index | NotificationTemplateID | | | NotificationDeepLinkGUID | Index | GUID | | ===== Triggers ===== * No triggers found. ===== Original SQL ===== <code sql> -- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."NotificationDeepLink" -- Table comment: -- Statement count: 7 CREATE TABLE "pears"."NotificationDeepLink" ( "NotificationDeepLinkID" char(20) NOT NULL ,"NotificationTemplateID" char(50) NULL ,"BatchID" char(20) NULL ,"GUID" uniqueidentifier NULL ,"PersonID" char(20) NULL ,"WhoEntered" char(20) NULL ,"WhenEntered" timestamp NULL DEFAULT current timestamp ,"WhenSent" timestamp NULL ,"WhenProcessed" timestamp NULL ,"LockID" char(50) NULL ,"Locked" timestamp NULL ,"EmailError" long varchar NULL ,"JSONData" long varchar NULL ,"ExpiryDate" date NULL ,"ResponseJSONData" long varchar NULL ,"Responsedatetime" timestamp NULL ,PRIMARY KEY ("NotificationDeepLinkID" ASC) ) go ALTER TABLE "pears"."NotificationDeepLink" ADD FOREIGN KEY "Person" ("PersonID" ASC) REFERENCES "pears"."Person" ("personid") ON DELETE SET NULL go ALTER TABLE "pears"."NotificationDeepLink" ADD FOREIGN KEY "Staff" ("WhoEntered" ASC) REFERENCES "pears"."staff" ("staffid") ON DELETE SET NULL go CREATE INDEX "NotificationDeepLinkPersonID" ON "pears"."NotificationDeepLink" ( "PersonID" ) go CREATE INDEX "NotificationDeepLinkBatchID" ON "pears"."NotificationDeepLink" ( "BatchID" ) go CREATE INDEX "NotificationDeepLinkTemplateID" ON "pears"."NotificationDeepLink" ( "NotificationTemplateID" ) go CREATE INDEX "NotificationDeepLinkGUID" ON "pears"."NotificationDeepLink" ( "GUID" ) go </code> database/tables/pears_notificationdeeplink.txt Last modified: 2026/08/07 19:24by 127.0.0.1