Entity dim_customer

Customer dimension (type 1).

Stereotype: dimension

Subject areas: Sales Star

Attributes

#NameTypeNullDefaultKeyTermsDescription
1customer_keyintegernoPK
2customer_idtext(40)noUQ
3full_nametext(200)no
4segmenttext(40)yes
5countrychar(2)yes

Keys

KindNameAttributes
primarypk_dim_customercustomer_key
uniqueuq_dim_customer_idcustomer_id

Relationships

NameRoleOther entityCardinalityAttributesIdentifyingOn deleteOn update
fact_sales_customerparentfact_salesone to manyfact_sales.customer_key -> dim_customer.customer_keynono_actionno_action

Physical

bq (bigquery): public.dim_customer

Customer dimension (type 1).

#NameTypeNullDefaultIdentityCollationAttributeComment
1customer_keyint64nocustomer_key
2customer_idstring(40)nocustomer_id
3full_namestring(200)nofull_name
4segmentstring(40)yessegment
5countrystring(2)yescountry

dbx (databricks): default.dim_customer

Customer dimension (type 1).

#NameTypeNullDefaultIdentityCollationAttributeComment
1customer_keyintnoalwayscustomer_key
2customer_idstringnocustomer_id
3full_namestringnofull_name
4segmentstringyessegment
5countrystringyescountry

mysql (mysql): warehouse.dim_customer

Customer dimension (type 1).

Options: engine=InnoDB

#NameTypeNullDefaultIdentityCollationAttributeComment
1customer_keyintnoby_defaultcustomer_key
2customer_idvarchar(40)nocustomer_id
3full_namevarchar(200)nofull_name
4segmentvarchar(40)yessegment
5countrychar(2)yescountry

pg (postgresql): dw.dim_customer

Customer dimension (type 1).

#NameTypeNullDefaultIdentityCollationAttributeComment
1customer_keyintegernoalwayscustomer_key
2customer_idvarchar(40)nocustomer_id
3full_namevarchar(200)nofull_name
4segmentvarchar(40)yessegment
5countrychar(2)yescountry

rs (redshift): public.dim_customer

Customer dimension (type 1).

#NameTypeNullDefaultIdentityCollationAttributeComment
1customer_keyintegernoalwayscustomer_key
2customer_idvarchar(40)nocustomer_id
3full_namevarchar(200)nofull_name
4segmentvarchar(40)yessegment
5countrychar(2)yescountry

snow (snowflake): public.dim_customer

Customer dimension (type 1).

#NameTypeNullDefaultIdentityCollationAttributeComment
1customer_keynumber(10, 0)noalwayscustomer_key
2customer_idvarchar(40)nocustomer_id
3full_namevarchar(200)nofull_name
4segmentvarchar(40)yessegment
5countrychar(2)yescountry