pears.DocumentPackType

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

Lists types of Document available in a given pack by default.

Column Type Null Default Comment
DocumentPackTypeID char(20) NOT NULL
DocumentPackID char(20) NULL
DocumentTypeID char(20) NULL
Redacted smallint NULL
Sortorder smallint NULL
Required smallint NULL
  • DocumentPackTypeID
Constraint Columns References Delete/update action
DocumentPack DocumentPackID pears.DocumentPack (DocumentPackID) ON DELETE CASCADE
DocumentType DocumentTypeID pears.DocumentType (DocumentTypeID) ON DELETE CASCADE
  • No incoming foreign keys found.
  • No indexes found.
  • No triggers found.
-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."DocumentPackType"
-- Table comment: Lists types of Document available in a given pack by default.
-- Statement count: 4
 
CREATE TABLE "pears"."DocumentPackType" (
    "DocumentPackTypeID"             CHAR(20) NOT NULL
   ,"DocumentPackID"                 CHAR(20) NULL
   ,"DocumentTypeID"                 CHAR(20) NULL
   ,"Redacted"                       SMALLINT NULL
   ,"Sortorder"                      SMALLINT NULL
   ,"Required"                       SMALLINT NULL
   ,PRIMARY KEY ("DocumentPackTypeID" ASC) 
)
GO
 
 
COMMENT ON TABLE "pears"."DocumentPackType" IS 
	'Lists types of Document available in a given pack by default.'
GO
 
 
ALTER TABLE "pears"."DocumentPackType"
    ADD FOREIGN KEY "DocumentPack" ("DocumentPackID" ASC)
    REFERENCES "pears"."DocumentPack" ("DocumentPackID")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."DocumentPackType"
    ADD FOREIGN KEY "DocumentType" ("DocumentTypeID" ASC)
    REFERENCES "pears"."DocumentType" ("DocumentTypeID")
    ON DELETE CASCADE
GO
  • database/tables/pears_documentpacktype.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1