All blocks

Work

Custom fields

Field definitions, options and typed values. A sensitive value is readable only with the field's permission. Inline layout stores the definition on the value row.

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

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