Table of Contents



pears.IQacLedger

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

Description

Ledger type cash/sales

Columns

Column Type Null Default Comment
LedgerID char(12) NOT NULL
LedgerType char(30) NOT NULL Sales, Purchase, Cash, Employee, Asset, Other
Name char(50) NOT NULL

Primary Key

Foreign Keys

Referenced By

Table Constraint Columns Referenced columns
pears.IQacAccount IQacLedger LedgerID LedgerID
pears.IQacDocumentTemplate ConLedger ControlLedgerID LedgerID
pears.IQacDocumentTemplate PayLedger PaymentLedgerID LedgerID
pears.IQacNominal NomLedger LedgerID LedgerID

Indexes

Name Type Columns Detail
IQacLedger_Name Unique index Name

Triggers

Original SQL

-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."IQacLedger"
-- Table comment: Ledger type cash/sales
-- Statement count: 4
 
CREATE TABLE "pears"."IQacLedger" (
    "LedgerID"                       CHAR(12) NOT NULL
   ,"LedgerType"                     CHAR(30) NOT NULL
   ,"Name"                           CHAR(50) NOT NULL
   ,PRIMARY KEY ("LedgerID" ASC) 
)
GO
 
 
COMMENT ON COLUMN "pears"."IQacLedger"."LedgerType" IS 
	'Sales, Purchase, Cash, Employee, Asset, Other'
GO
 
 
COMMENT ON TABLE "pears"."IQacLedger" IS 
	'Ledger type cash/sales'
GO
 
 
CREATE UNIQUE INDEX "IQacLedger_Name" ON "pears"."IQacLedger"
    ( "Name" )
GO