Constraints

141 Foreign Key Constraints

Constraint Name Child Column Parent Column Delete Rule
fct_trainer_class_appointments_trainer_appointment_status_id_fkey
fct_trainer_class_appointments.trainer_appointment_status_id
dim_trainer_appointment_status.trainer_appointment_status_id
Restrict delete
fct_trainer_class_appointments_organization_unit_id_fkey
fct_trainer_class_appointments.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
fct_trainer_class_appointments_class_id_fkey
fct_trainer_class_appointments.class_id
dim_class.class_id
Restrict delete
dim_discount_campaign_discount_period_discount_campaign_scope_id_fkey
dim_discount_campaign_discount_period.discount_campaign_scope_id
dim_discount_campaign_scope.discount_campaign_scope_id
Restrict delete
dim_discount_campaign_discount_period_discount_campaign_id_fkey
dim_discount_campaign_discount_period.discount_campaign_id
dim_discount_campaign.discount_campaign_id
Restrict delete
fct_payment_run_customer_id_fkey
fct_payment_run.customer_id
dim_customer.customer_id
Restrict delete
fct_payment_run_currency_id_fkey
fct_payment_run.currency_id
dim_currency.currency_id
Restrict delete
fct_payment_run_organization_unit_id_fkey
fct_payment_run.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
fct_payment_run_payment_run_property_id_fkey
fct_payment_run.payment_run_property_id
dim_payment_run_property.payment_run_property_id
Restrict delete
dim_idle_period_property_organization_unit_id_fkey
dim_idle_period_property.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
dim_closing_hours_organization_unit_id_fkey
dim_closing_hours.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
dim_contract_voucher_definition_rate_id_fkey
dim_contract_voucher_definition.rate_id
dim_rate.rate_id
Restrict delete
dim_contract_voucher_definition_campaign_id_fkey
dim_contract_voucher_definition.campaign_id
dim_campaign.campaign_id
Restrict delete
dim_contract_voucher_definition_company_id_fkey
dim_contract_voucher_definition.company_id
dim_company.company_id
Restrict delete
fct_revenue_cash_based_currency_id_fkey
fct_revenue_cash_based.currency_id
dim_currency.currency_id
Restrict delete
fct_revenue_cash_based_contract_id_fkey
fct_revenue_cash_based.contract_id
fct_contract.contract_id
Restrict delete
fct_revenue_cash_based_customer_id_fkey
fct_revenue_cash_based.customer_id
dim_customer.customer_id
Restrict delete
fct_revenue_cash_based_product_id_fkey
fct_revenue_cash_based.product_id
dim_product.product_id
Restrict delete
fct_revenue_cash_based_revenue_group_id_fkey
fct_revenue_cash_based.revenue_group_id
dim_revenue_group.revenue_group_id
Restrict delete
fct_revenue_cash_based_organization_unit_id_fkey
fct_revenue_cash_based.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
dim_purchased_contingent_customer_id_fkey
dim_purchased_contingent.customer_id
dim_customer.customer_id
Restrict delete
dim_purchased_contingent_service_id_fkey
dim_purchased_contingent.service_id
dim_service.service_id
Restrict delete
dim_purchased_contingent_product_id_fkey
dim_purchased_contingent.product_id
dim_product.product_id
Restrict delete
dim_purchased_contingent_organization_unit_id_fkey
dim_purchased_contingent.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
fct_idle_period_customer_id_fkey
fct_idle_period.customer_id
dim_customer.customer_id
Restrict delete
fct_idle_period_idle_period_property_id_fkey
fct_idle_period.idle_period_property_id
dim_idle_period_property.idle_period_property_id
Restrict delete
fct_idle_period_currency_id_fkey
fct_idle_period.currency_id
dim_currency.currency_id
Restrict delete
fct_idle_period_organization_unit_id_fkey
fct_idle_period.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
fct_idle_period_contract_id_fkey
fct_idle_period.contract_id
fct_contract.contract_id
Restrict delete
fct_idle_period_rate_id_fkey
fct_idle_period.rate_id
dim_rate.rate_id
Restrict delete
fct_idle_period_shared_contract_idle_period_id_fkey
fct_idle_period.shared_contract_idle_period_id
fct_idle_period.idle_period_id
Restrict delete
dim_discount_campaign_scope_discount_campaign_id_fkey
dim_discount_campaign_scope.discount_campaign_id
dim_discount_campaign.discount_campaign_id
Restrict delete
dim_discount_campaign_scope_rate_bundle_id_fkey
dim_discount_campaign_scope.rate_bundle_id
dim_rate_bundle.rate_bundle_id
Restrict delete
dim_discount_campaign_scope_rate_bundle_term_id_fkey
dim_discount_campaign_scope.rate_bundle_term_id
dim_rate_bundle_term.rate_bundle_term_id
Restrict delete
fct_employee_access_organization_unit_id_fkey
fct_employee_access.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
bridge_organization_unit_to_organization_unit_code_organization_unit_code_id_fkey
bridge_organization_unit_to_organization_unit_code.organization_unit_code_id
dim_organization_unit_code.organization_unit_code_id
Restrict delete
bridge_organization_unit_to_organization_unit_code_organization_unit_id_fkey
bridge_organization_unit_to_organization_unit_code.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
fct_rate_term_payment_frequency_price_adjustment_rate_term_configuration_id_fkey
fct_rate_term_payment_frequency_price_adjustment.rate_term_configuration_id
dim_rate_term_configuration.rate_term_configuration_id
Restrict delete
fct_rate_term_payment_frequency_price_adjustment_rate_id_fkey
fct_rate_term_payment_frequency_price_adjustment.rate_id
dim_rate.rate_id
Restrict delete
fct_rate_term_payment_frequency_price_adjustment_rate_term_payment_frequency_id_fkey
fct_rate_term_payment_frequency_price_adjustment.rate_term_payment_frequency_id
dim_rate_term_payment_frequency.rate_term_payment_frequency_id
Restrict delete
bridge_rate_bundle_to_company_company_id_fkey
bridge_rate_bundle_to_company.company_id
dim_company.company_id
Restrict delete
bridge_rate_bundle_to_company_rate_bundle_id_fkey
bridge_rate_bundle_to_company.rate_bundle_id
dim_rate_bundle.rate_bundle_id
Restrict delete
dim_rate_term_configuration_rate_id_fkey
dim_rate_term_configuration.rate_id
dim_rate.rate_id
Restrict delete
dim_rate_localized_rate_id_fkey
dim_rate_localized.rate_id
dim_rate.rate_id
Restrict delete
fct_contract_voucher_contract_id_fkey
fct_contract_voucher.contract_id
fct_contract.contract_id
Restrict delete
fct_contract_voucher_campaign_id_fkey
fct_contract_voucher.campaign_id
dim_campaign.campaign_id
Restrict delete
bridge_rate_bundle_to_payment_choice_rate_bundle_id_fkey
bridge_rate_bundle_to_payment_choice.rate_bundle_id
dim_rate_bundle.rate_bundle_id
Restrict delete
dim_cancellation_reason_localized_cancellation_reason_id_fkey
dim_cancellation_reason_localized.cancellation_reason_id
dim_cancellation_reason.cancellation_reason_id
Restrict delete
fct_customer_studio_history_organization_unit_id_fkey
fct_customer_studio_history.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
fct_customer_studio_history_customer_id_fkey
fct_customer_studio_history.customer_id
dim_customer.customer_id
Restrict delete
dim_opening_hours_organization_unit_id_fkey
dim_opening_hours.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
fct_customer_appointment_organization_unit_id_fkey
fct_customer_appointment.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
fct_customer_appointment_customer_id_fkey
fct_customer_appointment.customer_id
dim_customer.customer_id
Restrict delete
fct_customer_appointment_inclusive_contingent_id_fkey
fct_customer_appointment.inclusive_contingent_id
dim_inclusive_contingent.inclusive_contingent_id
Restrict delete
fct_customer_appointment_service_id_fkey
fct_customer_appointment.service_id
dim_service.service_id
Restrict delete
bridge_rate_to_rate_code_rate_code_id_fkey
bridge_rate_to_rate_code.rate_code_id
dim_rate_code.rate_code_id
Restrict delete
fct_rate_bundle_term_availability_organization_unit_id_fkey
fct_rate_bundle_term_availability.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
fct_rate_bundle_term_availability_rate_bundle_term_id_fkey
fct_rate_bundle_term_availability.rate_bundle_term_id
dim_rate_bundle_term.rate_bundle_term_id
Restrict delete
bridge_customer_to_customer_code_customer_code_id_fkey
bridge_customer_to_customer_code.customer_code_id
dim_customer_code.customer_code_id
Restrict delete
bridge_customer_to_customer_code_customer_id_fkey
bridge_customer_to_customer_code.customer_id
dim_customer.customer_id
Restrict delete
bridge_revenue_to_purchased_contingent_revenue_id_fkey
bridge_revenue_to_purchased_contingent.revenue_id
fct_revenue.revenue_id
Restrict delete
dim_contract_voucher_rate_discount_period_contract_voucher_definition_id_fkey
dim_contract_voucher_rate_discount_period.contract_voucher_definition_id
dim_contract_voucher_definition.contract_voucher_definition_id
Restrict delete
dim_contract_voucher_rate_discount_period_rate_id_fkey
dim_contract_voucher_rate_discount_period.rate_id
dim_rate.rate_id
Restrict delete
dim_contract_voucher_rate_discount_period_contract_voucher_id_fkey
dim_contract_voucher_rate_discount_period.contract_voucher_id
fct_contract_voucher.contract_voucher_id
Restrict delete
dim_rate_bundle_term_rate_term_payment_frequency_id_fkey
dim_rate_bundle_term.rate_term_payment_frequency_id
dim_rate_term_payment_frequency.rate_term_payment_frequency_id
Restrict delete
dim_rate_bundle_term_rate_bundle_id_fkey
dim_rate_bundle_term.rate_bundle_id
dim_rate_bundle.rate_bundle_id
Restrict delete
fct_checkin_organization_unit_id_fkey
fct_checkin.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
fct_checkin_customer_id_fkey
fct_checkin.customer_id
dim_customer.customer_id
Restrict delete
fct_checkin_customer_organization_unit_id_fkey
fct_checkin.customer_organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
fct_checkin_checkout_date_id_fkey
fct_checkin.checkout_date_id
dim_date.date_id
Restrict delete
fct_checkin_device_id_fkey
fct_checkin.device_id
dim_device.device_id
Restrict delete
fct_checkin_checkin_date_id_fkey
fct_checkin.checkin_date_id
dim_date.date_id
Restrict delete
bridge_discount_campaign_to_allowed_origin_type_discount_campaign_id_fkey
bridge_discount_campaign_to_allowed_origin_type.discount_campaign_id
dim_discount_campaign.discount_campaign_id
Restrict delete
fct_contract_cancellation_currency_id_fkey
fct_contract_cancellation.currency_id
dim_currency.currency_id
Restrict delete
fct_contract_cancellation_customer_id_fkey
fct_contract_cancellation.customer_id
dim_customer.customer_id
Restrict delete
fct_contract_cancellation_pre_cancellation_end_date_id_fkey
fct_contract_cancellation.pre_cancellation_end_date_id
dim_date.date_id
Restrict delete
fct_contract_cancellation_cancellation_date_id_fkey
fct_contract_cancellation.cancellation_date_id
dim_date.date_id
Restrict delete
fct_contract_cancellation_contract_end_date_id_fkey
fct_contract_cancellation.contract_end_date_id
dim_date.date_id
Restrict delete
fct_contract_cancellation_rate_id_fkey
fct_contract_cancellation.rate_id
dim_rate.rate_id
Restrict delete
fct_contract_cancellation_organization_unit_id_fkey
fct_contract_cancellation.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
fct_contract_cancellation_cancellation_reason_id_fkey
fct_contract_cancellation.cancellation_reason_id
dim_cancellation_reason.cancellation_reason_id
Restrict delete
fct_contract_cancellation_cancellation_receipt_date_id_fkey
fct_contract_cancellation.cancellation_receipt_date_id
dim_date.date_id
Restrict delete
dim_product_service_id_fkey
dim_product.service_id
dim_service.service_id
Restrict delete
fct_lead_lifetime_campaign_id_fkey
fct_lead_lifetime.campaign_id
dim_campaign.campaign_id
Restrict delete
fct_lead_lifetime_organization_unit_id_fkey
fct_lead_lifetime.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
fct_lead_lifetime_customer_id_fkey
fct_lead_lifetime.customer_id
dim_customer.customer_id
Restrict delete
fct_trainer_appointment_organization_unit_id_fkey
fct_trainer_appointment.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
fct_trainer_appointment_service_id_fkey
fct_trainer_appointment.service_id
dim_service.service_id
Restrict delete
bridge_product_to_organization_unit_organization_unit_id_fkey
bridge_product_to_organization_unit.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
bridge_product_to_organization_unit_product_id_fkey
bridge_product_to_organization_unit.product_id
dim_product.product_id
Restrict delete
fct_contract_start_date_id_fkey
fct_contract.start_date_id
dim_date.date_id
Restrict delete
fct_contract_subsequent_contract_id_fkey
fct_contract.subsequent_contract_id
fct_contract.contract_id
Restrict delete
fct_contract_cancellation_date_id_fkey
fct_contract.cancellation_date_id
dim_date.date_id
Restrict delete
fct_contract_pre_cancellation_end_date_id_fkey
fct_contract.pre_cancellation_end_date_id
dim_date.date_id
Restrict delete
fct_contract_created_date_id_fkey
fct_contract.created_date_id
dim_date.date_id
Restrict delete
fct_contract_cancellation_receipt_date_id_fkey
fct_contract.cancellation_receipt_date_id
dim_date.date_id
Restrict delete
fct_contract_end_date_id_fkey
fct_contract.end_date_id
dim_date.date_id
Restrict delete
fct_contract_start_date_of_use_id_fkey
fct_contract.start_date_of_use_id
dim_date.date_id
Restrict delete
fct_contract_main_contract_id_fkey
fct_contract.main_contract_id
fct_contract.contract_id
Restrict delete
fct_customer_referral_referred_customer_id_fkey
fct_customer_referral.referred_customer_id
dim_customer.customer_id
Restrict delete
fct_customer_referral_referring_customer_id_fkey
fct_customer_referral.referring_customer_id
dim_customer.customer_id
Restrict delete
fct_invoice_product_id_fkey
fct_invoice.product_id
dim_product.product_id
Restrict delete
fct_invoice_currency_id_fkey
fct_invoice.currency_id
dim_currency.currency_id
Restrict delete
bridge_service_to_organization_unit_organization_unit_id_fkey
bridge_service_to_organization_unit.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
bridge_service_to_organization_unit_service_id_fkey
bridge_service_to_organization_unit.service_id
dim_service.service_id
Restrict delete
dim_customer_custom_field_customer_id_fkey
dim_customer_custom_field.customer_id
dim_customer.customer_id
Restrict delete
dim_customer_communication_consent_organization_unit_id_fkey
dim_customer_communication_consent.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
fct_contract_price_history_organization_unit_id_fkey
fct_contract_price_history.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
fct_contract_price_history_contract_id_fkey
fct_contract_price_history.contract_id
fct_contract.contract_id
Restrict delete
fct_contract_price_history_customer_id_fkey
fct_contract_price_history.customer_id
dim_customer.customer_id
Restrict delete
fct_service_usage_organization_unit_id_fkey
fct_service_usage.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
fct_service_usage_service_id_fkey
fct_service_usage.service_id
dim_service.service_id
Restrict delete
fct_service_usage_device_id_fkey
fct_service_usage.device_id
dim_device.device_id
Restrict delete
fct_service_usage_customer_id_fkey
fct_service_usage.customer_id
dim_customer.customer_id
Restrict delete
fct_service_usage_inclusive_contingent_id_fkey
fct_service_usage.inclusive_contingent_id
dim_inclusive_contingent.inclusive_contingent_id
Restrict delete
fct_revenue_revenue_group_id_fkey
fct_revenue.revenue_group_id
dim_revenue_group.revenue_group_id
Restrict delete
fct_revenue_rate_id_fkey
fct_revenue.rate_id
dim_rate.rate_id
Restrict delete
fct_revenue_contract_id_fkey
fct_revenue.contract_id
fct_contract.contract_id
Restrict delete
fct_revenue_organization_unit_id_fkey
fct_revenue.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
fct_revenue_currency_id_fkey
fct_revenue.currency_id
dim_currency.currency_id
Restrict delete
fct_revenue_product_id_fkey
fct_revenue.product_id
dim_product.product_id
Restrict delete
fct_revenue_customer_id_fkey
fct_revenue.customer_id
dim_customer.customer_id
Restrict delete
bridge_company_to_organization_unit_organization_unit_id_fkey
bridge_company_to_organization_unit.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
dim_rate_term_payment_frequency_rate_id_fkey
dim_rate_term_payment_frequency.rate_id
dim_rate.rate_id
Restrict delete
dim_rate_term_payment_frequency_rate_term_configuration_id_fkey
dim_rate_term_payment_frequency.rate_term_configuration_id
dim_rate_term_configuration.rate_term_configuration_id
Restrict delete
fct_contract_term_dates_contract_id_fkey
fct_contract_term_dates.contract_id
fct_contract.contract_id
Restrict delete
bridge_discount_campaign_to_organization_unit_organization_unit_id_fkey
bridge_discount_campaign_to_organization_unit.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
bridge_discount_campaign_to_organization_unit_discount_campaign_id_fkey
bridge_discount_campaign_to_organization_unit.discount_campaign_id
dim_discount_campaign.discount_campaign_id
Restrict delete
fct_rate_term_payment_frequency_price_rate_term_payment_frequency_id_fkey
fct_rate_term_payment_frequency_price.rate_term_payment_frequency_id
dim_rate_term_payment_frequency.rate_term_payment_frequency_id
Restrict delete
fct_rate_term_payment_frequency_price_organization_unit_id_fkey
fct_rate_term_payment_frequency_price.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
fct_rate_term_payment_frequency_price_rate_id_fkey
fct_rate_term_payment_frequency_price.rate_id
dim_rate.rate_id
Restrict delete
fct_rate_term_payment_frequency_price_rate_term_configuration_id_fkey
fct_rate_term_payment_frequency_price.rate_term_configuration_id
dim_rate_term_configuration.rate_term_configuration_id
Restrict delete
fct_class_appointment_end_date_id_fkey
fct_class_appointment.end_date_id
dim_date.date_id
Restrict delete
fct_class_appointment_start_date_id_fkey
fct_class_appointment.start_date_id
dim_date.date_id
Restrict delete
fct_class_appointment_created_date_id_fkey
fct_class_appointment.created_date_id
dim_date.date_id
Restrict delete
fct_class_appointment_class_id_fkey
fct_class_appointment.class_id
dim_class.class_id
Restrict delete
fct_class_appointment_organization_unit_id_fkey
fct_class_appointment.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
fct_class_event_organization_unit_id_fkey
fct_class_event.organization_unit_id
dim_organization_unit.organization_unit_id
Restrict delete
fct_class_event_class_id_fkey
fct_class_event.class_id
dim_class.class_id
Restrict delete
fct_class_event_inclusive_contingent_id_fkey
fct_class_event.inclusive_contingent_id
dim_inclusive_contingent.inclusive_contingent_id
Restrict delete
fct_class_event_customer_id_fkey
fct_class_event.customer_id
dim_customer.customer_id
Restrict delete

Check Constraints

Table Constraint Name Constraint