Entity address

A postal address of a customer.

Subject areas: Sales

Attributes

#NameTypeNullDefaultKeyTermsDescription
1idbigintnoPK
2customer_idbigintnoFK
3line1text(200)no
4line2text(200)yes
5citytext(100)no
6postal_codetext(20)no
7countrychar(2)no

Keys

KindNameAttributes
primarypk_addressid

Relationships

NameRoleOther entityCardinalityAttributesIdentifyingOn deleteOn update
address_customerchildcustomerone to manyaddress.customer_id -> customer.idnocascadeno_action

Physical

lite (sqlite): main.address

#NameTypeNullDefaultIdentityCollationAttributeComment
1idintegernoby_defaultid
2customer_idintegernocustomer_id
3line1textnoline1
4line2textyesline2
5citytextnocity
6postal_codetextnopostal_code
7countrytextnocountry

pg (postgresql): public.address

A postal address of a customer.

#NameTypeNullDefaultIdentityCollationAttributeComment
1idbigintnoalwaysid
2customer_idbigintnocustomer_id
3line1varchar(200)noline1
4line2varchar(200)yesline2
5cityvarchar(100)nocity
6postal_codevarchar(20)nopostal_code
7countrychar(2)nocountry