Tables workspace
Open Databases → Tables to search the currently configured Tables by name, category, or description. Select a Table to keep the data grid visible while its side panel exposes:- Details — stable name, category, description, and lifecycle;
- Metadata — bounded customer-owned JSON labels;
- Partitions — logical parent and LIST, RANGE, HASH, or default partition boundaries;
- Size — total, row data, indexes, and audit allocation;
- Definition — ordered column definitions;
- Audit — future row-change capture;
- Restricted — named users and Groups permitted to access the Table.
A practical orders definition
For a typical order workflow, start with an immutable UUID primary key, a queryable status, and an explicitly time-zoned business timestamp. Add a provider reference only when it is the idempotency proof for an external side effect. The goal is not to represent every possible field; it is to make the few invariants the rest of the platform can trust.
Table fields
Field types
Field definition
Every field supplies the following shape:
Select a row in Definition to open the column panel. The UI keeps primary-key rules explicit: an array cannot be a primary key, and nullable, unique, index, and collection controls apply only where the field is not the primary key. Column metadata is edited independently from the Table’s own metadata.
Foreign references
One reference group contains one or more mappings plus actions for updates and deletes:onUpdate accepts none, cascade, or restrict. onDelete accepts none, cascade, restrict, default, or null. Select cascade only when deleting or changing a parent must intentionally change every dependent record.
Query and index design
Start with one primary key and indexes justified by observed filters, joins, sorting, or materialized-view refreshes. Do not index every field. Composite and predicate index definitions, where supported by the specific data surface, use structured fields rather than raw SQL: supported access methods arebtree, hash, gist, spgist, gin, and brin; predicates use typed operators such as eq, gte, in, and isnull.
Use a View or Materialized View for a reusable multi-table read model. A View’s output fields are derived from its saved query; changing source field names can therefore be an application breaking change.
Partition large Tables deliberately
Partitioning is a physical scale and lifecycle decision, not a replacement for normal indexes. Create a logical parent, choose a supported partition key, then add child partitions:
The partition key and audit policy are inherited from the logical parent. A child partition cannot redefine them independently. Plan non-overlapping ranges/list values and create the next time partition before traffic reaches its boundary.
Operate records
The data surface supports bounded reads, field projection, typed filters, sorting, inserts, updates, deletes, and bulk mutations. Schema validation runs before a supported write reaches the Table. Primary keys, uniqueness, nullability, references, and types can still reject a request even when the caller is authorized. Use Export for a governed CSV, TSV, NDJSON or XLSX artifact in Storage, Clone for a copy of the definition with optional data and partitions, and Truncate only for administrative bulk removal. REST clone starts a background task; low-code waits by default and supports an explicit asynchronous mode. Truncate preserves identity counters unless explicitly told to restart them and never emits row-level audit events.Production review
- Choose
UUIDor a consciously sized integer key before data is inserted. - Keep timestamps in a documented time-zone convention.
- Enable audit before regulated changes begin.
- Validate data at Endpoint boundaries; constraints are the last line of defense, not client feedback.
- Review foreign-reference delete behavior with a real dependency graph.
- Use query traces and actual filters before adding indexes.
Related guides
- Low-code Database API
- Database operations
- Database Audit
- Database Views
- Materialized Views
- Traces and correlation
Follow a schema change to completion
Table and partition creation, definition changes and index changes run as durable Database Operations. An accepted change continues if the client disconnects. The current definition and version stay authoritative until the physical change is verified and committed; the requested definition stays with its operation while work is pending. Platform API callers can request a short acceptance response withasync=true on the Table create or update operation. Send a caller-generated UUID in the Idempotency-Key header. HTTP 202 returns { "accepted": true, "jobId": "…", "status": "PENDING" }. Poll the corresponding Database Operation until FINISHED, then read back the Table before deploying a dependent View, Component or application. Without async=true, the API waits and returns the completed Table as before.
If a response is lost, retry the same body, target and base version with the same key. Do not refresh the optimistic version or create a second operation merely because an HTTP call timed out. A different change needs a new key. A failed operation with a confirmed rollback leaves the earlier schema intact; an uncertain connection outcome remains recoverable until its transaction is resolved. Inspect Operations rather than assuming that a timeout means failure. If physical columns, their types or index readiness no longer match the accepted base, the operation pauses with ACTION_REQUIRED and keeps the schema reservation. Reconcile that physical state before retrying the same operation; it will check the pinned base again.
Schema changes to the same Table or partition tree are serialized. Ordinary reads and writes are not blocked by the operation reservation, but the database change itself can take locks: standard index builds can block writes, and a heavy ALTER TABLE can require stronger locks. Queued schema work can be cancelled. Running DDL must finish or roll back before the reservation is released; lease expiry alone does not make it safe to cancel or start another builder.
CLI 1.0.33 or newer, paired with Platform 1.7.0, normally waits for completion and verified readback. For one Table, revo database-tables push '<stableKey>' --yes --async --json returns acceptance and leaves the deployment baseline unchanged. Inspect the returned operation, then rerun normal push after completion to verify and reconcile that baseline. Full deploy always waits for schema readiness before dependent resources. Low-code schema helpers also wait for durable completion outside an explicit caller transaction; an explicit update transaction keeps its existing synchronous atomic boundary and transaction budget.
