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

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

Gender

This data type is used to indicate the user's gender and has only 1 field.
  • Name - text - Used to display the gender of the user: male or female.

Invoice

This data type is used to display invoice-related information.
  • Amount - number - Stores the invoice amount.
  • Description - text - Stores the invoice description.
  • Document - file - Stores the file attached to invoice payment request.
  • Issued to - User - Stores the name of the customer to whom invoice is addressed.
  • New Invoice - yes / no - Indicates if the invoice is new or not.
  • New Transaction - yes / no - Indicates if the transaction is new or not.
  • Payment date - date - Stores the payment date.
  • Status - text - Stores the invoice status (paid, pending, received).

Menu

This data type is used to display the menu options icons.
  • Image - image - Stores the image of the unhovered icon.
  • Image_colored - image - Stores the image of the hovered icon.
  • Name - text - Stores the name of the menu category.
  • Order - number - Stores the category order number.

Privacy & Terms

This data type is used to display texts on Privacy and Terms pages.
  • Privacy - text - Stores the text related to the Privacy compartment.
  • Terms - text - Stores the text related to the Terms compartment.

Request

This data type is used to display request-related data types.
  • Body - text - Stores the request body text.
  • Subject - text - Stores the request subject text.
  • Viewed - yes / no - Stores the request view status.

User

This data type is used to display user-related data types.
  • Accessrights - text - Stores the user access rights (the user can be admin, manager, customer).
  • Charge permit - yes / no - Stores the permit to charge bank card. Default value - no.
  • Created by - User - Indicates the user author of the invoice.
  • Default card - number - Stores the number of the bank card used by default.
  • First Name - text - Stores the user's first name.
  • Gender - Gender - Stores user's gender.
  • Last Name - text - Stores the user's last name.
  • Last Seen - date - Indicates the user's last entry date.
  • Location - geographic address - Stores the user's geographic location.
  • Profile Photo - image - Stores the user's profile photo.
  • Requests - List of Requests - Stores the requests sent by the user.

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 option set attributes and options.

Time Chart OS

The option set is used to display filtering options on the income chart.
It comes with one attribute:
  • Display - text​
The options for this set are:
  • Year - Allow displaying data within a year.
  • Month - Allow displaying data within a month.
  • Year - Allow displaying data within a week.