fct_buddy_checkin


Description

Each row represents a buddy check-in, which occurs when a member brings a guest (“buddy”) to the gym. checkin_id identifies the guest’s check-in (also in fct_checkin); join to fct_checkin for guest, location, and check-in time details. The associated service usage identifies the member who brought the guest and the service used. The member’s customer ID and the service usage ID are masked when their check-in privacy settings apply. Visits without a guest customer ID are excluded.

Columns

Column Type Size Nulls Auto Default Children Parents Comments
buddy_checkin_id int8 19 null
fct_checkin.checkin_id erp_v2_fct_buddy_checkin_buddy_checkin_id__erp_v2_fct_checkin_checkin_id_fkey_464771efe901 R

Guest check-in identifier. Join to fct_checkin.checkin_id for the guest’s check-in details. Each guest check-in represents one buddy visit.

service_usage_id int8 19 √ null
fct_service_usage.service_usage_id erp_v2_fct_buddy_checkin_service_usage_id__erp_v2_fct_service_usage_service_usage_id_fkey_59074a424de4 R

Identifier of the service usage associated with the buddy visit, when available. Masked to NULL when the member’s check-in privacy configuration applies.

owner_customer_id int8 19 √ null
dim_customer.customer_id erp_v2_fct_buddy_checkin_owner_customer_id__erp_v2_dim_customer_customer_id_fkey_d7644d06fb1a R

Customer record for the member who brought the buddy. Masked to NULL when the member’s privacy configuration applies.

owner_home_organization_unit_id int8 19 √ null
dim_organization_unit.organization_unit_id erp_v2_fct_buddy_checkin_owner_home_organization_unit_id__erp_v2_dim_organization_unit_organization_unit_id_fk_51bdf401a596 R

Home studio of the member who brought the buddy, when their customer record is available.

service_id int8 19 √ null
dim_service.service_id erp_v2_fct_buddy_checkin_service_id__erp_v2_dim_service_service_id_fkey_bfbd6ad1cc40 R

Service used by the member to bring the buddy.

last_updated timestamptz 35 √ null

System column. UTC Timestamp at which entry was calculated (lags shortly behind source system).

data_landing_time timestamptz 35 getdate()

System column. UTC timestamp assigned when a table batch is applied on Redshift. It represents warehouse landing order at table-batch granularity, not source event order. Usable to filter for incremental extractions.

Relationships