Tables


SchemaSpy Analysis of Magicline Enterprise Data Warehouse

Generated on Tue May 26 17:02 GMT 2026

XML Representation
Insertion Order Deletion Order
TABLES 81
VIEWS 0
COLUMNS 877
Constraints 91

Database Properties

Database Type: Redshift - 8.0.2

Schema erp_v2

Real-Time Magicline Enterprise Data Warehouse

These are the docs for the new erp_v2 Data Warehouse schema that is served in near real time. To see the docs for the old schema, please refer to the legacy schema documentation.

This read-only schema provides selected business relevant data of Magicline in an unaggregated per-event grain in the form of multiple fact and dimension tables (star/galaxy/fact-constellation schema).

It’s targeted to use for analytical purposes in BI tools like PowerBI, time uncritical direct queries or as source for a custom pipeline, where data can be further enriched or prepared for fast access.

Note: See our showcase on how to use PowerBI!

Authentication

  • Connection is restricted to a static IP address we need from you
  • A single USER & PASSWORD + HOST are provided
  • User has access to a single database of the same name

Connection

Please fill in the arguments, as provided by us.

Via odbc see aws documentation

Driver={Amazon Redshift (x64)};Server=<HOST>;Database=<USER>;UID=<USER>;PWD=<PASSWORD>;Port=5439

Via jdbc see aws documentation

jdbc:redshift://<HOST>:5439/<USER>

Updates

Tables are synced incrementally (inserts/updates/deletes) every few minutes

Non-Breaking Changes

  • New tables are announced in the Changelog on the same date they are added
  • New columns on existing tables are announced in the Changelog on the same date they are added

Breaking Changes

  • Tables are marked as deprecated in their documentation before they are deleted, to allow users to adapt beforehand
  • Columns are marked as deprecated in their documentation before they are deleted, to allow users to adapt beforehand
  • Deprecations are announced in the Changelog on the same date

Anonymization / Access Level

Generally all data-privacy settings from the source System, like anonymizing checkins after a certain time period, are also applied on this Data Warehouse.
Additionally, there are 3 different types of access level we provide:

  • Owner: Client that owns the whole tenant in the source System. All data is provided.
  • Franchisee: Client that owns a subset of the tenants studios in the source System. Only fact data of selected studios is provided. Dimensional data of other studios can appear but is anonymized.
  • Franchise System: Client that owns the whole tenant in the source System but doesn’t operate studios directly. All fact data is provided but anonymized.

Your accounts access level will be defined during setup with your account manager.

Best Practices

Using Views

To ensure our ETL process can properly refresh the underlying tables, it is critical that you create views using the WITH NO SCHEMA BINDING option.
This type of view, also known as a late-binding view, does not create a dependency between the view and the underlying tables. This allows us to drop and recreate tables without affecting your views.

To create a late-binding view in Redshift, use the following syntax:

CREATE VIEW public.your_view_name
AS
SELECT
    column1,
    column2,
    ...
FROM
    magicline.dim_or_fact_table_name
WITH NO SCHEMA BINDING;

By adhering to this practice, you will prevent issues with our data refresh process and ensure the continuous availability of your data.

Contact

  • For feedback and issues, please contact your account manager

Tables

Table / View Children Parents Columns Type Comments
fct_trainer_class_appointments 0 7 9 Table
dim_inclusive_contingent 3 0 8 Table
dim_discount_campaign_localized 0 0 6 Table
dim_discount_campaign_discount_period 0 1 13 Table
fct_payment_run 0 5 12 Table
dim_daytime 0 0 6 Table
dim_payment_run_property 1 0 6 Table
dim_idle_period_property 1 1 9 Table
dim_closing_hours 0 1 9 Table
dim_employee 5 0 20 Table
dim_contract_voucher_definition 2 3 21 Table
fct_revenue_cash_based 0 6 28 Table
dim_purchased_contingent 4 4 22 Table
dim_revenue_group 2 0 4 Table
fct_idle_period 0 8 20 Table
dim_date 25 0 16 Table
dim_contract_payment_frequency 1 0 7 Table
dim_contract_term 1 0 4 Table
dim_discount_campaign_scope 1 2 8 Table
fct_employee_access 0 2 6 Table
bridge_organization_unit_to_organization_unit_code 0 2 4 Table
fct_rate_term_payment_frequency_price_adjustment 0 3 14 Table
bridge_rate_bundle_to_company 0 2 6 Table
dim_rate_bundle 4 0 7 Table
dim_device 2 0 6 Table
dim_class_event_property 1 0 5 Table
dim_trainer_appointment_status 1 0 3 Table
dim_customer_code 1 0 7 Table
dim_rate_term_configuration 4 1 21 Table
dim_rate_localized 0 1 6 Table
fct_contract_voucher 1 4 22 Table
dim_campaign 3 0 7 Table
dim_organization_unit 32 0 15 Table
bridge_rate_bundle_to_payment_choice 0 1 4 Table
dim_cancellation_reason_localized 0 1 5 Table
fct_customer_studio_history 0 2 7 Table
dim_contract_cancellation_reason 1 1 8 Table
dim_company_code 1 0 5 Table
dim_contract_cancellation_property 1 0 4 Table
dim_opening_hours 0 1 7 Table
fct_customer_appointment 0 6 16 Table
dim_discount_campaign 0 0 7 Table
fct_rate_bundle_term_availability 0 2 6 Table
dim_cancellation_reason 3 0 5 Table
bridge_company_to_company_code 0 2 4 Table
bridge_customer_to_customer_code 0 2 4 Table
bridge_revenue_to_purchased_contingent 0 2 4 Table
dim_organization_unit_code 1 0 4 Table
dim_contract_voucher_rate_discount_period 0 3 12 Table
dim_rate_bundle_term 2 3 6 Table
fct_checkin 0 6 11 Table
bridge_discount_campaign_to_allowed_origin_type 0 0 4 Table
dim_company 7 0 35 Table
fct_contract_cancellation 0 10 13 Table
dim_class 3 0 9 Table
dim_product 4 1 17 Table
fct_lead_lifetime 0 3 13 Table
fct_trainer_appointment 0 4 17 Table
bridge_product_to_organization_unit 0 2 5 Table
dim_service 6 0 10 Table
dim_currency 5 0 5 Table
fct_contract 8 17 28 Table
fct_customer_referral 0 2 14 Table
fct_invoice 0 5 31 Table
bridge_service_to_organization_unit 0 2 5 Table
dim_customer_custom_field 0 1 8 Table
dim_customer_communication_consent 0 2 14 Table
fct_contract_price_history 0 3 18 Table
fct_service_usage 0 7 13 Table
dim_contract_property 1 0 9 Table
dim_rate 12 0 6 Table
fct_revenue 1 8 16 Table
dim_appointment 5 0 9 Table
bridge_company_to_organization_unit 0 2 8 Table
dim_rate_term_payment_frequency 3 2 8 Table
fct_contract_term_dates 0 3 7 Table
bridge_discount_campaign_to_organization_unit 0 1 4 Table
fct_rate_term_payment_frequency_price 0 4 16 Table
fct_class_appointment 0 6 14 Table
fct_class_event 0 10 13 Table
dim_customer 21 0 32 Table