Tables & migrations
Manage schema from the table editor, SQL editor, or versioned migrations.
Table editor
Create tables and columns visually. Use the schema panel under a table for indexes, foreign keys, unique constraints, and RLS policies.
Schema Visualizer
Dashboard → Schema: an ERD of your project tables, columns, and foreign keys. Find a table, auto-layout the graph, or copy CREATE TABLE SQL. It reads the same table metadata as the editor — no separate schema API.
SQL editor
Run a single statement against your project schema. History keeps the last successful queries. Blocked: DROP DATABASE, DROP SCHEMA, TRUNCATE.
Migrations
Dashboard → Migrations: name a change, paste SQL, apply. Voltbase stores version, checksum, and history. Failed applies do not bump the version.
query.sql
CREATE TABLE notes (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
body TEXT NOT NULL,
created_at TIMESTAMPTZ NOT NULL DEFAULT now()
);Prefer migrations for anything you want reproducible across staging and production.