Skip to main content

Address

Data Dictionary- Table: Address#

Table contains address information for the Person entity (individuals and legal entities). One Person can hold multiple addresses. However, only one address can be marked as primary which will be used to drive regulatory checks, for tax purposes, etc. Under certain jurisdictions, this table should belong to the list of tables that contains PII- Personally Identifiable Information.

Primary Key ('id').ENGINE = InnoDB..
Column NameData TypePK Primary Key, NN-Not Null, NullExampleComments
idBIGINT(12)PK, NN1PrimaryKey-ID, Not Null (auto creates)
PrimaryTINYINTNULL1Address site (or Primary Complex) name
po_boxVARCHAR(45)NULLP.O. Box 123PO Box number
Addressline 1VARCHAR(45)NULLCorp BuildingFirst Address line Name, number or number range
Addressline 2VARCHAR(45)NULLMain StSecond Address line Name, number or number range
Street_NumberINTNULL123Address Number
zip_codeVARCHAR(45)NULLGU51 1AAZip Code or Post Code
CityBIGINT(12)NULL20City id from City Table
CountryBIGINT(12)NULL15Country id from Country Table
RegionBIGINT(12)NULL1Region Id from Region table
PersonBIGINT(12)NULL18009Person id that uniquely identifies person (individual or organisation)
Address_TypeBIGINT(12)NULL2Type of address from Address_Type Table: Home, Business, etc
CONSTRAINTFOREIGN KEYREFERENCESON DELETEON UPDATE
Person_PII(Person)Person_PII (id)NO ACTIONNO ACTION
Address_type(Address_type)Address_Type (Id)NO ACTIONNO ACTION
Country(Country)Country (id)NO ACTIONNO ACTION
City(City)City (id)NO ACTIONNO ACTION
Region(Region)Region (id)NO ACTIONNO ACTION
CREATE INDEXONASCVISIBLE.
Person_idxAddress(Person ASC)VISIBLE.
Address_type_idxAddress(Address_Type ASC)VISIBLE.
Country_idxAddress(Country ASC)VISIBLE.
City_idxAddress(City ASC)VISIBLE.
Region_idxAddress(Region ASC)VISIBLE.