pears.NotificationDeepLink

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

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
  • NotificationDeepLinkID
Constraint Columns References Delete/update action
Person PersonID pears.Person (personid) ON DELETE SET NULL
Staff WhoEntered pears.staff (staffid) ON DELETE SET NULL
  • No incoming foreign keys found.
Name Type Columns Detail
NotificationDeepLinkPersonID Index PersonID
NotificationDeepLinkBatchID Index BatchID
NotificationDeepLinkTemplateID Index NotificationTemplateID
NotificationDeepLinkGUID Index GUID
  • No triggers found.
-- 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
  • database/tables/pears_notificationdeeplink.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1