SQL · Schema · RLS · Logs

The panel /Rebase Studio

Run your database
from the same panel.

A SQL console, the row-level-security policy editor, a schema diagram, database branches, cron and logs. Studio is the developer workspace. It registers inside the same panel as CMS and runs against the same Postgres your API serves.

Code-as-Config

Tables are code

Tables are TypeScript: a defineTable call in backend/schema/. The SQL, the policies, the API and the panel's defaults all come from that one file, so there is no second model to keep in sync.

  • Tables, columns and relations declared with defineTable in backend/schema/
  • Access rules live on the table; labels and views live in frontend/src/cms/
  • Zod schema generation for runtime validation
backend/schema
orders.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { defineTable, col } from "@rebasepro/server/schema";

export const orders = defineTable("orders", {
  columns: {
    id:       col.uuid().primaryKey().defaultRandom(),
    customer: col.text().notNull(),
    total:    col.numeric({ precision: 10, scale: 2 }),
    status:   col.enum(["pending", "shipped",
                       "delivered"]),
  },
  rls: [/* ... */],
  hooks: { afterSave: /* ... */ },
  history: true,
});

A change to this file is a diff in a pull request, reviewed like any other.

When the UI runs out, you are already in SQL.

Multiple tabs, autocomplete against your real schema, EXPLAIN, and results you can edit in place — running against your own Postgres, under the same row-level security as everything else.

iduuid
·titletext
·statustext
·author_iduuid
·created_attimestamptz
·contenttext
rebase_main
1
2
3
4
5
6
7
8
9
10
SELECT
  p.title,
  p.status,
  u.display_name AS author,
  COUNT(c.id) AS comments
FROM posts p
JOIN users u ON p.author_id = u.id
LEFT JOIN comments c ON c.post_id = p.id
GROUP BY p.id, u.id
LIMIT 5;
QUERY RESULTS
✓ 5 rows · 12mspublic.posts
title
status
author
comments
Getting Started with Rebase
published
Alice Chen
24
Schema Migrations Guide
published
Bob Park
18
Custom Views Tutorial
draft
Alice Chen
7
RLS Best Practices
published
Eve Müller
31
REST API Deep Dive
draft
Bob Park
3
ROWS5
TIME12ms

The rest of the toolbox

Every Studio tool ships with a scaffolded project and runs against your own database. Nothing here is a hosted service.

Row Level Security
role === 'admin'ALL
role === 'editor'SELECT, UPDATE
public
DENIED

Row-level security

Define granular permissions per role, per table — enforced natively in PostgreSQL.

Schema visualizer
users
orders
products
tags

Schema visualizer

Interactive ERD showing tables, columns, and relationships in a visual diagram.

Database branches
mainactive
feat/auth2h ago
staging1d ago

Database branches

Copy the whole database — schema, rows, policies — and switch your project onto it. When you are done, review what the branch changed, schema and rows side by side, then merge it back or delete it.

JS Console
const sdk = rebase();
const users = await sdk
.table("users")
.find({ role: "admin" });
// → 3 results

JS Console

Run JavaScript with the Rebase SDK in a live sandbox. Test queries and automate tasks.

Cron jobs
daily-cleanup0 3 * * *
sync-emails*/15 * * * *
gen-reports0 8 * * 1

Cron jobs

Monitor and manage scheduled background tasks. View logs, status, and run history.

API explorer
GET/api/data/users
POST/api/data/orders
PUT/api/data/users/:id

API explorer

Interactive API documentation with live request testing. Browse and try every endpoint.

Logs explorer
INFOGET /api/data/orders12ms
WARNseq scan on orders840ms
INFOPOST /api/auth/login31ms

Logs explorer

System and query logs, streamed live. Filter by level, follow a slow query back to the statement that ran it.

Storage
▸avatars/1,204 files
▸invoices/318 files
◦logo-v2.svg14 KB

Storage

Browse, upload and move files across every storage source your project declares — the same buckets your API writes to.

Backups
2026-08-27 03:00412 MB
2026-08-26 03:00409 MB
2026-08-25 03:00406 MB

Backups

Browse and download every snapshot the scheduler has taken, with the size and age of each.

API keys
▪ci-deploywrite
▪agent-readonlyread
▪legacy-importrevoked

API keys

Issue scoped service keys for agents and server-to-server calls, and revoke one without touching the others.

Get started

Run your database from the panel.

Scaffold a project and Studio comes with it: SQL console, schema visualizer, RLS policy editor, branches, cron, storage and logs — against your own Postgres.

No account · No Docker · Built-in local Postgres · MIT