This section consists of Database Things and fields description for every thing which is part of the template.
Introduction
To get to the Data section, click the database icon on the left side tabs in Bubble Editor.
Important: See Bubble manual information when working with data:
https://manual.bubble.io/help-guides/working-with-data;
https://manual.bubble.io/core-resources/data.
Data Types
Note: In case you have accidentally deleted a data type - no worries! Bubble lets you restore💪the deleted data type.
Clicking on 'show deleted types' or 'show deleted fields' from the Data → Data types tab will reveal the deleted items, and a 'restore' button will appear next to each deleted entry.
Simply click 'restore', to restore a field or data type.
Tip: Aside from the below-listed data types and fields, Bubble creates these default fields visible in each data type:
Creator
, Modified Date
, Created Date
and Slug
, except for the User data type.
The User data type will have the following fields: email
, Modified Date
, Created Date
and Slug
. These fields' values can be used in workflows, conditional formatting, etc.
To learn more, see the Bubble manualAdmin
Class
This data type contains information about classes in the gym.
Field Name | Type | Notes |
definition | text | Stores the class purpose. |
details | text | Stores the class details. |
image | image | Stores the class image. |
name | text | Stores the class name. |
name_Persons | List of texts | Stores the class attendees. |
persons_per_session test | Stores the number of persons per session. | |
photos | photo | Stores the class photos. |
price | List of packages | Stores the class price. |
sessions | List of sessions | Stores the number of sessions. |
UniqueId | text | Stores the class unique ID. |
Config
This data type contains data such as site title, site description, and different variants of the site's logo.
Field Name | Type | Notes |
site-description | text | Stores the site description. |
site-logo | image | Stores the site logo. |
site-logo-white | text | Stores the site logo on white |
site-title | text | Stores the site title. |
testimonial-1 | text | Stores the testimonial text. |
testimonial1-image | image | Stores the testimonial author image. |
testimonial1-name | text | Stores the testimonial author's name. |
testimonial1-role | text | Stores the testimonial author's role. |
testimonial2 | text | Stores the testimonial text. |
testimonial2-image | image | Stores the testimonial author image. |
testimonial2-name | text | Stores the testimonial author's name. |
testimonial2-role | text | Stores the testimonial author's role. |
testimonial3 | text | Stores the testimonial text. |
testimonial3-image | image | Stores the testimonial author image. |
testimonial3-name | text | Stores the testimonial author's name. |
testimonial1-role | text | Stores the testimonial author's role. |
Instructor
This data type stores all the information about the instructor.
Field Name | Type | Notes |
brief-info | text | Stores the instructor's brief info. |
facebook-profile | text | Stores the link to the Facebook profile. |
image | image | Stores the instructor image. |
instagram-profile | text | Stores the link to the Instagram profile. |
name | text | Stores the instructor’s name. |
role | text | Stores the instructor’s role. |
session | List of sessions | Stores the list of sessions. |
twitter-profile | text | Stores the link to Twitter profile. |
Package
This data type has to do with everything about the packages/plans/membership in the gym.
Field Name | Type | Notes |
api_id | text | Stores the assigned API ID. |
classes | List of classes | Stores the list of included classes. |
details | text | Stores the package details. |
img | image | Stores the package image. |
Name | text | Stores the package name. |
Options | List of texts | Stores the list of available options. |
Price | number | Stores the package price. |
Photo
This data type stores all the pictures in the template, each picture coming with the class they are related to.
Field Name | Type | Notes |
class | class | Stores the attributed class. |
photos | image | Stores photos. |
videos | file | Stores videos. |
Session
This data type contains information relating to the schedule of each class from the scheduled day, date, and time to each class instructor
Field Name | Type | Notes |
set person per session | number | Stores the number of persons per session. |
class | class | Stores the related class. |
end_time | date | Stores the session end time. |
instructor | Instructor | Stores the session’s instructor. |
persons_per_sessions test | number | Stores the number of persons per session. |
start_time | date | Stores the session start time. |
User
Bubble applications have a built-in User data type that acts like any type that is created in a database. For instance, you can modify a user, delete a user, list them in a repeating group, etc.
The user's data type contains the usual profile info; name, email, phone number, weight, height, password, and other relevant info such as subscription id and customer id.
Field Name | Type | Notes |
admin | yes / no | Stores the user admin status. |
current_package | package | Stores the currently used package. |
Full_name | text | Stores the user's full name. |
height | number | Stores the user’s height. |
Invoice | text | Stores the invoices. |
PaidSubscription | yes / no | Stores the paid subscription status. Default value - no. |
phone_number | text | Stores the user phone number. |
Plan_Id | text | Stores the plan Id. |
StripeCustomerId | text | Stores the Stripe Customer ID. |
StripeSubscription | text | Stores the Stripe subscription. |
StripeSubscriptionId | text | Stores the Stripe Subscription ID. |
StripeSubscriptionNextBilling | date | Stores the date of next subscription billing. |
weight | number | Stores the user weight. |
Note: The data type has a privacy rule applied. See the 💬 in the database under the privacy section for details.
Option Sets
Tip: Option sets define a static list of choices for use in dropdowns, pop-ups, etc. Options inside the sets have at least a text display, but they can have additional attributes defined in the Data tab. To learn more, see Bubble Manual.
Below you can find the list of option set attributes and options.
Person Set
This field holds all the options available for the person sets. It comes with the default "Display" attribute.
The options for this set are:
Option | Types |
Name | Stores the set name. |
number | Stores the set amount. |
Tip: To find the pages where the options sets are used, use the App Search Tool within the editor.
Embedded Notes in Bubble Editor
This template comes with explicit Notes for Database fields, Option sets and their fields, and Privacy rules, which will guide you through the modification process.
In order to preview a Note of any data type or field, click on the 💬 icon.