dim_communities


Description

Communities are defined by the company and are a way to group memberships and helpers by region.

Columns

Column Type Children Parents Comments
community_id int8
dim_members.community_id Implied Constraint R
dim_memberships.community_id Implied Constraint R
fct_contract_products.community_id Implied Constraint R
fct_contracts.community_id Implied Constraint R
fct_incidents.community_id Implied Constraint R
fct_membership_communities.community_id Implied Constraint R
fct_observations.community_id Implied Constraint R
fct_visits.community_id Implied Constraint R

The unique community ID, e.g.: 123.

community_name text

The name of the community, e.g.: “Western Suburbs”.

created_at timestamp

The date and time created (in UTC), e.g.: 2021-03-02 00:12:59.996101.

updated_at timestamp

The date and time last updated (in UTC), e.g.: 2021-03-17 22:59:01.116801.

company_id int8
dim_companies.company_id Implied Constraint R

The company ID, e.g.: 345.

Indexes

Constraint Name Type Sort Column(s)
dim_communities_pkey Primary key Asc community_id
dim_communities_company_id_idx Performance Asc company_id

Relationships