====== pears.IQacPaymentMethod ======
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
===== Description =====
Cash, BACS etc
===== Columns =====
^ Column ^ Type ^ Null ^ Default ^ Comment ^
| **PaymentMethodCode** | char(3) | NOT NULL | | |
| Name | char(50) | NOT NULL | | |
| Card | smallint | NULL | 0 | |
| DocumentTemplateID | char(12) | NULL | | |
===== Primary Key =====
* PaymentMethodCode
===== Foreign Keys =====
^ Constraint ^ Columns ^ References ^ Delete/update action ^
| IQacDocumentTemplate | DocumentTemplateID | [[database:tables:pears_iqacdocumenttemplate|pears.IQacDocumentTemplate (DocumentTemplateID)]] | |
===== Referenced By =====
^ Table ^ Constraint ^ Columns ^ Referenced columns ^
| [[database:tables:pears_iqacparams|pears.IQacParams]] | IQacPaymentMethod | DefaultPaymentMethod | PaymentMethodCode |
===== Indexes =====
* No indexes found.
===== Triggers =====
* No triggers found.
===== Original SQL =====
-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."IQacPaymentMethod"
-- Table comment: Cash, BACS etc
-- Statement count: 3
CREATE TABLE "pears"."IQacPaymentMethod" (
"PaymentMethodCode" char(3) NOT NULL
,"Name" char(50) NOT NULL
,"Card" smallint NULL DEFAULT 0
,"DocumentTemplateID" char(12) NULL
,PRIMARY KEY ("PaymentMethodCode" ASC)
)
go
COMMENT ON TABLE "pears"."IQacPaymentMethod" IS
'Cash, BACS etc'
go
ALTER TABLE "pears"."IQacPaymentMethod"
ADD FOREIGN KEY "IQacDocumentTemplate" ("DocumentTemplateID" ASC)
REFERENCES "pears"."IQacDocumentTemplate" ("DocumentTemplateID")
go