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 manualAddress
This data type stores the user’s own addresses.
Field Name | Type | Notes |
Details | text | Stores the address details. |
Title | text | Stores the address title. |
App Settings
This data type stores the app settings details.
Field Name | Type | Notes |
Shipping Fee | number | Stores the shipping fee value. |
Brand
This data type stores the brand names.
Field Name | Type | Notes |
Name | text | Stores the brand name. |
Campaign
This data type stores the campaign details.
Field Name | Type | Notes |
Current Order | number | Stores the instant order number. |
End Date | date | Stores the campaign end date. |
Entry Price | number | Stores the entry price. |
Image | image | Stores the campaign image. |
Long Description | text | Stores the campaign description. |
Max Order | number | Stores the maximum number of individual orders allowed. |
Min Order | number | Stores the minimum number of individual orders allowed. |
Participant Counter | number | Stores the number of participants. |
Price Excluding Tax&Shipping Fee | number | Stores the net price. |
Products | List of Products | Stores the list of products. |
Short Description | text | Stores the campaign short description. |
Stock | number | The total maximum number of orders allowed. When the number of orders reaches this value, no user can create a new order. |
Title | text | Stores the campaign title. |
Category
This data type stores the category details.
Field Name | Type | Notes |
Name | text | Stores the category name. |
Subcategories | List of Subcategorys | Stores the list of related subcategories. |
Newsletter subscription
This data type stores the email addresses submitted by users.
Field Name | Type | Notes |
Email | text | Stores the email address. |
Orders
This data type stores the order details.
Field Name | Type | Notes |
Campaign | Campaign | If the order belongs to a campaign, it shows which campaign it belongs to. |
Charged? | yes / no | Stores the changing status. |
Price | number | Stores the order price. |
Product | Product | If the order belongs to a product, it shows which product belongs to. |
Purchaser | User | Stores the purchasing user. |
Quantity | number | Stores the product quantity. |
Shipping Address | Address | Stores the address of the orderer. |
Status | Order Status (OS) | Stores the order status. |
Product
This data type stores the product details.
Field Name | Type | Notes |
Brand Name | Brand | Stores the product brand name. |
Category | Category | Stores the product category name. |
Image | List of images | Stores the product images. |
Long Description | text | Stores the product description. |
Name | text | Stores the product name. |
Price | number | Stores the product price. |
Short Description | text | Stores the product description. |
Stock | number | Stores the available stock number. |
Subcategory | Subcategory | Stores the related subcategory. |
Stage
This data type stores the current stage details.
Field Name | Type | Notes |
Achieved? | yes / no | Stores the achievement status. |
Campaign | Campaign | Stores the related campaign. |
Price | number | Stores the current price. |
Target | number | Stores the target price. |
Subcategory
This data type stores the subcategory details.
Field Name | Type | Notes |
Name | text | Stores the subcategory 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, role and ban status).
Field Name | Type | Notes |
Blocked? | yes / no | Stores the ban status. |
First Name | text | Stores the first name. |
Last Name | text | Stores the last name. |
Role | text | Stores the user role (user or admin) |
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 |
writeRights | yes / no | This field determines demo user permissions. |
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.
App Settings (OS)
This field holds all the options available for the product listing categories. It comes with the following attributes.
Attribute | Type | Notes |
App name | text | Stores the app name. |
Privacy Policy | text | Stores the privacy policy. |
Terms of Use | text | Stores the terms of use. |
The options for this set are:
Option | Types |
Groupby | Stores the Groupby option. |
FAQ (OS)
This field holds all the options available for the product listing categories. It comes with the following attributes.
Attribute | Type | Notes |
Answer | text | Stores the answer text. |
Question | text | Stores the question text. |
The options for this set are:
Option | Types |
1 | Stores first option. |
2 | Stores second option. |
3 | Stores third option. |
4 | Stores the fourth option. |
Order Status (OS)
This field holds all the options available for the product listing categories. It comes with the default "Display" attribute.
The options for this set are:
Option | Types |
Pending | Stores the option. |
Approved | Stores the option. |
Canceled | Stores the option. |
Delivered | Stores the option. |
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.