====== pears.AlternativeInvoiceAddressEmail ====== 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 | | | ===== Primary Key ===== * AlternativeInvoiceAddressEmailID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | division | divisionid | [[database:tables:pears_division|pears.Division (divisionid)]] | ON DELETE SET NULL | ===== Referenced By ===== ^ Table ^ Constraint ^ Columns ^ Referenced columns ^ | [[database:tables:pears_accountoverrideinvoiceaddress|pears.AccountOverrideInvoiceAddress]] | AlternativeInvoiceAddressEmail | AlternativeInvoiceAddressEmailID | AlternativeInvoiceAddressEmailID | | [[database:tables:pears_placement|pears.Placement]] | AlternativeInvoiceAddressEmail | AlternativeInvoiceAddressEmailID | AlternativeInvoiceAddressEmailID | | [[database:tables:pears_salesbrand|pears.SalesBrand]] | AlternativeInvoiceAddressEmail | AlternativeInvoiceAddressEmailID | AlternativeInvoiceAddressEmailID | ===== Indexes ===== * No indexes found. ===== Triggers ===== * No triggers found. ===== Original SQL ===== -- 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