All blocks

Foundation

Subjects

The app-wide subject registry from config.subjects: subject_title, subject_url, can_subject and can_subject_for for every registered type.

DocsModes:managedcustom
terminal
npx better-supabase sql add subjects
better-supabase.config.ts
import { defineConfig } from "better-supabase/config";

export default defineConfig({
  sql: {
    modules: {
      // Required by subjects; sql add installs them too.
      "updated-at": {},
      tenant: {},
      access: {},
      // Modes: "managed", "custom". The default is "managed".
      subjects: { mode: "managed" },
    },
  },
});