Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
Columns
| Column | Type | Null | Default | Comment |
| AlternativeInvoiceAddressEmailID | char(20) | NOT NULL | | |
| divisionid | char(20) | NULL | | |
| Description | char(100) | NOT NULL | | |
| InvoiceAddress | long varchar | NULL | | |
| Defunct | tinyint | NOT NULL | 0 | |
| InvoiceEmail | char(250) | NULL | | |
| Table | Constraint | Columns | Referenced columns |
| pears.AccountOverrideInvoiceAddress | AlternativeInvoiceAddressEmail | AlternativeInvoiceAddressEmailID | AlternativeInvoiceAddressEmailID |
| pears.Placement | AlternativeInvoiceAddressEmail | AlternativeInvoiceAddressEmailID | AlternativeInvoiceAddressEmailID |
| pears.SalesBrand | AlternativeInvoiceAddressEmail | AlternativeInvoiceAddressEmailID | AlternativeInvoiceAddressEmailID |
-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."AlternativeInvoiceAddressEmail"
-- Table comment:
-- Statement count: 2
CREATE TABLE "pears"."AlternativeInvoiceAddressEmail" (
"AlternativeInvoiceAddressEmailID" CHAR(20) NOT NULL
,"divisionid" CHAR(20) NULL
,"Description" CHAR(100) NOT NULL
,"InvoiceAddress" long VARCHAR NULL
,"Defunct" tinyint NOT NULL DEFAULT 0
,"InvoiceEmail" CHAR(250) NULL
,PRIMARY KEY ("AlternativeInvoiceAddressEmailID" ASC)
)
GO
ALTER TABLE "pears"."AlternativeInvoiceAddressEmail"
ADD FOREIGN KEY "division" ("divisionid" ASC)
REFERENCES "pears"."Division" ("divisionid")
ON DELETE SET NULL
GO