All blocks

Foundation

Profiles

A profile per user, created on sign-up from auth metadata with a unique username, an email mirror, column-level update grants and a guard on columns the service owns.

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

export default defineConfig({
  sql: {
    modules: {
      // Modes: "managed", "adopt", "custom". The default is "managed".
      profiles: { mode: "managed" },
    },
  },
});