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

Bank Account

Bank accounts contain information about the account like account_number, bank_name and type, to show the type of account either current or savings.
It comes with the following fields:
Field Name
Type
bank_logo
image
dwolla_source_link
text
name
text
number_ending
text
plaid_account_id
text
plaid_token
text
sub_type
text
type
text
Adding a bank account is directly linked to the NextBankAccount field from the user object. It determines the spot the bank account will take on the Dwolla customer account. The default value is 1 and when adding a new bank account it will increase by 1, and decrease by 1 when deleting a bank account respectively. This field is used when a Plaid is being created on the account page (see the screenshot below).
Image without caption
Image without caption
Note: Also please note that you can add a maximum of 2 bank accounts to a user using the test keys of Plaid.

Card

Card data contains all the information about a debit or credit card owned by the user, it contains information such as number, (which is the card number), cvv, expiry_date and last4, (which is the last four digits of the card number).
It comes with the following fields:
Field Name
Type
bank
image
brand
text
CVV
number
expiry_date
text
expiry_month
text
expiry_year
text
last4
text
number
text

Transaction

Transaction data contains all the information about users transactions, it contains information such as amount, (i.e the amount of the transaction), date, id, status, type, user, (i.e the specific user that carried out the transaction.
It comes with the following fields:
Field Name
Type
amount
number
date
date
id
text
reference
text
status
text
type
text
user
User

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. To learn more, see the Bubble manual.
Users are the walletly account holders who use the platform to make transactions and withdraw money. This also stores the admin's information.
They store the usual profile info (photo, Name, EmailAddress, Username), logintimestamp to store when last the user logged in, balance, to show the user's current account balance, bank_accounts, to show a list of all the bank accounts the user owns, cards, to show the user's list of cards, transactions, to show them a list of transactions carried out by the user, admin field to show whether or not the user is an admin.
It comes with the following fields:
Field Name
Type
balance
number
bank_accounts
List of Bank Accounts
cards
List of Cards
dwolla_customer_link
text
first_name
text
is_admin
yes / no
last_name
text
logintimestamp
date
NextBankAccount
number
photo
image
received
number
sent
number
transactions
transactions
user_name
text
withdrawn
number
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

Helpful?