Sign Up
Loading...

Database Basics

Twidget offers a comprehensive database solution for all workspaces. Here's an overview of how databases are structured and managed within Twidget:

-

Database Structure

  1. Tables: A database may contain multiple tables. Each table stores data in a structured format.

  2. Fields: Tables consist of fields that you can add or remove according to your needs.

  3. Data Types: Each field has a datatype that dictates the type of data it can store. The available datatypes are:

    • Text

    • Number

    • Boolean

    • Date

    • Object

  4. List Data: Fields can also hold lists of data if specified.

Data Storage

  • Rows: Data is stored in rows within a table. Each row represents an individual data entry.

  • Manual Editing: You can manually edit the data via the web application or through no code commands provided by Twidget.

  • Deletion: Be cautious when deleting data as deletion actions are irreversible. Once data is deleted, it cannot be restored.

Authentication

  • Authentication Table: You can designate a table as an authentication table. This is crucial for authenticating API requests. This table will specifically store user password data to manage secure access.

Related Topics

Database Change Triggers

Run an event automatically when a record is created, updated or deleted in a Twidget table. For example, send a welcome message after adding a customer, or refresh a summary when an order changes. Prepare the event. Create an event containing the steps you want to run. Add an Object input named `tri...

External Database Connections

Read records from an existing external database without copying all of its data into Twidget. Add a connection. 1. Select your workspace and open Settings → Database Connections. 2. Select Add database connection. 3. Choose the provider: PostgreSQL, MySQL, SQL Server or Snowflake. 4. Enter a connect...

Table Relationships

In Twidget, you can connect database table data using the `_id` field that is automatically generated for every row in a table. This `_id` field is essential for creating and maintaining relationships across different tables. Types of Relationships. A one-to-one relationship occurs when a single row...

Database Storage

Managing your database storage effectively is crucial for ensuring optimal performance and cost-efficiency when using Twidget. Each entry within your database table utilizes a certain amount of storage space. Twidget provides intuitive tools to help you monitor and manage this storage. Viewing Datab...

Database Indexes

Indexes help Twidget find records quickly. A unique index also prevents duplicate values from being saved. Choose the right index. Use a lookup index for a field you regularly filter or sort, such as an order date. Use a unique index when a value must not appear twice, such as a membership number. A...