# Club Speed (v1)

Information note **Club Speed is supported by the Singer community**   
This integration is powered by [Singer's](https://www.singer.io/) Club Speed tap. For support, [visit the GitHub repo](https://github.com/singer-io/tap-clubspeed) or [join the Singer Slack](https://singer-slackin.herokuapp.com/).

## Club Speed integration summary

Stitch’s Club Speed integration replicates data using the [Club Speed API](https://www.programmableweb.com/api/club-speed) . Refer to the [Schema](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#schema) section for a list of objects available for replication.

## Club Speed feature snapshot

A high-level look at Stitch's Club Speed (v1) integration, including release status, useful links, and the features supported in Stitch.

| **STITCH** |  |  |  |
| --- | --- | --- | --- |
| **[Release status](https://help.qlik.com/en-US/stitch/integrations/identify-an-integration-version)** | Released on February 1, 2019 | **Supported by**<br><br>the Info icon<br><br>Indicates if the integration is supported by Stitch or the Singer community. | [Singer Community](https://www.singer.io/) |
| **Stitch plan**<br><br>the Info icon<br><br>The type of Stitch plan required to use the integration. | Standard | **[API availability](https://help.qlik.com/en-US/stitch/developers/stitch-connect/guides/source-destination-reference)**<br><br>the Info icon<br><br>Indicates if the integration is available as a source in Stitch Connect. | the Success icon<br><br>This version of the integration is available via the API.<br><br><br>Available |
| **Singer GitHub repository** | [singer-io/tap-clubspeed](https://github.com/singer-io/tap-clubspeed) |  |  |
| **REPLICATION SETTINGS** |  |  |  |
| **[Anchor Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/anchor-scheduling)**<br><br>the Info icon<br><br>A type of replication scheduling where an integration's Replication Frequency is anchored to a time you select. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported | **[Advanced Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/advanced-scheduling)**<br><br>the Info icon<br><br>A type of replication scheduling that allows you to specify granular start times for data extraction using cron expressions. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported |
| **Table-level reset**<br><br>the Info icon<br><br>Indicates if data can be reset at the table level. If unsupported, data can only be reset at the integration level. | the Remove icon<br><br>Table-level resets are not supported for this integration. Resets are only supported at the integration level.<br><br><br>Unsupported | **[Configurable Replication Methods](https://help.qlik.com/en-US/stitch/replication/replication-methods)**<br><br>the Info icon<br><br>Indicates if Replication Methods can be defined by you for tables in the integration. | the Remove icon<br><br>Configurable Replication Methods are not supported for this integration. Stitch will use pre-defined replication methods for tables you set to replicate.<br><br><br>Unsupported |
| **DATA SELECTION** |  |  |  |
| **Table selection**<br><br>the Info icon<br><br>The ability to select individual tables for replication in the Stitch interface. If table selection is unavailable, all tables and all the columns they contain will be set to replicate by default. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported | **Column selection**<br><br>the Info icon<br><br>The ability to select individual columns for replication in the Stitch interface. If column selection is unavailable, all columns will be set to replicate by default. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported |
| **Select all**<br><br>the Info icon<br><br>Indicates if the integration supports selecting all available tables and columns. | the Success icon<br><br>Supported<br><br><br>Supported |  |  |
| **TRANSPARENCY** |  |  |  |
| **[Extraction Logs](https://help.qlik.com/en-US/stitch/replication/extractions/integration-extraction-logs)**<br><br>the Info icon<br><br>Logs detailing the Extraction phase of the replication process for a given integration. Includes error info, should an error occur. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported | **[Loading Reports](https://help.qlik.com/en-US/stitch/replication/integration-loading-reports)**<br><br>the Info icon<br><br>Reports detailing the Loading phase of the replication process for a given integration. Includes the number of rows loaded for each table and error info, should an error occur. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported |

## Connecting Club Speed

### Club Speed setup requirements

To set up Club Speed in Stitch, you need:

* **A Club Speed API key**. To use Stitch’s Club Speed integration, you’ll need an API key generated by Club Speed. Reach out to [Club Speed support](mailto:%20support@clubspeed.com) to have them generate this credential for you.

  After you’ve received the API key, you can complete the setup in Stitch.

### Step 1: Add Club Speed as a Stitch data source

1. [Sign into your Stitch account](https://app.stitchdata.com/).

2. On the Stitch Dashboard page, click the **Add Integration** button.

3. Click the **Club Speed** icon.

4. Enter a name for the integration. This is the name that will display on the Stitch Dashboard for the integration; it’ll also be used to create the schema in your destination.

   For example, the name “Stitch Club Speed” would create a schema called `stitch_club_speed` in the destination. **Note**: Schema names cannot be changed after you save the integration.

5. In the **Club Speed Subdomain** field, enter your Club Speed subdomain. For example: If the full subdomain were `stitchdata.clubspeedtiming.com`, you’d only enter `stitchdata` into this field.

6. In the **Club Speed Private Key** field, paste your Club Speed private API key. **Note**: [You’ll need to contact Club Speed to obtain this credential](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#setup-requirements).

### Step 2: Define the historical replication start date

The Sync Historical Data setting defines the starting date for your Club Speed integration. This means that data **equal to or newer than this date** will be replicated to your data warehouse.

Change this setting if you want to replicate data beyond Club Speed’s default setting of **1 year**. For a detailed look at historical replication jobs, check out the [Syncing Historical SaaS Data](https://help.qlik.com/en-US/stitch/replication/syncing-historical-saas-data-resetting-replication-keys) guide.

### Step 3: Create a replication schedule

Information note Replication schedules affect the time Extraction begins, not the time to data loaded. Refer to the [Replication Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling) documentation for more information.

In the **Replication Frequency** section, you’ll create the integration’s [replication schedule](https://help.qlik.com/en-US/stitch/replication/replication-scheduling). An integration’s replication schedule determines how often Stitch runs a replication job, and the time that job begins.

Club Speed integrations support the following replication scheduling methods:

* [Replication Frequency](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/replication-frequency)

* [Anchor Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/anchor-scheduling)

* [Advanced Scheduling using Cron](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/advanced-scheduling) (Advanced or Premium plans only)

To keep your row usage low, consider setting the integration to replicate less frequently. See the [Understanding and Reducing Your Row Usage guide](https://help.qlik.com/en-US/stitch/getting-started/understanding-stitch-usage) for tips on reducing your usage.

### Initial and historical replication jobs

After you finish setting up Club Speed, its **Sync Status** may show as **Pending** on either the Stitch Dashboard or in the Integration Details page.

For a new integration, a **Pending** status indicates that Stitch is in the process of scheduling the initial replication job for the integration. **This may take some time to complete.**

Information note

**Initial replication jobs with Anchor Scheduling**

If using Anchor Scheduling, an initial replication job may not kick off immediately. This depends on the selected Replication Frequency and Anchor Time. Refer to the [Anchor Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling#job-scheduling-and-anchor-times) documentation for more information.

#### Free historical data loads

The first seven days of replication, beginning when data is first replicated, are free. Rows replicated from the new integration during this time won’t count towards your quota. Stitch offers this as a way of testing new integrations, measuring usage, and ensuring historical data volumes don’t quickly consume your quota.

Information note **Replication will continue after the seven days are over**. If you’re no longer interested in this source, be sure to **pause** or **delete** the integration to prevent unwanted usage.

## Club Speed table reference

Information note

**Schemas and versioning**

Schemas and naming conventions can change from version to version, so we recommend verifying your integration’s version before continuing.

The schema and info displayed below is for **version 1** of this integration.

This is the latest version of the Club Speed integration.

Information note

**Table and column names in your destination**

Depending on your destination, table and column names may not appear as they are outlined below.

For example: Object names are lowercased in Redshift (`CusTomERs` &gt; `customers`), while case is maintained in PostgreSQL destinations (`CusTomERs` &gt; `CusTomERs`). Refer to the [Loading Guide](https://help.qlik.com/en-US/stitch/replication/loading/destination-guides) for your destination for more info.

### booking

The `booking` table contains info about bookings. A booking record exposes a `heat` to the online booking interface in Club Speed.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | onlineBookingsId |
| **Useful links** | [booking schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/booking.json "Opens in new tab: booking schema on GitHub") |

booking table foreign keys

| Join booking with | on |
| --- | --- |
| [booking_availability](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#booking-availability) | ```<br>booking.onlineBookingsId = booking_availability.products.onlineBookingsId<br>```<br><br>```<br>booking.heatId = booking_availability.heatId<br>```<br><br>```<br>booking.heatId = booking_availability.heatSpotsAvailableCombined<br>```<br><br>```<br>booking.productsId = booking_availability.products.productsId<br>``` |
| [reservations](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#reservations) | ```<br>booking.onlineBookingsId = reservations.onlineBookingsId<br>``` |
| [heat_main](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#heat-main) | ```<br>booking.heatId = heat_main.heatId<br>``` |
| [heat_main_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#heat-main-details) | ```<br>booking.heatId = heat_main_details.heatId<br>``` |
| [check_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#check-details) | ```<br>booking.productsId = check_details.productId<br>``` |
| [event_types](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-types) | ```<br>booking.productsId = event_types.onlineProductId<br>``` |
| [products](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#products) | ```<br>booking.productsId = products.productId<br>``` |

booking table schema

| **heatId**<br><br><br>INTEGER |
| --- |
| **isPublic**<br><br><br>BOOLEAN |
| **onlineBookingsId**<br><br><br>INTEGER |
| **productsId**<br><br><br>INTEGER |
| **quantityTotal**<br><br><br>INTEGER |

### booking\_availability

The `booking_availability` table contains info about the current availability for online bookings. These take into account both online and local booking reservations.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | heatId |
| **Useful links** | [booking_availability schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/booking_availability.json "Opens in new tab: booking_availability schema on GitHub") |

booking\_availability table foreign keys

| Join booking\_availability with | on |
| --- | --- |
| [booking](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#booking) | ```<br>booking_availability.products.onlineBookingsId = booking.onlineBookingsId<br>```<br><br>```<br>booking_availability.heatId = booking.heatId<br>```<br><br>```<br>booking_availability.heatSpotsAvailableCombined = booking.heatId<br>```<br><br>```<br>booking_availability.products.productsId = booking.productsId<br>``` |
| [reservations](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#reservations) | ```<br>booking_availability.products.onlineBookingsId = reservations.onlineBookingsId<br>``` |
| [heat_main](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#heat-main) | ```<br>booking_availability.heatId = heat_main.heatId<br>```<br><br>```<br>booking_availability.heatSpotsAvailableCombined = heat_main.heatId<br>```<br><br>```<br>booking_availability.heatTypeId = heat_main.type<br>``` |
| [heat_main_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#heat-main-details) | ```<br>booking_availability.heatId = heat_main_details.heatId<br>```<br><br>```<br>booking_availability.heatSpotsAvailableCombined = heat_main_details.heatId<br>``` |
| [event_heat_types](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-heat-types) | ```<br>booking_availability.heatTypeId = event_heat_types.heatTypeId<br>``` |
| [event_rounds](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-rounds) | ```<br>booking_availability.heatTypeId = event_rounds.heatTypeId<br>``` |
| [heat_types](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#heat-types) | ```<br>booking_availability.heatTypeId = heat_types.heatTypesId<br>``` |
| [check_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#check-details) | ```<br>booking_availability.products.productsId = check_details.productId<br>``` |
| [event_types](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-types) | ```<br>booking_availability.products.productsId = event_types.onlineProductId<br>``` |
| [products](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#products) | ```<br>booking_availability.products.productsId = products.productId<br>``` |

booking\_availability table schema

| **heatDescription**<br><br><br>STRING |
| --- |
| **heatId**<br><br><br>INTEGER |
| **heatSpotsAvailableCombined**<br><br><br>INTEGER |
| **heatSpotsAvailableOnline**<br><br><br>INTEGER |
| **heatSpotsTotalActual**<br><br><br>INTEGER |
| **heatStartsAt**<br><br><br>DATE-TIME |
| **heatTypeId**<br><br><br>INTEGER |
| **isPublic**<br><br><br>BOOLEAN |
| **products**<br><br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand products<br><br><table> <tr> <td> <p> <strong>								onlineBookingsId							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								price1							</strong> </p> <p>							NUMBER													</p> </td> </tr> <tr> <td> <p> <strong>								productDescription							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								productSpotsAvailableOnline							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								productSpotsTotal							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								productType							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								productsId							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |

### check\_details

The `check_details` table contains info about line items and quantity info attached to [`checks`](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#checks).

Information note **Note**: This table uses `as the [Replication Key](/en-US/stitch/replication/replication-keys). This means that check details will be selected for replication only when they are initially created. Any subsequent updates made to the check detail will not be detected, as the` value will not be updated. Refer to the [Key-based Incremental Replication documentation](https://help.qlik.com/en-US/stitch/replication/replication-methods/key-based-incremental) for more info and examples.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | checkDetailId |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | createdDate |
| **Useful links** | [check_details schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/check_details.json "Opens in new tab: check_details schema on GitHub") |

check\_details table foreign keys

| Join check\_details with | on |
| --- | --- |
| [gift_card_history](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#gift-card-history) | ```<br>check_details.checkDetailId = gift_card_history.checkDetailId<br>```<br><br>```<br>check_details.checkId = gift_card_history.checkId<br>```<br><br>```<br>check_details.g_CustId = gift_card_history.customerId<br>```<br><br>```<br>check_details.p_CustId = gift_card_history.customerId<br>```<br><br>```<br>check_details.s_CustId = gift_card_history.customerId<br>```<br><br>```<br>check_details.discountUserId = gift_card_history.userId<br>``` |
| [checks](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#checks) | ```<br>check_details.checkId = checks.checkId<br>```<br><br>```<br>check_details.g_CustId = checks.customerId<br>```<br><br>```<br>check_details.p_CustId = checks.customerId<br>```<br><br>```<br>check_details.s_CustId = checks.customerId<br>```<br><br>```<br>check_details.discountId = checks.discountId<br>```<br><br>```<br>check_details.discountUserId = checks.discountUserId<br>```<br><br>```<br>check_details.discountUserId = checks.userId<br>``` |
| [event_reservation_links](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-reservation-links) | ```<br>check_details.checkId = event_reservation_links.checkId<br>``` |
| [payments](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#payments) | ```<br>check_details.checkId = payments.checkId<br>```<br><br>```<br>check_details.g_CustId = payments.customerId<br>```<br><br>```<br>check_details.p_CustId = payments.customerId<br>```<br><br>```<br>check_details.s_CustId = payments.customerId<br>```<br><br>```<br>check_details.discountUserId = payments.userId<br>```<br><br>```<br>check_details.discountUserId = payments.voidUser<br>``` |
| [payments_voided](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#payments-voided) | ```<br>check_details.checkId = payments_voided.checkId<br>```<br><br>```<br>check_details.g_CustId = payments_voided.customerId<br>```<br><br>```<br>check_details.p_CustId = payments_voided.customerId<br>```<br><br>```<br>check_details.s_CustId = payments_voided.customerId<br>```<br><br>```<br>check_details.discountUserId = payments_voided.userId<br>```<br><br>```<br>check_details.discountUserId = payments_voided.voidUser<br>``` |
| [reservations](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#reservations) | ```<br>check_details.checkId = reservations.checkId<br>```<br><br>```<br>check_details.g_CustId = reservations.customersId<br>```<br><br>```<br>check_details.p_CustId = reservations.customersId<br>```<br><br>```<br>check_details.s_CustId = reservations.customersId<br>``` |
| [event_heat_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-heat-details) | ```<br>check_details.g_CustId = event_heat_details.customerId<br>```<br><br>```<br>check_details.p_CustId = event_heat_details.customerId<br>```<br><br>```<br>check_details.s_CustId = event_heat_details.customerId<br>``` |
| [heat_main_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#heat-main-details) | ```<br>check_details.g_CustId = heat_main_details.customerId<br>```<br><br>```<br>check_details.p_CustId = heat_main_details.customerId<br>```<br><br>```<br>check_details.s_CustId = heat_main_details.customerId<br>```<br><br>```<br>check_details.discountUserId = heat_main_details.userId<br>``` |
| [memberships](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#memberships) | ```<br>check_details.g_CustId = memberships.customerId<br>```<br><br>```<br>check_details.p_CustId = memberships.customerId<br>```<br><br>```<br>check_details.s_CustId = memberships.customerId<br>```<br><br>```<br>check_details.discountUserId = memberships.byUserId<br>``` |
| [discount_types](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#discount-types) | ```<br>check_details.discountId = discount_types.discountId<br>``` |
| [booking](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#booking) | ```<br>check_details.productId = booking.productsId<br>``` |
| [booking_availability](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#booking-availability) | ```<br>check_details.productId = booking_availability.products.productsId<br>``` |
| [event_types](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-types) | ```<br>check_details.productId = event_types.onlineProductId<br>``` |
| [products](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#products) | ```<br>check_details.productId = products.productId<br>```<br><br>```<br>check_details.taxId = products.taxId<br>``` |
| [taxes](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#taxes) | ```<br>check_details.taxId = taxes.taxId<br>``` |
| [event_tasks](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-tasks) | ```<br>check_details.discountUserId = event_tasks.completedBy<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#users) | ```<br>check_details.discountUserId = users.userId<br>``` |
| [event_reservations](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-reservations) | ```<br>check_details.discountUserId = event_reservations.userId<br>``` |

check\_details table schema

| **calculateType**<br><br><br>INTEGER |
| --- |
| **checkDetailId**<br><br><br>INTEGER |
| **checkId**<br><br><br>INTEGER |
| **createdDate**<br><br><br>DATE-TIME |
| **discountApplied**<br><br><br>NUMBER |
| **discountDesc**<br><br><br>STRING |
| **discountId**<br><br><br>INTEGER |
| **discountNotes**<br><br><br>STRING |
| **discountUserId**<br><br><br>INTEGER |
| **g\_CustId**<br><br><br>INTEGER |
| **g\_Points**<br><br><br>NUMBER |
| **gst**<br><br><br>NUMBER |
| **m\_DaysAdded**<br><br><br>INTEGER |
| **p\_CustId**<br><br><br>INTEGER |
| **p\_Points**<br><br><br>INTEGER |
| **productId**<br><br><br>INTEGER |
| **productName**<br><br><br>STRING |
| **qty**<br><br><br>INTEGER |
| **r\_Points**<br><br><br>INTEGER |
| **s\_CustId**<br><br><br>INTEGER |
| **s\_NoOfLapsOrSeconds**<br><br><br>INTEGER |
| **s\_SaleBy**<br><br><br>INTEGER |
| **s\_Vol**<br><br><br>INTEGER |
| **status**<br><br><br>INTEGER |
| **taxId**<br><br><br>INTEGER |
| **taxPercent**<br><br><br>NUMBER |
| **type**<br><br><br>INTEGER |
| **unitPrice**<br><br><br>NUMBER |
| **unitPrice2**<br><br><br>NUMBER |
| **voidNotes**<br><br><br>STRING |

### checks

The `checks` table contains info about checks, or financial invoices, that have been closed.

Information note **Note**: This table uses `as the [Replication Key](/en-US/stitch/replication/replication-keys). This means that checks will not be selected for replication until the record has a` value, which should occur when the check has a `status` of `closed`.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | checkId |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | closedDate |
| **Useful links** | [checks schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/checks.json "Opens in new tab: checks schema on GitHub") |

checks table foreign keys

| Join checks with | on |
| --- | --- |
| [check_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#check-details) | ```<br>checks.checkId = check_details.checkId<br>```<br><br>```<br>checks.customerId = check_details.g_CustId<br>```<br><br>```<br>checks.customerId = check_details.p_CustId<br>```<br><br>```<br>checks.customerId = check_details.s_CustId<br>```<br><br>```<br>checks.discountId = check_details.discountId<br>```<br><br>```<br>checks.discountUserId = check_details.discountUserId<br>```<br><br>```<br>checks.userId = check_details.discountUserId<br>``` |
| [event_reservation_links](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-reservation-links) | ```<br>checks.checkId = event_reservation_links.checkId<br>``` |
| [gift_card_history](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#gift-card-history) | ```<br>checks.checkId = gift_card_history.checkId<br>```<br><br>```<br>checks.customerId = gift_card_history.customerId<br>```<br><br>```<br>checks.discountUserId = gift_card_history.userId<br>```<br><br>```<br>checks.userId = gift_card_history.userId<br>``` |
| [payments](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#payments) | ```<br>checks.checkId = payments.checkId<br>```<br><br>```<br>checks.customerId = payments.customerId<br>```<br><br>```<br>checks.discountUserId = payments.userId<br>```<br><br>```<br>checks.userId = payments.userId<br>```<br><br>```<br>checks.discountUserId = payments.voidUser<br>```<br><br>```<br>checks.userId = payments.voidUser<br>``` |
| [payments_voided](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#payments-voided) | ```<br>checks.checkId = payments_voided.checkId<br>```<br><br>```<br>checks.customerId = payments_voided.customerId<br>```<br><br>```<br>checks.discountUserId = payments_voided.userId<br>```<br><br>```<br>checks.userId = payments_voided.userId<br>```<br><br>```<br>checks.discountUserId = payments_voided.voidUser<br>```<br><br>```<br>checks.userId = payments_voided.voidUser<br>``` |
| [reservations](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#reservations) | ```<br>checks.checkId = reservations.checkId<br>```<br><br>```<br>checks.customerId = reservations.customersId<br>``` |
| [event_heat_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-heat-details) | ```<br>checks.customerId = event_heat_details.customerId<br>``` |
| [heat_main_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#heat-main-details) | ```<br>checks.customerId = heat_main_details.customerId<br>```<br><br>```<br>checks.discountUserId = heat_main_details.userId<br>```<br><br>```<br>checks.userId = heat_main_details.userId<br>``` |
| [memberships](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#memberships) | ```<br>checks.customerId = memberships.customerId<br>```<br><br>```<br>checks.discountUserId = memberships.byUserId<br>```<br><br>```<br>checks.userId = memberships.byUserId<br>``` |
| [discount_types](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#discount-types) | ```<br>checks.discountId = discount_types.discountId<br>``` |
| [event_tasks](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-tasks) | ```<br>checks.discountUserId = event_tasks.completedBy<br>```<br><br>```<br>checks.userId = event_tasks.completedBy<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#users) | ```<br>checks.discountUserId = users.userId<br>```<br><br>```<br>checks.userId = users.userId<br>``` |
| [event_reservations](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-reservations) | ```<br>checks.discountUserId = event_reservations.userId<br>```<br><br>```<br>checks.userId = event_reservations.userId<br>``` |

checks table schema

| **broker**<br><br><br>STRING |
| --- |
| **checkId**<br><br><br>INTEGER |
| **closedDate**<br><br><br>DATE-TIME |
| **customerId**<br><br><br>INTEGER |
| **discount**<br><br><br>NUMBER |
| **discountId**<br><br><br>INTEGER |
| **discountNotes**<br><br><br>STRING |
| **discountUserId**<br><br><br>INTEGER |
| **fee**<br><br><br>NUMBER |
| **gratuity**<br><br><br>NUMBER |
| **invoiceDate**<br><br><br>DATE-TIME |
| **isTaxExempt**<br><br><br>BOOLEAN |
| **name**<br><br><br>STRING |
| **notes**<br><br><br>STRING |
| **openedDate**<br><br><br>DATE-TIME |
| **status**<br><br><br>INTEGER |
| **total**<br><br><br>NUMBER |
| **type**<br><br><br>INTEGER |
| **userId**<br><br><br>INTEGER |

### customers

The `customers` table contains info about the customers for a location.

Information note **Note**: This table uses `as the [Replication Key](/en-US/stitch/replication/replication-keys). This means updated customer data will only be selected for replication when the` value for the customer’s record is updated.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | customerId |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | lastVisited |
| **Useful links** | [customers schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/customers.json "Opens in new tab: customers schema on GitHub") |

customers table schema

| **Address**<br><br><br>STRING |
| --- |
| **Address2**<br><br><br>STRING |
| **City**<br><br><br>STRING |
| **Country**<br><br><br>STRING |
| **Custom1**<br><br><br>STRING |
| **Custom2**<br><br><br>STRING |
| **Custom3**<br><br><br>STRING |
| **Custom4**<br><br><br>STRING |
| **LicenseNumber**<br><br><br>STRING |
| **State**<br><br><br>STRING |
| **Zip**<br><br><br>STRING |
| **accountCreated**<br><br><br>DATE-TIME |
| **birthdate**<br><br><br>DATE-TIME |
| **cardId**<br><br><br>INTEGER |
| **company**<br><br><br>STRING |
| **creditLimit**<br><br><br>NUMBER |
| **creditOnHold**<br><br><br>BOOLEAN |
| **customerId**<br><br><br>INTEGER |
| **deleted**<br><br><br>BOOLEAN |
| **donotemail**<br><br><br>BOOLEAN |
| **email**<br><br><br>STRING |
| **fax**<br><br><br>STRING |
| **firstname**<br><br><br>STRING |
| **gender**<br><br><br>INTEGER |
| **generalNotes**<br><br><br>STRING |
| **howdidyouhearaboutus**<br><br><br>INTEGER |
| **ignoreDOB**<br><br><br>BOOLEAN |
| **isEmployee**<br><br><br>BOOLEAN |
| **isGiftCard**<br><br><br>BOOLEAN |
| **lastVisited**<br><br><br>DATE-TIME |
| **lastname**<br><br><br>STRING |
| **memberShipTextLong**<br><br><br>STRING |
| **membershipStatus**<br><br><br>INTEGER |
| **membershipText**<br><br><br>STRING |
| **mobilephone**<br><br><br>STRING |
| **originalId**<br><br><br>INTEGER |
| **phoneNumber**<br><br><br>STRING |
| **phoneNumber2**<br><br><br>STRING |
| **priceLevel**<br><br><br>INTEGER |
| **privacy1**<br><br><br>BOOLEAN |
| **proskill**<br><br><br>INTEGER |
| **racername**<br><br><br>STRING |
| **status1**<br><br><br>INTEGER |
| **status2**<br><br><br>INTEGER |
| **status3**<br><br><br>INTEGER |
| **status4**<br><br><br>INTEGER |
| **totalRaces**<br><br><br>INTEGER |
| **totalVisits**<br><br><br>INTEGER |
| **waiver**<br><br><br>INTEGER |
| **waiver2**<br><br><br>INTEGER |
| **webUserName**<br><br><br>STRING |

### discount\_types

The `discount_types` table contains info about discount types.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | discountId |
| **Useful links** | [discount_types schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/discount_types.json "Opens in new tab: discount_types schema on GitHub") |

discount\_types table foreign keys

| Join discount\_types with | on |
| --- | --- |
| [check_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#check-details) | ```<br>discount_types.discountId = check_details.discountId<br>``` |
| [checks](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#checks) | ```<br>discount_types.discountId = checks.discountId<br>``` |
| [product_classes](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#product-classes) | ```<br>discount_types.productClassId = product_classes.productClassId<br>``` |
| [products](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#products) | ```<br>discount_types.productClassId = products.productClassId<br>``` |

discount\_types table schema

| **amount**<br><br><br>NUMBER |
| --- |
| **calculateType**<br><br><br>INTEGER |
| **deleted**<br><br><br>BOOLEAN |
| **description**<br><br><br>STRING |
| **discountId**<br><br><br>INTEGER |
| **enabled**<br><br><br>BOOLEAN |
| **needApproved**<br><br><br>BOOLEAN |
| **productClassId**<br><br><br>INTEGER |

### event\_heat\_details

The `event_heat_details` table contains info about [`customers`](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#customers) who have been placed in a queue for a specific [`event`](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#events).

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Keys ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | customerId<br><br>eventId |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | added |
| **Useful links** | [event_heat_details schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/event_heat_details.json "Opens in new tab: event_heat_details schema on GitHub") |

event\_heat\_details table foreign keys

| Join event\_heat\_details with | on |
| --- | --- |
| [check_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#check-details) | ```<br>event_heat_details.customerId = check_details.g_CustId<br>```<br><br>```<br>event_heat_details.customerId = check_details.p_CustId<br>```<br><br>```<br>event_heat_details.customerId = check_details.s_CustId<br>``` |
| [checks](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#checks) | ```<br>event_heat_details.customerId = checks.customerId<br>``` |
| [gift_card_history](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#gift-card-history) | ```<br>event_heat_details.customerId = gift_card_history.customerId<br>``` |
| [heat_main_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#heat-main-details) | ```<br>event_heat_details.customerId = heat_main_details.customerId<br>``` |
| [memberships](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#memberships) | ```<br>event_heat_details.customerId = memberships.customerId<br>``` |
| [payments](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#payments) | ```<br>event_heat_details.customerId = payments.customerId<br>``` |
| [payments_voided](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#payments-voided) | ```<br>event_heat_details.customerId = payments_voided.customerId<br>``` |
| [reservations](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#reservations) | ```<br>event_heat_details.customerId = reservations.customersId<br>``` |
| [event_rounds](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-rounds) | ```<br>event_heat_details.eventId = event_rounds.eventId<br>``` |
| [events](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#events) | ```<br>event_heat_details.eventId = events.eventId<br>``` |

event\_heat\_details table schema

| **added**<br><br><br>DATE-TIME |
| --- |
| **customerId**<br><br><br>INTEGER |
| **eventId**<br><br><br>INTEGER |
| **proskill**<br><br><br>INTEGER |
| **roundLoseNum**<br><br><br>INTEGER |
| **totalRaces**<br><br><br>INTEGER |

### event\_heat\_types

The `event_heat_types` table contains info about event type classifications, which are used to look up [`event_rounds`](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event_rounds) when creating [`events`](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#events).

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | eventHeatTypeId |
| **Useful links** | [event_heat_types schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/event_heat_types.json "Opens in new tab: event_heat_types schema on GitHub") |

event\_heat\_types table foreign keys

| Join event\_heat\_types with | on |
| --- | --- |
| [booking_availability](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#booking-availability) | ```<br>event_heat_types.heatTypeId = booking_availability.heatTypeId<br>``` |
| [event_rounds](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-rounds) | ```<br>event_heat_types.heatTypeId = event_rounds.heatTypeId<br>``` |
| [heat_main](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#heat-main) | ```<br>event_heat_types.heatTypeId = heat_main.type<br>``` |
| [heat_types](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#heat-types) | ```<br>event_heat_types.heatTypeId = heat_types.heatTypesId<br>``` |

event\_heat\_types table schema

| **cadetsPerHeat**<br><br><br>INTEGER |
| --- |
| **description**<br><br><br>STRING |
| **eventHeatTypeId**<br><br><br>INTEGER |
| **eventTypeId**<br><br><br>INTEGER |
| **heatTypeId**<br><br><br>INTEGER |
| **heatsPerRacer**<br><br><br>INTEGER |
| **racersPerHeat**<br><br><br>INTEGER |
| **roundNumber**<br><br><br>INTEGER |

### event\_reservation\_links

The `event_reservation_links` table contains lists of [`check`](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#checks) and [`reservation`](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#reservations) IDs, or checks that are linked to event reservations.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | eventReservationLinkId |
| **Useful links** | [event_reservation_links schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/event_reservation_links.json "Opens in new tab: event_reservation_links schema on GitHub") |

event\_reservation\_links table foreign keys

| Join event\_reservation\_links with | on |
| --- | --- |
| [check_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#check-details) | ```<br>event_reservation_links.checkId = check_details.checkId<br>``` |
| [checks](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#checks) | ```<br>event_reservation_links.checkId = checks.checkId<br>``` |
| [gift_card_history](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#gift-card-history) | ```<br>event_reservation_links.checkId = gift_card_history.checkId<br>``` |
| [payments](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#payments) | ```<br>event_reservation_links.checkId = payments.checkId<br>``` |
| [payments_voided](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#payments-voided) | ```<br>event_reservation_links.checkId = payments_voided.checkId<br>``` |
| [reservations](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#reservations) | ```<br>event_reservation_links.checkId = reservations.checkId<br>```<br><br>```<br>event_reservation_links.reservationId = reservations.onlineBookingReservationsId<br>``` |
| [events](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#events) | ```<br>event_reservation_links.reservationId = events.reservationId<br>``` |

event\_reservation\_links table schema

| **checkId**<br><br><br>INTEGER |
| --- |
| **eventReservationLinkId**<br><br><br>INTEGER |
| **reservationId**<br><br><br>INTEGER |

### event\_reservation\_types

The `event_reservation_types` table contains info about the descriptions for event reservation types.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | eventReservationTypeId |
| **Useful links** | [event_reservation_types schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/event_reservation_types.json "Opens in new tab: event_reservation_types schema on GitHub") |

event\_reservation\_types table foreign keys

| Join event\_reservation\_types with | on |
| --- | --- |
| [event_reservations](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-reservations) | ```<br>event_reservation_types.eventReservationTypeId = event_reservations.typeId<br>``` |

event\_reservation\_types table schema

| **description**<br><br><br>STRING |
| --- |
| **eventReservationTypeId**<br><br><br>INTEGER |

### event\_reservations

The `event_reservations` table contains info about event reservations, which are linked to [`events`](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#events).

Information note **Note**: This table uses `` as the [Replication Key](https://help.qlik.com/en-US/stitch/replication/replication-keys). This means that unless an event reservation’s `startTime` is updated, changes to event reservation records will not be selected for replication.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | eventReservationId |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | startTime |
| **Useful links** | [event_reservations schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/event_reservations.json "Opens in new tab: event_reservations schema on GitHub") |

event\_reservations table foreign keys

| Join event\_reservations with | on |
| --- | --- |
| [event_reservation_types](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-reservation-types) | ```<br>event_reservations.typeId = event_reservation_types.eventReservationTypeId<br>``` |
| [event_tasks](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-tasks) | ```<br>event_reservations.eventReservationId = event_tasks.eventReservationId<br>```<br><br>```<br>event_reservations.mainId = event_tasks.eventReservationId<br>```<br><br>```<br>event_reservations.userId = event_tasks.completedBy<br>``` |
| [event_types](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-types) | ```<br>event_reservations.eventTypeId = event_types.eventTypeId<br>``` |
| [events](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#events) | ```<br>event_reservations.eventTypeId = events.eventTypeId<br>``` |
| [check_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#check-details) | ```<br>event_reservations.userId = check_details.discountUserId<br>``` |
| [checks](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#checks) | ```<br>event_reservations.userId = checks.discountUserId<br>```<br><br>```<br>event_reservations.userId = checks.userId<br>``` |
| [gift_card_history](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#gift-card-history) | ```<br>event_reservations.userId = gift_card_history.userId<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#users) | ```<br>event_reservations.userId = users.userId<br>``` |
| [heat_main_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#heat-main-details) | ```<br>event_reservations.userId = heat_main_details.userId<br>``` |
| [memberships](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#memberships) | ```<br>event_reservations.userId = memberships.byUserId<br>``` |
| [payments](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#payments) | ```<br>event_reservations.userId = payments.userId<br>```<br><br>```<br>event_reservations.userId = payments.voidUser<br>``` |
| [payments_voided](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#payments-voided) | ```<br>event_reservations.userId = payments_voided.userId<br>```<br><br>```<br>event_reservations.userId = payments_voided.voidUser<br>``` |

event\_reservations table schema

| **allowOnlineReservation**<br><br><br>BOOLEAN |
| --- |
| **deleted**<br><br><br>BOOLEAN |
| **description**<br><br><br>STRING |
| **endTime**<br><br><br>DATE-TIME |
| **eventReservationId**<br><br><br>INTEGER |
| **eventTypeId**<br><br><br>INTEGER |
| **externalSystemId**<br><br><br>INTEGER |
| **isEventClosure**<br><br><br>BOOLEAN |
| **mainId**<br><br><br>INTEGER |
| **minNoOfAdultsPerBooking**<br><br><br>INTEGER |
| **noOfRacers**<br><br><br>INTEGER |
| **notes**<br><br><br>STRING |
| **ptsPerReservation**<br><br><br>INTEGER |
| **repId**<br><br><br>INTEGER |
| **startTime**<br><br><br>DATE-TIME |
| **status**<br><br><br>INTEGER |
| **subject**<br><br><br>STRING |
| **typeId**<br><br><br>INTEGER |
| **userId**<br><br><br>INTEGER |

### event\_rounds

The `event_rounds` table contains info about event rounds. This table acts as a link between [`events`](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#events) and their corresponding rounds in the [`heat_main`](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#heat_main).

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | eventRoundId |
| **Useful links** | [event_rounds schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/event_rounds.json "Opens in new tab: event_rounds schema on GitHub") |

event\_rounds table foreign keys

| Join event\_rounds with | on |
| --- | --- |
| [heat_main](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#heat-main) | ```<br>event_rounds.eventRoundId = heat_main.eventRound<br>```<br><br>```<br>event_rounds.heatTypeId = heat_main.type<br>``` |
| [event_heat_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-heat-details) | ```<br>event_rounds.eventId = event_heat_details.eventId<br>``` |
| [events](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#events) | ```<br>event_rounds.eventId = events.eventId<br>``` |
| [booking_availability](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#booking-availability) | ```<br>event_rounds.heatTypeId = booking_availability.heatTypeId<br>``` |
| [event_heat_types](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-heat-types) | ```<br>event_rounds.heatTypeId = event_heat_types.heatTypeId<br>``` |
| [heat_types](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#heat-types) | ```<br>event_rounds.heatTypeId = heat_types.heatTypesId<br>``` |

event\_rounds table schema

| **cadetsPerHeat**<br><br><br>INTEGER |
| --- |
| **eventId**<br><br><br>INTEGER |
| **eventRoundId**<br><br><br>INTEGER |
| **heatDescription**<br><br><br>STRING |
| **heatTypeId**<br><br><br>INTEGER |
| **heatsPerRacer**<br><br><br>INTEGER |
| **racersPerHeat**<br><br><br>INTEGER |
| **roundNumber**<br><br><br>INTEGER |

### event\_statuses

The `event_statuses` table contains info about event statuses, which are statuses assigned to [`event_reservations`](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event_reservations).

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | eventStatusId |
| **Useful links** | [event_statuses schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/event_statuses.json "Opens in new tab: event_statuses schema on GitHub") |

event\_statuses table schema

| **colorId**<br><br><br>INTEGER |
| --- |
| **eventStatusId**<br><br><br>INTEGER |
| **seq**<br><br><br>INTEGER |
| **status**<br><br><br>STRING |

### event\_task\_types

The `event_task_types` table contains info about event task types, which are [`event_tasks`](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event_tasks) to be tracked for completion.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | eventTaskId |
| **Useful links** | [event_task_types schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/event_task_types.json "Opens in new tab: event_task_types schema on GitHub") |

event\_task\_types table schema

| **deleted**<br><br><br>BOOLEAN |
| --- |
| **description**<br><br><br>STRING |
| **eventTaskId**<br><br><br>INTEGER |
| **name**<br><br><br>STRING |
| **seq**<br><br><br>INTEGER |

### event\_tasks

The `event_tasks` table contains info about the tasks to be completed for a given [`event_reservation`](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event_reservations).

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | eventTaskId |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | completedAt |
| **Useful links** | [event_tasks schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/event_tasks.json "Opens in new tab: event_tasks schema on GitHub") |

event\_tasks table foreign keys

| Join event\_tasks with | on |
| --- | --- |
| [event_reservations](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-reservations) | ```<br>event_tasks.eventReservationId = event_reservations.eventReservationId<br>```<br><br>```<br>event_tasks.eventReservationId = event_reservations.mainId<br>```<br><br>```<br>event_tasks.completedBy = event_reservations.userId<br>``` |
| [check_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#check-details) | ```<br>event_tasks.completedBy = check_details.discountUserId<br>``` |
| [checks](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#checks) | ```<br>event_tasks.completedBy = checks.discountUserId<br>```<br><br>```<br>event_tasks.completedBy = checks.userId<br>``` |
| [gift_card_history](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#gift-card-history) | ```<br>event_tasks.completedBy = gift_card_history.userId<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#users) | ```<br>event_tasks.completedBy = users.userId<br>``` |
| [heat_main_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#heat-main-details) | ```<br>event_tasks.completedBy = heat_main_details.userId<br>``` |
| [memberships](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#memberships) | ```<br>event_tasks.completedBy = memberships.byUserId<br>``` |
| [payments](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#payments) | ```<br>event_tasks.completedBy = payments.userId<br>```<br><br>```<br>event_tasks.completedBy = payments.voidUser<br>``` |
| [payments_voided](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#payments-voided) | ```<br>event_tasks.completedBy = payments_voided.userId<br>```<br><br>```<br>event_tasks.completedBy = payments_voided.voidUser<br>``` |

event\_tasks table schema

| **completedAt**<br><br><br>DATE-TIME |
| --- |
| **completedBy**<br><br><br>INTEGER |
| **eventReservationId**<br><br><br>INTEGER |
| **eventTaskId**<br><br><br>INTEGER |
| **eventTaskTypeId**<br><br><br>INTEGER |

### event\_types

The `event_types` table contains info about event types.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | eventTypeId |
| **Useful links** | [event_types schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/event_types.json "Opens in new tab: event_types schema on GitHub") |

event\_types table foreign keys

| Join event\_types with | on |
| --- | --- |
| [event_reservations](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-reservations) | ```<br>event_types.eventTypeId = event_reservations.eventTypeId<br>``` |
| [events](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#events) | ```<br>event_types.eventTypeId = events.eventTypeId<br>``` |
| [booking](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#booking) | ```<br>event_types.onlineProductId = booking.productsId<br>``` |
| [booking_availability](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#booking-availability) | ```<br>event_types.onlineProductId = booking_availability.products.productsId<br>``` |
| [check_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#check-details) | ```<br>event_types.onlineProductId = check_details.productId<br>``` |
| [products](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#products) | ```<br>event_types.onlineProductId = products.productId<br>``` |
| [heat_types](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#heat-types) | ```<br>event_types.trackId = heat_types.trackId<br>``` |

event\_types table schema

| **deleted**<br><br><br>BOOLEAN |
| --- |
| **description**<br><br><br>STRING |
| **displayAtRegistration**<br><br><br>BOOLEAN |
| **enabled**<br><br><br>BOOLEAN |
| **eventTypeId**<br><br><br>INTEGER |
| **eventTypeName**<br><br><br>STRING |
| **eventTypeTheme**<br><br><br>INTEGER |
| **memberOnly**<br><br><br>BOOLEAN |
| **onlineProductId**<br><br><br>INTEGER |
| **ptsPerReservation**<br><br><br>INTEGER |
| **trackId**<br><br><br>INTEGER |

### events

The `events` table contains info about events.

Information note **Note**: This table uses `as the [Replication Key](/en-US/stitch/replication/replication-keys). This means that unless an event's` value is updated, changes to event records will not be selected for replication.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | eventId |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | eventScheduledTime |
| **Useful links** | [events schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/events.json "Opens in new tab: events schema on GitHub") |

events table foreign keys

| Join events with | on |
| --- | --- |
| [event_reservations](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-reservations) | ```<br>events.eventTypeId = event_reservations.eventTypeId<br>``` |
| [event_types](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-types) | ```<br>events.eventTypeId = event_types.eventTypeId<br>``` |
| [event_heat_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-heat-details) | ```<br>events.eventId = event_heat_details.eventId<br>``` |
| [event_rounds](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-rounds) | ```<br>events.eventId = event_rounds.eventId<br>``` |
| [event_reservation_links](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-reservation-links) | ```<br>events.reservationId = event_reservation_links.reservationId<br>``` |
| [reservations](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#reservations) | ```<br>events.reservationId = reservations.onlineBookingReservationsId<br>``` |

events table schema

| **createdHeatSpots**<br><br><br>INTEGER |
| --- |
| **createdHeatTime**<br><br><br>DATE-TIME |
| **eventDesc**<br><br><br>STRING |
| **eventDuration**<br><br><br>INTEGER |
| **eventId**<br><br><br>INTEGER |
| **eventNotes**<br><br><br>STRING |
| **eventScheduledTime**<br><br><br>DATE-TIME |
| **eventTheme**<br><br><br>INTEGER |
| **eventTypeId**<br><br><br>INTEGER |
| **eventTypeName**<br><br><br>STRING |
| **memberOnly**<br><br><br>BOOLEAN |
| **reservationId**<br><br><br>INTEGER |
| **totalRacers**<br><br><br>INTEGER |
| **trackNo**<br><br><br>INTEGER |

### gift\_card\_history

The `gift_card_history` table acts as a transactional log for keeping track of each change that occurs with gift cards.

Information note **Note**: In Club Speed, each gift card is registered as a [`customer`](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#customers). This means that each gift card identifier should be considered a `customerId` in this table.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | giftCardHistoryId |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | transactionDate |
| **Useful links** | [gift_card_history schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/gift_card_history.json "Opens in new tab: gift_card_history schema on GitHub") |

gift\_card\_history table foreign keys

| Join gift\_card\_history with | on |
| --- | --- |
| [check_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#check-details) | ```<br>gift_card_history.checkDetailId = check_details.checkDetailId<br>```<br><br>```<br>gift_card_history.checkId = check_details.checkId<br>```<br><br>```<br>gift_card_history.customerId = check_details.g_CustId<br>```<br><br>```<br>gift_card_history.customerId = check_details.p_CustId<br>```<br><br>```<br>gift_card_history.customerId = check_details.s_CustId<br>```<br><br>```<br>gift_card_history.userId = check_details.discountUserId<br>``` |
| [checks](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#checks) | ```<br>gift_card_history.checkId = checks.checkId<br>```<br><br>```<br>gift_card_history.customerId = checks.customerId<br>```<br><br>```<br>gift_card_history.userId = checks.discountUserId<br>```<br><br>```<br>gift_card_history.userId = checks.userId<br>``` |
| [event_reservation_links](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-reservation-links) | ```<br>gift_card_history.checkId = event_reservation_links.checkId<br>``` |
| [payments](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#payments) | ```<br>gift_card_history.checkId = payments.checkId<br>```<br><br>```<br>gift_card_history.customerId = payments.customerId<br>```<br><br>```<br>gift_card_history.userId = payments.userId<br>```<br><br>```<br>gift_card_history.userId = payments.voidUser<br>``` |
| [payments_voided](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#payments-voided) | ```<br>gift_card_history.checkId = payments_voided.checkId<br>```<br><br>```<br>gift_card_history.customerId = payments_voided.customerId<br>```<br><br>```<br>gift_card_history.userId = payments_voided.userId<br>```<br><br>```<br>gift_card_history.userId = payments_voided.voidUser<br>``` |
| [reservations](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#reservations) | ```<br>gift_card_history.checkId = reservations.checkId<br>```<br><br>```<br>gift_card_history.customerId = reservations.customersId<br>``` |
| [event_heat_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-heat-details) | ```<br>gift_card_history.customerId = event_heat_details.customerId<br>``` |
| [heat_main_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#heat-main-details) | ```<br>gift_card_history.customerId = heat_main_details.customerId<br>```<br><br>```<br>gift_card_history.userId = heat_main_details.userId<br>``` |
| [memberships](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#memberships) | ```<br>gift_card_history.customerId = memberships.customerId<br>```<br><br>```<br>gift_card_history.userId = memberships.byUserId<br>``` |
| [event_tasks](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-tasks) | ```<br>gift_card_history.userId = event_tasks.completedBy<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#users) | ```<br>gift_card_history.userId = users.userId<br>``` |
| [event_reservations](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-reservations) | ```<br>gift_card_history.userId = event_reservations.userId<br>``` |

gift\_card\_history table schema

| **checkDetailId**<br><br><br>INTEGER |
| --- |
| **checkId**<br><br><br>INTEGER |
| **customerId**<br><br><br>INTEGER |
| **giftCardHistoryId**<br><br><br>INTEGER |
| **ipAddress**<br><br><br>STRING |
| **notes**<br><br><br>STRING |
| **points**<br><br><br>NUMBER |
| **transactionDate**<br><br><br>DATE-TIME |
| **type**<br><br><br>INTEGER |
| **userId**<br><br><br>INTEGER |

### heat\_main

The `heat_main` table contains info about finished heat mains, which are instances of races on the standard venue calendar.

Information note **Note**: This table uses `` as the [Replication Key](https://help.qlik.com/en-US/stitch/replication/replication-keys). This means that only finished heat mains will be selected for replication.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | heatId |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | finish |
| **Useful links** | [heat_main schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/heat_main.json "Opens in new tab: heat_main schema on GitHub") |

heat\_main table foreign keys

| Join heat\_main with | on |
| --- | --- |
| [event_rounds](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-rounds) | ```<br>heat_main.eventRound = event_rounds.eventRoundId<br>```<br><br>```<br>heat_main.type = event_rounds.heatTypeId<br>``` |
| [booking](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#booking) | ```<br>heat_main.heatId = booking.heatId<br>``` |
| [booking_availability](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#booking-availability) | ```<br>heat_main.heatId = booking_availability.heatId<br>```<br><br>```<br>heat_main.heatId = booking_availability.heatSpotsAvailableCombined<br>```<br><br>```<br>heat_main.type = booking_availability.heatTypeId<br>``` |
| [heat_main_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#heat-main-details) | ```<br>heat_main.heatId = heat_main_details.heatId<br>``` |
| [event_heat_types](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-heat-types) | ```<br>heat_main.type = event_heat_types.heatTypeId<br>``` |
| [heat_types](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#heat-types) | ```<br>heat_main.type = heat_types.heatTypesId<br>``` |

heat\_main table schema

| **beginning**<br><br><br>DATE-TIME |
| --- |
| **eventRound**<br><br><br>INTEGER |
| **finish**<br><br><br>DATE-TIME |
| **heatColor**<br><br><br>INTEGER |
| **heatId**<br><br><br>INTEGER |
| **lapsOrMinutes**<br><br><br>INTEGER |
| **memberOnly**<br><br><br>BOOLEAN |
| **notes**<br><br><br>STRING |
| **numberOfReservation**<br><br><br>INTEGER |
| **pointsNeeded**<br><br><br>INTEGER |
| **raceBy**<br><br><br>INTEGER |
| **racersPerHeat**<br><br><br>INTEGER |
| **scheduleDuration**<br><br><br>INTEGER |
| **scheduledTime**<br><br><br>DATE-TIME |
| **speedLevel**<br><br><br>INTEGER |
| **status**<br><br><br>INTEGER |
| **track**<br><br><br>INTEGER |
| **type**<br><br><br>INTEGER |
| **winBy**<br><br><br>INTEGER |

### heat\_main\_details

The `heat_main_details` table contains info about customers that were entered into finished heats.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Keys ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | customerId<br><br>heatId |
| **Useful links** | [heat_main_details schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/heat_main_details.json "Opens in new tab: heat_main_details schema on GitHub") |

heat\_main\_details table foreign keys

| Join heat\_main\_details with | on |
| --- | --- |
| [check_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#check-details) | ```<br>heat_main_details.customerId = check_details.g_CustId<br>```<br><br>```<br>heat_main_details.customerId = check_details.p_CustId<br>```<br><br>```<br>heat_main_details.customerId = check_details.s_CustId<br>```<br><br>```<br>heat_main_details.userId = check_details.discountUserId<br>``` |
| [checks](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#checks) | ```<br>heat_main_details.customerId = checks.customerId<br>```<br><br>```<br>heat_main_details.userId = checks.discountUserId<br>```<br><br>```<br>heat_main_details.userId = checks.userId<br>``` |
| [event_heat_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-heat-details) | ```<br>heat_main_details.customerId = event_heat_details.customerId<br>``` |
| [gift_card_history](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#gift-card-history) | ```<br>heat_main_details.customerId = gift_card_history.customerId<br>```<br><br>```<br>heat_main_details.userId = gift_card_history.userId<br>``` |
| [memberships](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#memberships) | ```<br>heat_main_details.customerId = memberships.customerId<br>```<br><br>```<br>heat_main_details.userId = memberships.byUserId<br>``` |
| [payments](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#payments) | ```<br>heat_main_details.customerId = payments.customerId<br>```<br><br>```<br>heat_main_details.userId = payments.userId<br>```<br><br>```<br>heat_main_details.userId = payments.voidUser<br>``` |
| [payments_voided](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#payments-voided) | ```<br>heat_main_details.customerId = payments_voided.customerId<br>```<br><br>```<br>heat_main_details.userId = payments_voided.userId<br>```<br><br>```<br>heat_main_details.userId = payments_voided.voidUser<br>``` |
| [reservations](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#reservations) | ```<br>heat_main_details.customerId = reservations.customersId<br>``` |
| [booking](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#booking) | ```<br>heat_main_details.heatId = booking.heatId<br>``` |
| [booking_availability](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#booking-availability) | ```<br>heat_main_details.heatId = booking_availability.heatId<br>```<br><br>```<br>heat_main_details.heatId = booking_availability.heatSpotsAvailableCombined<br>``` |
| [heat_main](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#heat-main) | ```<br>heat_main_details.heatId = heat_main.heatId<br>``` |
| [event_tasks](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-tasks) | ```<br>heat_main_details.userId = event_tasks.completedBy<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#users) | ```<br>heat_main_details.userId = users.userId<br>``` |
| [event_reservations](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-reservations) | ```<br>heat_main_details.userId = event_reservations.userId<br>``` |

heat\_main\_details table schema

| **autoNo**<br><br><br>INTEGER |
| --- |
| **customerId**<br><br><br>INTEGER |
| **finishPosition**<br><br><br>INTEGER |
| **firstTime**<br><br><br>BOOLEAN |
| **groupFinishPosition**<br><br><br>INTEGER |
| **groupId**<br><br><br>INTEGER |
| **heatId**<br><br><br>INTEGER |
| **lineUpPosition**<br><br><br>INTEGER |
| **pointHistoryId**<br><br><br>INTEGER |
| **positionEditedDate**<br><br><br>DATE-TIME |
| **proskill**<br><br><br>INTEGER |
| **proskillDiff**<br><br><br>INTEGER |
| **scores**<br><br><br>NUMBER |
| **timeAdded**<br><br><br>DATE-TIME |
| **userId**<br><br><br>INTEGER |

### heat\_types

The `heat_types` table contains info about heat types.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | heatTypesId |
| **Useful links** | [heat_types schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/heat_types.json "Opens in new tab: heat_types schema on GitHub") |

heat\_types table foreign keys

| Join heat\_types with | on |
| --- | --- |
| [booking_availability](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#booking-availability) | ```<br>heat_types.heatTypesId = booking_availability.heatTypeId<br>``` |
| [event_heat_types](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-heat-types) | ```<br>heat_types.heatTypesId = event_heat_types.heatTypeId<br>``` |
| [event_rounds](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-rounds) | ```<br>heat_types.heatTypesId = event_rounds.heatTypeId<br>``` |
| [heat_main](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#heat-main) | ```<br>heat_types.heatTypesId = heat_main.type<br>``` |
| [event_types](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-types) | ```<br>heat_types.trackId = event_types.trackId<br>``` |

heat\_types table schema

| **cannotBelow**<br><br><br>INTEGER |
| --- |
| **cannotExceed**<br><br><br>INTEGER |
| **cost**<br><br><br>INTEGER |
| **deleted**<br><br><br>BOOLEAN |
| **enabled**<br><br><br>BOOLEAN |
| **heatTypesId**<br><br><br>INTEGER |
| **isEventHeatOnly**<br><br><br>BOOLEAN |
| **isPracticeHeat**<br><br><br>BOOLEAN |
| **lapsOrMinutes**<br><br><br>INTEGER |
| **memberOnly**<br><br><br>BOOLEAN |
| **name**<br><br><br>STRING |
| **raceBy**<br><br><br>INTEGER |
| **racersPerHeat**<br><br><br>INTEGER |
| **scheduleDuration**<br><br><br>INTEGER |
| **speedLevel**<br><br><br>INTEGER |
| **trackId**<br><br><br>INTEGER |
| **winBy**<br><br><br>INTEGER |

### membership\_types

The `membership_types` table contains info about memberships.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | membershipTypeId |
| **Useful links** | [membership_types schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/membership_types.json "Opens in new tab: membership_types schema on GitHub") |

membership\_types table foreign keys

| Join membership\_types with | on |
| --- | --- |
| [memberships](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#memberships) | ```<br>membership_types.membershipTypeId = memberships.membershipTypeId<br>``` |

membership\_types table schema

| **description**<br><br><br>STRING |
| --- |
| **enabled**<br><br><br>INTEGER |
| **expirationType**<br><br><br>INTEGER |
| **expires**<br><br><br>BOOLEAN |
| **membershipTypeId**<br><br><br>INTEGER |
| **priceLevel**<br><br><br>INTEGER |
| **seq**<br><br><br>INTEGER |

### memberships

The `memberships` table contains info about memberships, which is a pairing of a [`customer`](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#customers) and [`membership_type`](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#membership_types).

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Keys ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | customerId<br><br>membershipTypeId |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | changed |
| **Useful links** | [memberships schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/memberships.json "Opens in new tab: memberships schema on GitHub") |

memberships table foreign keys

| Join memberships with | on |
| --- | --- |
| [check_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#check-details) | ```<br>memberships.customerId = check_details.g_CustId<br>```<br><br>```<br>memberships.customerId = check_details.p_CustId<br>```<br><br>```<br>memberships.customerId = check_details.s_CustId<br>```<br><br>```<br>memberships.byUserId = check_details.discountUserId<br>``` |
| [checks](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#checks) | ```<br>memberships.customerId = checks.customerId<br>```<br><br>```<br>memberships.byUserId = checks.discountUserId<br>```<br><br>```<br>memberships.byUserId = checks.userId<br>``` |
| [event_heat_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-heat-details) | ```<br>memberships.customerId = event_heat_details.customerId<br>``` |
| [gift_card_history](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#gift-card-history) | ```<br>memberships.customerId = gift_card_history.customerId<br>```<br><br>```<br>memberships.byUserId = gift_card_history.userId<br>``` |
| [heat_main_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#heat-main-details) | ```<br>memberships.customerId = heat_main_details.customerId<br>```<br><br>```<br>memberships.byUserId = heat_main_details.userId<br>``` |
| [payments](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#payments) | ```<br>memberships.customerId = payments.customerId<br>```<br><br>```<br>memberships.byUserId = payments.userId<br>```<br><br>```<br>memberships.byUserId = payments.voidUser<br>``` |
| [payments_voided](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#payments-voided) | ```<br>memberships.customerId = payments_voided.customerId<br>```<br><br>```<br>memberships.byUserId = payments_voided.userId<br>```<br><br>```<br>memberships.byUserId = payments_voided.voidUser<br>``` |
| [reservations](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#reservations) | ```<br>memberships.customerId = reservations.customersId<br>``` |
| [membership_types](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#membership-types) | ```<br>memberships.membershipTypeId = membership_types.membershipTypeId<br>``` |
| [event_tasks](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-tasks) | ```<br>memberships.byUserId = event_tasks.completedBy<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#users) | ```<br>memberships.byUserId = users.userId<br>``` |
| [event_reservations](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-reservations) | ```<br>memberships.byUserId = event_reservations.userId<br>``` |

memberships table schema

| **byUserId**<br><br><br>INTEGER |
| --- |
| **changed**<br><br><br>DATE-TIME |
| **customerId**<br><br><br>INTEGER |
| **expiration**<br><br><br>DATE-TIME |
| **membershipTypeId**<br><br><br>INTEGER |
| **notes**<br><br><br>STRING |

### payments

The `payments` table contains info about collected payments.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | paymentId |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | payDate |
| **Useful links** | [payments schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/payments.json "Opens in new tab: payments schema on GitHub") |

payments table foreign keys

| Join payments with | on |
| --- | --- |
| [check_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#check-details) | ```<br>payments.checkId = check_details.checkId<br>```<br><br>```<br>payments.customerId = check_details.g_CustId<br>```<br><br>```<br>payments.customerId = check_details.p_CustId<br>```<br><br>```<br>payments.customerId = check_details.s_CustId<br>```<br><br>```<br>payments.userId = check_details.discountUserId<br>```<br><br>```<br>payments.voidUser = check_details.discountUserId<br>``` |
| [checks](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#checks) | ```<br>payments.checkId = checks.checkId<br>```<br><br>```<br>payments.customerId = checks.customerId<br>```<br><br>```<br>payments.userId = checks.discountUserId<br>```<br><br>```<br>payments.voidUser = checks.discountUserId<br>```<br><br>```<br>payments.userId = checks.userId<br>```<br><br>```<br>payments.voidUser = checks.userId<br>``` |
| [event_reservation_links](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-reservation-links) | ```<br>payments.checkId = event_reservation_links.checkId<br>``` |
| [gift_card_history](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#gift-card-history) | ```<br>payments.checkId = gift_card_history.checkId<br>```<br><br>```<br>payments.customerId = gift_card_history.customerId<br>```<br><br>```<br>payments.userId = gift_card_history.userId<br>```<br><br>```<br>payments.voidUser = gift_card_history.userId<br>``` |
| [payments_voided](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#payments-voided) | ```<br>payments.checkId = payments_voided.checkId<br>```<br><br>```<br>payments.customerId = payments_voided.customerId<br>```<br><br>```<br>payments.paymentId = payments_voided.paymentId<br>```<br><br>```<br>payments.userId = payments_voided.userId<br>```<br><br>```<br>payments.voidUser = payments_voided.userId<br>```<br><br>```<br>payments.userId = payments_voided.voidUser<br>```<br><br>```<br>payments.voidUser = payments_voided.voidUser<br>``` |
| [reservations](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#reservations) | ```<br>payments.checkId = reservations.checkId<br>```<br><br>```<br>payments.customerId = reservations.customersId<br>``` |
| [event_heat_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-heat-details) | ```<br>payments.customerId = event_heat_details.customerId<br>``` |
| [heat_main_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#heat-main-details) | ```<br>payments.customerId = heat_main_details.customerId<br>```<br><br>```<br>payments.userId = heat_main_details.userId<br>```<br><br>```<br>payments.voidUser = heat_main_details.userId<br>``` |
| [memberships](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#memberships) | ```<br>payments.customerId = memberships.customerId<br>```<br><br>```<br>payments.userId = memberships.byUserId<br>```<br><br>```<br>payments.voidUser = memberships.byUserId<br>``` |
| [event_tasks](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-tasks) | ```<br>payments.userId = event_tasks.completedBy<br>```<br><br>```<br>payments.voidUser = event_tasks.completedBy<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#users) | ```<br>payments.userId = users.userId<br>```<br><br>```<br>payments.voidUser = users.userId<br>``` |
| [event_reservations](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-reservations) | ```<br>payments.userId = event_reservations.userId<br>```<br><br>```<br>payments.voidUser = event_reservations.userId<br>``` |

payments table schema

| **cardType**<br><br><br>STRING |
| --- |
| **checkId**<br><br><br>INTEGER |
| **customerId**<br><br><br>INTEGER |
| **extCardType**<br><br><br>STRING |
| **payAmount**<br><br><br>NUMBER |
| **payDate**<br><br><br>DATE-TIME |
| **payStatus**<br><br><br>INTEGER |
| **payTax**<br><br><br>NUMBER |
| **payTerminal**<br><br><br>STRING |
| **payType**<br><br><br>INTEGER |
| **paymentId**<br><br><br>INTEGER |
| **transaction**<br><br><br>STRING |
| **userId**<br><br><br>INTEGER |
| **voidDate**<br><br><br>DATE-TIME |
| **voidNotes**<br><br><br>STRING |
| **voidTerminal**<br><br><br>STRING |
| **voidUser**<br><br><br>INTEGER |

### payments\_voided

The `payments_voided` table contains info about voided [`payments`](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#payments).

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | paymentId |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | voidDate |
| **Useful links** | [payments_voided schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/payments_voided.json "Opens in new tab: payments_voided schema on GitHub") |

payments\_voided table foreign keys

| Join payments\_voided with | on |
| --- | --- |
| [check_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#check-details) | ```<br>payments_voided.checkId = check_details.checkId<br>```<br><br>```<br>payments_voided.customerId = check_details.g_CustId<br>```<br><br>```<br>payments_voided.customerId = check_details.p_CustId<br>```<br><br>```<br>payments_voided.customerId = check_details.s_CustId<br>```<br><br>```<br>payments_voided.userId = check_details.discountUserId<br>```<br><br>```<br>payments_voided.voidUser = check_details.discountUserId<br>``` |
| [checks](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#checks) | ```<br>payments_voided.checkId = checks.checkId<br>```<br><br>```<br>payments_voided.customerId = checks.customerId<br>```<br><br>```<br>payments_voided.userId = checks.discountUserId<br>```<br><br>```<br>payments_voided.voidUser = checks.discountUserId<br>```<br><br>```<br>payments_voided.userId = checks.userId<br>```<br><br>```<br>payments_voided.voidUser = checks.userId<br>``` |
| [event_reservation_links](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-reservation-links) | ```<br>payments_voided.checkId = event_reservation_links.checkId<br>``` |
| [gift_card_history](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#gift-card-history) | ```<br>payments_voided.checkId = gift_card_history.checkId<br>```<br><br>```<br>payments_voided.customerId = gift_card_history.customerId<br>```<br><br>```<br>payments_voided.userId = gift_card_history.userId<br>```<br><br>```<br>payments_voided.voidUser = gift_card_history.userId<br>``` |
| [payments](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#payments) | ```<br>payments_voided.checkId = payments.checkId<br>```<br><br>```<br>payments_voided.customerId = payments.customerId<br>```<br><br>```<br>payments_voided.paymentId = payments.paymentId<br>```<br><br>```<br>payments_voided.userId = payments.userId<br>```<br><br>```<br>payments_voided.voidUser = payments.userId<br>```<br><br>```<br>payments_voided.userId = payments.voidUser<br>```<br><br>```<br>payments_voided.voidUser = payments.voidUser<br>``` |
| [reservations](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#reservations) | ```<br>payments_voided.checkId = reservations.checkId<br>```<br><br>```<br>payments_voided.customerId = reservations.customersId<br>``` |
| [event_heat_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-heat-details) | ```<br>payments_voided.customerId = event_heat_details.customerId<br>``` |
| [heat_main_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#heat-main-details) | ```<br>payments_voided.customerId = heat_main_details.customerId<br>```<br><br>```<br>payments_voided.userId = heat_main_details.userId<br>```<br><br>```<br>payments_voided.voidUser = heat_main_details.userId<br>``` |
| [memberships](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#memberships) | ```<br>payments_voided.customerId = memberships.customerId<br>```<br><br>```<br>payments_voided.userId = memberships.byUserId<br>```<br><br>```<br>payments_voided.voidUser = memberships.byUserId<br>``` |
| [event_tasks](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-tasks) | ```<br>payments_voided.userId = event_tasks.completedBy<br>```<br><br>```<br>payments_voided.voidUser = event_tasks.completedBy<br>``` |
| [users](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#users) | ```<br>payments_voided.userId = users.userId<br>```<br><br>```<br>payments_voided.voidUser = users.userId<br>``` |
| [event_reservations](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-reservations) | ```<br>payments_voided.userId = event_reservations.userId<br>```<br><br>```<br>payments_voided.voidUser = event_reservations.userId<br>``` |

payments\_voided table schema

| **cardType**<br><br><br>STRING |
| --- |
| **checkId**<br><br><br>INTEGER |
| **customerId**<br><br><br>INTEGER |
| **extCardType**<br><br><br>STRING |
| **payAmount**<br><br><br>NUMBER |
| **payDate**<br><br><br>DATE-TIME |
| **payStatus**<br><br><br>INTEGER |
| **payTax**<br><br><br>NUMBER |
| **payTerminal**<br><br><br>STRING |
| **payType**<br><br><br>INTEGER |
| **paymentId**<br><br><br>INTEGER |
| **transaction**<br><br><br>STRING |
| **userId**<br><br><br>INTEGER |
| **voidDate**<br><br><br>DATE-TIME |
| **voidNotes**<br><br><br>STRING |
| **voidTerminal**<br><br><br>STRING |
| **voidUser**<br><br><br>INTEGER |

### product\_classes

The `product_classes` table contains info about classes applied to [`products`](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#products). Product classes determine how products are aggregated in Club Speed’s reporting system.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | productClassId |
| **Useful links** | [product_classes schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/product_classes.json "Opens in new tab: product_classes schema on GitHub") |

product\_classes table foreign keys

| Join product\_classes with | on |
| --- | --- |
| [discount_types](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#discount-types) | ```<br>product_classes.productClassId = discount_types.productClassId<br>``` |
| [products](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#products) | ```<br>product_classes.productClassId = products.productClassId<br>``` |

product\_classes table schema

| **deleted**<br><br><br>BOOLEAN |
| --- |
| **description**<br><br><br>STRING |
| **exportName**<br><br><br>STRING |
| **productClassId**<br><br><br>INTEGER |

### products

The `products` table contains info about products.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | productId |
| **Useful links** | [products schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/products.json "Opens in new tab: products schema on GitHub") |

products table foreign keys

| Join products with | on |
| --- | --- |
| [discount_types](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#discount-types) | ```<br>products.productClassId = discount_types.productClassId<br>``` |
| [product_classes](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#product-classes) | ```<br>products.productClassId = product_classes.productClassId<br>``` |
| [booking](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#booking) | ```<br>products.productId = booking.productsId<br>``` |
| [booking_availability](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#booking-availability) | ```<br>products.productId = booking_availability.products.productsId<br>``` |
| [check_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#check-details) | ```<br>products.productId = check_details.productId<br>```<br><br>```<br>products.taxId = check_details.taxId<br>``` |
| [event_types](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-types) | ```<br>products.productId = event_types.onlineProductId<br>``` |
| [taxes](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#taxes) | ```<br>products.taxId = taxes.taxId<br>``` |

products table schema

| **deleted**<br><br><br>BOOLEAN |
| --- |
| **description**<br><br><br>STRING |
| **enabled**<br><br><br>BOOLEAN |
| **g\_Points**<br><br><br>NUMBER |
| **p\_Points**<br><br><br>NUMBER |
| **price1**<br><br><br>NUMBER |
| **price2**<br><br><br>NUMBER |
| **priceCadet**<br><br><br>NUMBER |
| **productClassId**<br><br><br>INTEGER |
| **productId**<br><br><br>INTEGER |
| **productType**<br><br><br>INTEGER |
| **r\_Points**<br><br><br>NUMBER |
| **taxId**<br><br><br>INTEGER |

### reservations

The `reservations` table contains info about reservations. Reservations are indications that a [`customer`](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#customers) is looking to purchase a spot in a [`booking`](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#booking_availability) or has already purchased a spot.

Information note **Note**: This table uses `as the [Replication Key](/en-US/stitch/replication/replication-keys). This means that reservations will be selected for replication only when they are initially created. Any subsequent updates made to the reservation will not be detected, as the` value will not be updated. Refer to the [Key-based Incremental Replication documentation](https://help.qlik.com/en-US/stitch/replication/replication-methods/key-based-incremental) for more info and examples.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | onlineBookingReservationsId |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | createdAt |
| **Useful links** | [reservations schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/reservations.json "Opens in new tab: reservations schema on GitHub") |

reservations table foreign keys

| Join reservations with | on |
| --- | --- |
| [booking](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#booking) | ```<br>reservations.onlineBookingsId = booking.onlineBookingsId<br>``` |
| [booking_availability](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#booking-availability) | ```<br>reservations.onlineBookingsId = booking_availability.products.onlineBookingsId<br>``` |
| [check_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#check-details) | ```<br>reservations.checkId = check_details.checkId<br>```<br><br>```<br>reservations.customersId = check_details.g_CustId<br>```<br><br>```<br>reservations.customersId = check_details.p_CustId<br>```<br><br>```<br>reservations.customersId = check_details.s_CustId<br>``` |
| [checks](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#checks) | ```<br>reservations.checkId = checks.checkId<br>```<br><br>```<br>reservations.customersId = checks.customerId<br>``` |
| [event_reservation_links](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-reservation-links) | ```<br>reservations.checkId = event_reservation_links.checkId<br>```<br><br>```<br>reservations.onlineBookingReservationsId = event_reservation_links.reservationId<br>``` |
| [gift_card_history](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#gift-card-history) | ```<br>reservations.checkId = gift_card_history.checkId<br>```<br><br>```<br>reservations.customersId = gift_card_history.customerId<br>``` |
| [payments](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#payments) | ```<br>reservations.checkId = payments.checkId<br>```<br><br>```<br>reservations.customersId = payments.customerId<br>``` |
| [payments_voided](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#payments-voided) | ```<br>reservations.checkId = payments_voided.checkId<br>```<br><br>```<br>reservations.customersId = payments_voided.customerId<br>``` |
| [event_heat_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-heat-details) | ```<br>reservations.customersId = event_heat_details.customerId<br>``` |
| [heat_main_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#heat-main-details) | ```<br>reservations.customersId = heat_main_details.customerId<br>``` |
| [memberships](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#memberships) | ```<br>reservations.customersId = memberships.customerId<br>``` |
| [events](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#events) | ```<br>reservations.onlineBookingReservationsId = events.reservationId<br>``` |

reservations table schema

| **checkId**<br><br><br>INTEGER |
| --- |
| **createdAt**<br><br><br>DATE-TIME |
| **customersId**<br><br><br>INTEGER |
| **expiresAt**<br><br><br>DATE-TIME |
| **onlineBookingReservationStatusId**<br><br><br>INTEGER |
| **onlineBookingReservationsId**<br><br><br>INTEGER |
| **onlineBookingsId**<br><br><br>INTEGER |
| **quantity**<br><br><br>INTEGER |
| **sessionId**<br><br><br>STRING |

### sources

The `sources` table contains info about how customers find and register at venues.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | sourceId |
| **Useful links** | [sources schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/sources.json "Opens in new tab: sources schema on GitHub") |

sources table schema

| **deleted**<br><br><br>BOOLEAN |
| --- |
| **enabled**<br><br><br>BOOLEAN |
| **locationId**<br><br><br>INTEGER |
| **name**<br><br><br>STRING |
| **seq**<br><br><br>INTEGER |
| **sourceId**<br><br><br>INTEGER |

### taxes

The `taxes` table contains info about tax calculations, which are typically applied to [`products`](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#products).

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | taxId |
| **Useful links** | [taxes schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/taxes.json "Opens in new tab: taxes schema on GitHub") |

taxes table foreign keys

| Join taxes with | on |
| --- | --- |
| [check_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#check-details) | ```<br>taxes.taxId = check_details.taxId<br>``` |
| [products](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#products) | ```<br>taxes.taxId = products.taxId<br>``` |

taxes table schema

| **amount**<br><br><br>NUMBER |
| --- |
| **deleted**<br><br><br>BOOLEAN |
| **description**<br><br><br>STRING |
| **gst**<br><br><br>NUMBER |
| **taxId**<br><br><br>INTEGER |

### users

The `users` table contains info about employees and system users. **Note**: While some employees may also be [`customers`](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#customers), this table does not contain customer information.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | userId |
| **Useful links** | [users schema on GitHub](https://github.com/singer-io/tap-clubspeed/blob/master/tap_clubspeed/schemas/users.json "Opens in new tab: users schema on GitHub") |

users table foreign keys

| Join users with | on |
| --- | --- |
| [check_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#check-details) | ```<br>users.userId = check_details.discountUserId<br>``` |
| [checks](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#checks) | ```<br>users.userId = checks.discountUserId<br>```<br><br>```<br>users.userId = checks.userId<br>``` |
| [event_tasks](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-tasks) | ```<br>users.userId = event_tasks.completedBy<br>``` |
| [gift_card_history](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#gift-card-history) | ```<br>users.userId = gift_card_history.userId<br>``` |
| [event_reservations](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#event-reservations) | ```<br>users.userId = event_reservations.userId<br>``` |
| [heat_main_details](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#heat-main-details) | ```<br>users.userId = heat_main_details.userId<br>``` |
| [memberships](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#memberships) | ```<br>users.userId = memberships.byUserId<br>``` |
| [payments](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#payments) | ```<br>users.userId = payments.userId<br>```<br><br>```<br>users.userId = payments.voidUser<br>``` |
| [payments_voided](https://help.qlik.com/en-US/stitch/integrations/saas/clubspeed#payments-voided) | ```<br>users.userId = payments_voided.userId<br>```<br><br>```<br>users.userId = payments_voided.voidUser<br>``` |

users table schema

| **cardId**<br><br><br>INTEGER |
| --- |
| **deleted**<br><br><br>BOOLEAN |
| **email**<br><br><br>STRING |
| **empStartDate**<br><br><br>DATE-TIME |
| **enabled**<br><br><br>BOOLEAN |
| **firstname**<br><br><br>STRING |
| **isSystemUser**<br><br><br>BOOLEAN |
| **lastname**<br><br><br>STRING |
| **phone**<br><br><br>STRING |
| **userId**<br><br><br>INTEGER |
| **username**<br><br><br>STRING |