====== 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 ===== * LedgerID ===== Foreign Keys ===== * No outgoing foreign keys found. ===== Referenced By ===== ^ Table ^ Constraint ^ Columns ^ Referenced columns ^ | [[database:tables:pears_iqacaccount|pears.IQacAccount]] | IQacLedger | LedgerID | LedgerID | | [[database:tables:pears_iqacdocumenttemplate|pears.IQacDocumentTemplate]] | ConLedger | ControlLedgerID | LedgerID | | [[database:tables:pears_iqacdocumenttemplate|pears.IQacDocumentTemplate]] | PayLedger | PaymentLedgerID | LedgerID | | [[database:tables:pears_iqacnominal|pears.IQacNominal]] | NomLedger | LedgerID | LedgerID | ===== Indexes ===== ^ Name ^ Type ^ Columns ^ Detail ^ | IQacLedger_Name | Unique index | Name | | ===== Triggers ===== * No triggers found. ===== 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