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.

Data Types

Most of the template content is directly pulled from the database. Please do not delete an entire Data Thing unless you are sure of what you are doing. However, feel free to delete any template content you prefer.
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

Order

This data type stores the information about order made on the platform.
Field Name
Type
Notes
currentStatus
Order Status
Stores the order current status.
Customer
User
Stores the order author.
Items
List of Products
Stores the list of included items.
Live
yes / no
Stores the order status. Default value - no.
orderNumber
text
Stores the order number.
Paid
yes / no
Stores the order payment status.
Retailer
Retailer
Stores the retailer.
Store
Store
Stores the store.
sumToPay
number
Stores the amount to be paid.

Order Status

This data type stores information about orders’ statuses.
Field Name
Type
Notes
Notes
text
Stores the status notes.
Status
text
Stores the status.

Product

This data type stores information about products registered on the platform.
Field Name
Type
Notes
Available
yes / no
Stores the product availability status.
Category
List of Product Categorys
Stores the product category.
Cost
number
Stores the product cost.
Description
text
Stores the product description.
Image
image
Stores the product image.
Name
text
Stores the product name.
prepTime
number
Stores the estimated preparation time.
Retailer
Retailer
Stores the retailer.
Stores
List of Stores
Stores the list of stores.
UID
number
Stores the product UID.

Retailer

This data type stores information about retailers registered on the platform.
Field Name
Type
Notes
admin
User
Stores the user that created the retailer.
Description
text
Stores the retailer description.
Logo
image
Stores the retailer’s logo.
nameOfBusiness
text
Stores the name of the business.
Stores
List of Stores
Stores the list of registered stores.
stripeSeller
yes / no
Stores the Stripe status. Default value - no.

Store

This data type stores information about stores registered on the platform.
Field Name
Type
Notes
Image
image
Stores the store image.
Live
yes / no
Stores the store status.
Location
geographic address
Stores the store location.
Retailer
Retailer
Stores the related retailer.
storeName
text
Stores the store name.
testMode
yes / no
Stores the test mode status.

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, mobile number, avatar, etc.) and profile information like a list of recently visited stores.
Field Name
Type
Notes
Admin
yes / no
Stores the user’s admin status.
Company
Retailer
Stores the user registered company.
currentOrder
List of Orders
Stores the list of orders.
Customer
yes / no
Stores the user status as customer.
Full name
text
Stores the user full name.
image
image
Stores the user image.
Last Name
text
Stores the user last name.
mobileNumber
text
Stores the user mobile number.
recentStores
List of Stores
Stores the list of recently visited stores.
Retailer
yes / no
Stores the user status as Retailer.
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
adminRights
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