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

BookedOrders

This data type stores the list of all services booked by users to display statistics in admin dashboard.
Field Name
Type
Notes
BookedOrders
List of Orders
Stores the list of booked orders.

CartItem

This data type stores the data about information about product that is currently in user's cart.
Field Name
Type
Notes
Product
Product
Stores the product added to cart.
Quantity
number
Stores the product quantity.

Feedback

This data type stores the feedback messages submitted by users via contact form located on the contact-us page.
Field Name
Type
Notes
feedbackMessaage
text
Stores the feedback message.
feedbackUser
text
Stores the feedback message author.
feaadbackUserEmail
text
Stores the feedback message author email.

Gallery

This data type stores all the promo images used for the photo gallery. Galleries can introduce your customers to your products, your company, and the values you hold.
Field Name
Type
Notes
GalleryImage
image
Stores the image.

GuestReview

This data type stores the guest reviews details.
Field Name
Type
Notes
GuestName
text
Stores the guest name.
Review
text
Stores the review text.

Message

This data type stores the messages sent by users to admin.
Field Name
Type
Notes
Email
text
Stores the message author email.
messageText
text
Stores the message text.
Name
text
Stores the message author name.

Order

This data type stores the details about beauty care services booked by current user.
Field Name
Type
Notes
DiscountAmount
number
Stores the discount amount.
Discounted
yes / no
Stores the discounting status.
Email
text
Stores the user’s email
First Name
text
Stores the user first name.
Last Name
text
Stores the user first name.
Order Details
text
Stores the order details.
OrderColor
text
Stores the order color.
OrderCost
number
Stores the overall order cost.
OrderDate
date
Stores the order date.
OrderedProcedure
Procedure
Stores the ordered procedure.
Phone
text
Stores the user phone.
Time
text
Stores the order time.
User
User
Stores the order author.

Procedure

This data type stores the basic information about salon and beauty care services with pricing and other info.
Field Name
Type
Notes
isAvailable
yes / no
Stores the availability status. Default value - yes.
listdate
List of dates
Stores the availability list of dates.
ProcedureCategory
text
Stores the procedure category.
ProcedureColor
text
Stores the procedure color.
ProcedureDescription
text
Stores the procedure description.
ProcedureDuration
text
Stores the procedure duration.
ProcedureImage
image
Stores the procedure image.
ProcedurePrice
number
Stores the procedure price.
ProcedureDate
date
Stores the procedure date.

Product

This data type stores the basic information about the product in the shop.
Field Name
Type
Notes
inStock
yes / no
Stores the availability status.
isDiscounted
yes / no
Stores the discounting status.
ProductCategory
ShopCategory
Stores the product category.
ProductDescription
text
Stores the product description.
ProductImage
image
Stores the product image.
ProductName
text
Stores the product name.
ProductPrice
number
Stores the product price.
ProductPriceOld
number
Stores the old product price.
ProductRatingNew
List of Ratings
Stores the overall product rating.

Rating

This data type stores the ratings for the products on the website,
Field Name
Type
Notes
Rating
number
Stores the accorded rating.
RatingProduct
product
Stores the rated product.
Review
text
Stores the review text.

SalonStuff

This data type stores each possible way to reach the company.
Field Name
Type
Notes
Address
geographic address
Stores the salon address.
BusinessEmail
text
Stores the business email.
CompanyName
text
Stores the company name. Default name - goSPA.
DiscountAmount
number
Stores the discount amount.
DiscountDay
number
Stores the number of days when discount is applied.
DiscountHour
number
Stores the number of hours when discount applied.
Logo
image
Stores the salon logo.
PhoneNumber
text
Stores the salon phone number.
ShowThankYouMsg
yes / no
Stores thank you message status.
ThankYouCardBGcolor
text
Stores the background color of thank you message.
ThankYouCardMessage
text
Stores the thank you message text.
ThankYouCardSymbol
image
Stores the thank you message symbol.

ShopCategory

This data type stores the main categories of your products. They help users to find products and navigate through your shop easily.
Field Name
Type
Notes
CategoryName
text
Stores the category name.

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' bio data (Name, Last Name, Phone etc.) and profile information like ordered items associated with the user.
Field Name
Type
Notes
CartItemsList
List of CartItems
Stores the list of items added to the cart.
isAdmin
yes / no
Stores the admin status.
LastName
text
Stores the last name.
Name
text
Stores the name.
OrderedItems
List of CartItems
Stores the list of ordered items.
Phone
text
Stores the phone number.
Type
userType
Stores the user type.
UserBookedOrderList
List of BookedOrderses
Stores the list of booked orders.
UserOrders
List of Orders
Stores the list of orders.
writeRights
yes / no
Stores the write rights status.
Note: The data type has a privacy rule applied. See the 💬 in the database under the privacy section for details.

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