Data Structure

The database structure for the template

All objects and some selected fields in the template are explained below. Please refer to our Bubble Best Practices document for guidance on how the Bubble database should be structured.

All data types and a few select fields are explained below. A good general rule to follow is that you shouldn't delete any fields that are included with the template and instead only add new ones.

Block entry

This data type is used to store content that goes into each homepage block. Each homepage block (template) will have a maximum number of block entries:

  • Testimonials section: Multiple entries

  • Featured section: Up to 3 entries

  • Process section: Up to 3 entries

  • Slideshow section: Between 3 to 5 entries

  • Capabilities section: Up to 9 entries

  • Video section: 1 entry

  • Press section: Between 3 to 5 entries

  • About section: 1 entry

  • Call-to-action section: 1 entry

  • Contact section: 0 entries

Cart

This data type represents the shopping cart for the current user. A Cart can be created and used while logged in or logged out. The Cart essentially links the selected set of Line items to the current user, which are transferred to an Order instance when the user checks out. A user should only ever have one unpaid Cart active at a time.

Category

This data type represents the different categorizations of Products on the platform. A Category is created, modified, and deleted all from the owner’s portal.

Dummy

This data type allows you to quickly preview your page layout by it as your data source.

Feature backlog

This data type represents each feature that an Owner has added into the Backlog section of the Owner's Portal.

Homepage block template

The data type is used for the homepage maker. App owners can add any number of homepage blocks / homepage sections straight from the owner's portal by starting from a homepage block template.

Homepage block

App Owners can add an unlimited number of homepage blocks. They can control the content and settings from the Owner's Portal.

Image

This data type represents a single image that is associated with a particular Product. This image may be a primary image or standard image for a product.

Line item

This data type represents a single line item for a shopping cart. A line item essentially consists of a Product and a Quantity. Price calculations for an order come directly from the Cart’s Line items.

Order

This data type represents an order stemming from a user’s Cart. An order is created when a user successfully completes the checkout process and processes a payment. Certain fields, such as the address and CC fields, are stored for reference purposes (on order confirmation views) and to pre-populate the buyer address for future purchases.

Palette color

This data type is color palette list is referenced in the Air Color Picker plugin / element. Feel free to add more color entries for quick access when using the Air Color Picker element.

Product

This data type represents a product created for the platform. Products are publicly searchable and viewable and can be “purchased” by logged in users. Products are created and managed entirely from the owner’s portal.

Push token

This represents a unique token to be used with OneSignal for push notification integrations for wrapped mobile apps.

Review

This data type represents a user-written review for a product. A Review is created when a user submits a review from a product's details page. A user can only review a Product that they've ordered at least once.

User

The user data type represents each person who has an account in your application.

Website

This data type includes fields for all app-wide settings. Most of the data fields are controlled by the App Owner from the Owner's portal. There should only be a single object of this data type.

Last updated