pears.SecureDocumentLink
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
Columns
| Column | Type | Null | Default | Comment |
|---|---|---|---|---|
| SecureDocumentLinkID | char(20) | NOT NULL | Points to blob of class S | |
| EmailAddress | char(100) | NOT NULL | ||
| Title | char(100) | NOT NULL | ||
| DownloadsAllowed | smallint | NULL | 1 | |
| SuccessfulDownloads | smallint | NULL | 0 | |
| ExpiryDate | date | NULL | ||
| Password | char(100) | NULL | For both download attempt AND zip file | |
| PasswordFails | smallint | NULL | 0 | |
| DownloadRecord | long varchar | NULL |
Primary Key
- SecureDocumentLinkID
Foreign Keys
- No outgoing foreign keys found.
Referenced By
- No incoming foreign keys found.
Indexes
| Name | Type | Columns | Detail |
|---|---|---|---|
| SDExpiry | Index | ExpiryDate | |
| SDEmail | Index | EmailAddress |
Triggers
- No triggers found.
Original SQL
-- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."SecureDocumentLink" -- Table comment: -- Statement count: 5 CREATE TABLE "pears"."SecureDocumentLink" ( "SecureDocumentLinkID" CHAR(20) NOT NULL ,"EmailAddress" CHAR(100) NOT NULL ,"Title" CHAR(100) NOT NULL ,"DownloadsAllowed" SMALLINT NULL DEFAULT 1 ,"SuccessfulDownloads" SMALLINT NULL DEFAULT 0 ,"ExpiryDate" DATE NULL ,"Password" CHAR(100) NULL ,"PasswordFails" SMALLINT NULL DEFAULT 0 ,"DownloadRecord" long VARCHAR NULL ,PRIMARY KEY ("SecureDocumentLinkID" ASC) ) GO COMMENT ON COLUMN "pears"."SecureDocumentLink"."SecureDocumentLinkID" IS 'Points to blob of class S' GO COMMENT ON COLUMN "pears"."SecureDocumentLink"."Password" IS 'For both download attempt AND zip file' GO CREATE INDEX "SDExpiry" ON "pears"."SecureDocumentLink" ( "ExpiryDate" ) GO CREATE INDEX "SDEmail" ON "pears"."SecureDocumentLink" ( "EmailAddress" ) GO