Database
Manage databases, design schemas, and edit data visually.
Database is a no-code visual editor for working with data.
Overview
The Database module provides:
- Create and manage database tables
- Visually design schemas (tables, columns, relationships)
- Edit data directly through the interface
- Import data from external sources
Database Management
Accessing Database
- Select Database from the main menu
- The Tables tab opens
Viewing Tables
The Tables tab displays all tables in the database:
- Table name: Name of the table
- Description: Brief description of the table's purpose
- Record count: Number of rows in the table
- Created date: When the table was created
Creating a Table
Option 1: Via Database page
- Click New Table or +
- Enter the table name
- Add a description (optional)
- Click Create
Option 2: Via Schema Editor
- Open Schema Editor
- Create the table visually (see Schema Editor section)
Editing a Table
- Find the table in the list
- Click the edit icon (pencil)
- Change the name or description
- Save changes
Deleting a Table
- Find the table in the list
- Click the delete icon (trash)
- Confirm deletion
Deleting a table removes all data in it. This action is irreversible.
Importing Data
- Click the Import button on the Database page
- Select the data source:
- CSV file
- JSON file
- SQL dump
- Configure import parameters:
- Target table (new or existing)
- Column mapping
- Duplicate handling
- Click Import
Schema Editor
Schema Editor is a visual tool for designing database structure.
Accessing Schema Editor
- Select Schema Editor from the Database menu
- The visual editor opens with a canvas
Interface
Canvas:
- Central area for working with the schema
- Tables appear as nodes
- Relationships appear as lines between nodes
Toolbar:
- Tools for adding tables
- Display controls
- Export/import schema
Creating a Table
- Click Add Table or + on the toolbar
- Click on the canvas where you want to place the table
- Enter the table name
- The table appears on the canvas
Adding Columns
- Select a table on the canvas
- The table editor opens in the right panel
- Click Add Column or +
- Configure the column:
- Name: Column name
- Type: Data type (String, Number, Boolean, Date, etc.)
- Constraints: Restrictions (NOT NULL, UNIQUE, PRIMARY KEY)
- Default Value: Default value
Data types:
String/Text: Text dataNumber/Integer: Numeric dataBoolean: true/falseDate/DateTime: Dates and timesJSON: JSON objectsUUID: Unique identifiers
Constraints:
- Primary Key: Unique row identifier
- Not Null: Field cannot be empty
- Unique: Value must be unique
- Foreign Key: Reference to another table
Creating Relationships
Relationship types:
- One-to-One (1:1): One record links to one record
- One-to-Many (1:N): One record links to many
- Many-to-Many (N:M): Many records link to many
How to create:
- Select a column in the first table
- Drag a connection to a column in the second table
- Configure the relationship type
- Specify delete actions (CASCADE, SET NULL, RESTRICT)
Canvas Navigation
- Zoom: Mouse wheel or +/- buttons
- Pan: Hold spacebar and drag
- Select: Click on a table
- Reset view: "Fit View" button to center
Exporting Schema
- Click Export on the toolbar
- Choose format:
- SQL (CREATE TABLE statements)
- JSON (schema definition)
- GraphQL (types)
- Copy or save the file
Data Editor
Data Editor allows viewing and editing table data directly.
Accessing Data Editor
- Click on a table in the Database list
- Data Editor opens for that table
Interface
Left panel:
- Table list for quick switching
Center area:
- Data grid view
- Columns match table fields
- Rows match records
Top panel:
- Action buttons (Add, Delete, Import)
- Search and filters
- Pagination
Viewing Data
- Scroll: Navigate through records
- Sort: Click column header to sort
- Resize columns: Drag the border between headers
Adding a Record
- Click Add Row or +
- Fill in the fields:
- Required fields are marked with an asterisk (*)
- For Foreign Key fields, select from the list
- Click Save
Editing a Record
Option 1: Inline editing
- Double-click on a cell
- Change the value
- Press Enter to save
Option 2: Edit form
- Select the row
- Click Edit or double-click the row
- Modify data in the form
- Click Save
Deleting a Record
- Select the row(s)
- Click Delete or press Delete key
- Confirm deletion
Deleting records may break relationships with other tables. Check Foreign Key constraints.
Search and Filtering
Search:
- Enter a query in the search field
- Search runs across all text fields
- Results display dynamically
Filtering:
- Click the filter icon in the column header
- Configure the filter condition:
- Equals / Not equals
- Contains / Does not contain
- Greater than / Less than (for numbers and dates)
- Apply the filter
Multiple filters can be applied simultaneously (combined with AND logic).
Best Practices
Schema Design
- Use Primary Keys: Every table should have a unique identifier
- Normalize data: Avoid duplication, use relationships
- Clear naming: Use descriptive names for tables and columns
- Correct types: Choose appropriate data types for columns
Data Management
- Backups: Export data regularly
- Validation: Use constraints to ensure integrity
- Batch operations: Use import for large volumes instead of manual entry
- Careful with CASCADE: Use CASCADE DELETE only when certain
Performance
- Pagination: Use pagination for large tables
- Filtering: Filter data instead of loading everything