Entity customer

A registered buyer.

Terms: Customer

Subject areas: Sales

Attributes

#NameTypeNullDefaultKeyTermsDescription
1idbigintnoPK
2emaildomain email (text(320))noUQ
3full_nametext(200)no
4created_attimestamptznoexpr "now()"

Keys

KindNameAttributes
primarypk_customerid
uniqueuq_customer_emailemail

Relationships

NameRoleOther entityCardinalityAttributesIdentifyingOn deleteOn update
address_customerparentaddressone to manyaddress.customer_id -> customer.idnocascadeno_action
order_customerparentorderone to manyorder.customer_id -> customer.idnorestrictno_action

Physical

lite (sqlite): main.customer

#NameTypeNullDefaultIdentityCollationAttributeComment
1idintegernoby_defaultid
2emailtextnoemail
3full_nametextnofull_name
4created_attextnoexpr "CURRENT_TIMESTAMP"created_at

pg (postgresql): public.customer

A registered buyer.

#NameTypeNullDefaultIdentityCollationAttributeComment
1idbigintnoalwaysid
2emailvarchar(320)noemail
3full_namevarchar(200)nofull_name
4created_attimestamp with time zonenoexpr "now()"created_at