Real Postgres, safe in production.

Your schema is SQL files. Dev changes freely. Production only gets additive changes, rehearsed on a copy, after a snapshot.

The Backend panel's Schema tab: Clinicly's eight tables, each with row-level security on, and the appointment table's columns, types and keysThe Backend panel's Schema tab: Clinicly's eight tables, each with row-level security on, and the appointment table's columns, types and keys
db/schema, db/access, db/queries, db/seeds
SQL files
Two databases that never share rows
Dev and prod
Drops wait for a hold or your go-ahead
Expand-only
Before every production write
Snapshot first

What you get

  • Plain SQL

    Tables, constraints, indexes, views, functions and triggers.

  • Plans you read first

    Every statement, its reason and any hazard, before it runs.

  • Rehearsed on a copy

    A migration runs on a copy of production first.

  • Previews per branch

    push --preview gives a branch its own database and address.

How the database follows your code

db/schema/booking.sql
create table if not exists booking (
  id         uuid primary key default gen_random_uuid(),
  session_id uuid not null references class_session on delete cascade,
  member_id  uuid not null references member_profile
             default (ctx.profile_id('member')),
  status     text not null default 'booked',
  booked_at  timestamptz not null default now(),
  constraint booking_status_known
    check (status in ('booked', 'cancelled', 'attended')));

create index if not exists booking_session on booking (session_id);

-- one live booking per member and class
create unique index if not exists booking_once
  on booking (session_id, member_id) where status = 'booked';

select ctx.lifecycle('booking', 'status',
  $$ booked -> cancelled | attended $$);
Nook, vacation rentals, booked without clashes, on desktop
Nook keeps bookings from clashingOpen Nook

Questions

Is it real Postgres?

Yes. Each project has its own Postgres databases for development and production. Your schema is SQL you write, and you can run SQL, read the full schema and add views, functions and triggers.

What happens to my data when the schema changes?

Releases apply additive changes (new tables, columns and indexes) and keep every row. Drops and tightened constraints wait for a 24-hour hold or your decision, and a snapshot is taken before they run.

Can I see a migration before it runs?

Yes. A check with plan: true lists every statement for dev, and deploy with dry_run shows the production plan: the expand steps, what waits, and whether a snapshot comes first.

Ship it with your agent.

claude mcp add --transport http appbricx https://appbricx.com/api/mcp