All blocks

Foundation

Actor stamping

Sets created_by on insert and updated_by on every write from auth.uid(); an update keeps created_by and the impersonation stamp. Service writes keep the values they send.

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

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