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