Skip to content
All blocks

Blocks

Screens built from blocks

The Ocean app

Ocean Base console

Ocean Base console

Schema

The tables, columns and indexes the YAML declares.

Schema

Version 3. One YAML is the only way the database's shape changes.

Plan

#ChangeSQL
1add column leads.tierALTER TABLE "leads" ADD COLUMN "tier" TEXT
2drop column leads.notesALTER TABLE "leads" DROP COLUMN "notes"destructive

Change

Applied YAML

kind: database
name: leads
residency: eu
collections:
  leads:
    access: owner
    columns:
      name: text required
      email: text unique
      status: text = new
      score: integer
      owner: user
    indexes: [status]
  pages:
    kind: documents
    access: public-read
  settings:
    kind: kv
files: true
auth:
  methods: [email, anonymous]
  redirects: [https://app.example.com/auth/callback]
channels: [lobby, "room:*"]

Search

esc

Components

Blocks

Screens built from blocks

The Ocean app

Ocean Base console