Database
Database is Runtara’s built-in store for the business records your workflows use and produce: suppliers, products, orders, price lists, lookup tables, decisions. You define an object type (a table with typed columns), and Runtara creates and manages the PostgreSQL table behind it.
Workflows read and write these records with Object Model steps, and your team can review and correct them in the grid.
Database is a plan feature. If it is not part of your plan, the sidebar item is hidden and Database pages show Feature not enabled.

Database connections
Every Database page has a Database connection button in the top right. Object types belong to the selected PostgreSQL connection; the default one is marked (default).
A new installation uses Default Object Model Database and you can ignore the picker. To keep object types in another PostgreSQL database, create a PostgreSQL Database connection, tick Object Model under Defaults if it should be the default, and select it here. See Connections.
Object types
Open Database in the sidebar to see the object types for the selected connection, with their number of fields, description, and last update. Each row has three buttons: Manage instances opens the records, Edit object type opens the definition, and Delete object type removes it.
Create an object type
- Select Create object type.
- Under Basic Information, enter:
- Schema Name: the name workflows use, for example
Supplier. Letters, numbers, and underscores; it must start with a letter. - Table Name: filled in for you from the schema name (
Supplierbecomessuppliers). Change it only if you need a specific table name. - Description: what the records are, for your team.
- Schema Name: the name workflows use, for example
- Under Columns, select Add your first column, then Add column for each further field. For each column set:
- Name: lowercase with underscores, for example
lead_time_days. - Data Type: see the table below.
- Req: every record must have a value.
- Uniq: no two records may share a value.
- Default: the value used when none is given, as a SQL expression, for example
0,false,'active', orNOW().
- Name: lowercase with underscores, for example
- Check the SQL Preview at the bottom: it shows the table that will be created.
- Select Create schema.
The schema name and table name cannot be changed after creation.

Data types
| Data type | Stores | Options (gear icon) |
|---|---|---|
| String | Text of any length. | |
| Integer | Whole numbers. | |
| Decimal | Exact numbers such as money or ratings. | Precision (total digits, default 19) and Scale (decimal places, default 4). |
| Boolean | True or false. | |
| Timestamp | A date and time, stored in UTC. | |
| JSON | Structured data such as order lines. | |
| Enum | One of a fixed list of values, such as active, on_hold, inactive. |
Enum Values: type a value and press Enter. |
| Text Search | A full-text search index built from a String or Enum column. Read-only and hidden in the grid. | Source Column and Language. |
| Vector | Embeddings for similarity search. | Dimensions (default 1536) and Index: None, HNSW, or IVFFlat. |
Every record also gets an ID, Created At, and Updated At automatically.
Change an object type
Open Edit object type, change the description or columns, and select Save changes.
- Renaming a column keeps its data.
- Removing a column deletes its data. Runtara lists the affected columns and asks you to confirm.
- Delete removes the object type after a confirmation. Workflow steps that read or write it fail afterwards, so check which workflows use it first.
Records
Select Manage instances on an object type to work with its records.

The grid works like a spreadsheet:
- Edit in place. Select a cell and type. Enter commits, Esc cancels. The row saves when you leave it.
- Add a record. Select + Add row at the bottom. The new row is marked Draft until it is saved.
- Sort. Select a column header. Sorting runs on the server across all records, not only the visible page.
- Copy an ID. Select a record’s ID.
- Page. Show 10, 20, 50, or 100 records per page.
- Select records with the checkboxes to Edit a field on all of them at once or Delete them. Delete or Backspace also deletes the selection, after a confirmation.
Filter records
Select the filter button in the toolbar, then Add Filter Condition. Pick a field, an operator, and a value. Operators include equals, not equals, greater and less than, in list, not in list, contains, is empty, is not empty, and is defined. Combine conditions with AND, OR, and NOT, and use Convert to nested condition for groups. The badge on the filter button counts active conditions; Clear all removes them.

Import, export, and bulk insert
- Export downloads the records as a CSV file, using the current filter and sort, including ID and timestamps.
- Import loads a CSV file in three steps:
- Choose the file.
- Map each CSV Column to a Schema Column, or Skip it, and check the Sample Data. Choose an Import Mode: Create inserts new rows only; Upsert inserts new rows and updates existing ones matched on the columns you choose under Match by. Tick Skip invalid rows to import the valid rows and get a list of the rest, instead of stopping on the first error.
- Review the result: how many rows were imported and skipped, and any Validation Errors by row and column.
- Bulk insert takes a JSON array of records. Choose what happens On conflict (error, skip existing, or upsert on the conflict columns you tick) and On validation error (stop on the first error, or skip failed rows).

Use records in workflows
Add an Agent step with the Object Model agent, pick a capability, and choose the Database connection for the step. Object Model steps must name their connection; saving a workflow with one that does not is rejected (E026).
| Capability | Use it to |
|---|---|
| Create instance | Add one record. |
| Create if not exists | Add a record only when no matching record exists, so retries never create duplicates. |
| Query instances | Read records with filters, sorting, and paging. |
| Check instance exists | Test whether a matching record exists. |
| Update instance / Delete instance | Change or remove one record. |
| Bulk create / Bulk update / Bulk delete instances | Change many records in one transaction. |
| Query aggregate | Count, sum, minimum, maximum, first and last value, grouped by fields. |
| Query SQL | Run one read-only SQL statement, for reports and joins. |
| Execute SQL | Run one SQL write statement. |
| Load memory / Save memory | Keep an AI agent’s conversation history between runs. |
For example, the Purchase order approval workflow ends with a Create instance step that writes the order and its decision to PurchaseOrder. Its rows appear in the grid as soon as the run finishes.