pears.AdhocInvoiceTemplateLine

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

Lines for AdHoc Invoice Templates

Column Type Null Default Comment
AdhocInvoiceTemplateLineID char(20) NOT NULL
AdhocInvoiceTemplateID char(20) NULL
Nominal char(12) NULL
Description long varchar NULL
VATCode char(3) NULL
Amount double NULL
LineNumber smallint NULL
  • AdhocInvoiceTemplateLineID
Constraint Columns References Delete/update action
AdhocInvoiceTemplate AdhocInvoiceTemplateID pears.AdhocInvoiceTemplate (AdhocInvoiceTemplateID) 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"."AdhocInvoiceTemplateLine"
-- Table comment: Lines for AdHoc Invoice Templates
-- Statement count: 3
 
CREATE TABLE "pears"."AdhocInvoiceTemplateLine" (
    "AdhocInvoiceTemplateLineID"     CHAR(20) NOT NULL
   ,"AdhocInvoiceTemplateID"         CHAR(20) NULL
   ,"Nominal"                        CHAR(12) NULL
   ,"Description"                    long VARCHAR NULL
   ,"VATCode"                        CHAR(3) NULL
   ,"Amount"                         DOUBLE NULL
   ,"LineNumber"                     SMALLINT NULL
   ,PRIMARY KEY ("AdhocInvoiceTemplateLineID" ASC) 
)
GO
 
 
COMMENT ON TABLE "pears"."AdhocInvoiceTemplateLine" IS 
	'Lines for AdHoc Invoice Templates'
GO
 
 
ALTER TABLE "pears"."AdhocInvoiceTemplateLine"
    ADD FOREIGN KEY "AdhocInvoiceTemplate" ("AdhocInvoiceTemplateID" ASC)
    REFERENCES "pears"."AdhocInvoiceTemplate" ("AdhocInvoiceTemplateID")
    ON DELETE CASCADE
GO
  • database/tables/pears_adhocinvoicetemplateline.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1