Data Types

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 manual

Activity

This data type contains the details of scheduled activity.
Field Name
Type
Notes
dates&hours
List of dates
Stores the event’s date and hour
description
text
Stores the event description.
duration
text
Stores the event duration.
image
file
Stores the event image.
price
number
Stores the event price.
title
text
Stores the event title.

Address

This data type contains the geographical locations of service providers.
Field Name
Type
Notes
address
geographic address
Stores the location address.

Appointment

This data type stores information about scheduled appiontments.
Field Name
Type
Notes
activity
Activity
Stores the related activity
comment
text
Stores the related comments.
customer
User
Stores the related User.
day
date
Stores the selected day.
hour
text
Stores the scheduled hour.

Basket

This data type stores information about shop basket.
Field Name
Type
Notes
basketItems
List of BasketItems
Stores the list of selected items.

BasketItem

This data type stores items added to basket.
Field Name
Type
Notes
product
Product
Stores the added product.
quantity
number
Stores the number of added items.
totalPrice
number
Stores the total price for all items.

OrderedItem

This data type stores information about products that can be purchased by users.
Field Name
Type
Notes
product
Product
Stores the added product.
quantity
number
Stores the number of added items.
totalPrice
number
Stores the total price for all items.

Product

This data type stores information about products available in the shop.
Field Name
Type
Notes
productDescription
text
Stores the product description.
productFullPrice
number
Stores the product at full price.
productImg
image
Stores the product image
productOrderItem
orderItem
Stores the product order item.
productSalePrice
number
Stores the product sale price.
productTitle
text
Stores the product title.

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.
This data type stores the users' data (birthdate, description, product, profile Photo, services, etc.) and profile information like services, order items, dream box, etc.
Field Name
Type
Notes
userAppointment
List of Appointments
Stores the list of appointments made.
userBirthdate
date
Stores the user birthdate.
userFirstName
text
Stores user first name.
userLastName
text
Stores user's last name.
userNewsletterSubscribe
yes/no
Stores the newsletter subscription status.
userOffersSubscribe
yes/no
Stores the user’s status on offers mailings.
userOrderItems
List of orderitems
Stores the items selected for the order.
userPhoneNumber
text
Stores the user's phone.
userProfilePhoto
image
Stores the profile photo.
userRole
User Role OS
Stores the user type.
userWishlist
List of Products
Stores the list of wished items.
Note: The data type has a privacy rule applied. See the 💬 in the database under the privacy section for details.

Variable

This data type is used to (not) allow users to use the admin features within the app.
Field Name
Type
Notes
accessRights
yes / no
This field determines demo user permissions.

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.
Image without caption