All blocks

Work

Tags

Tenant tags with a kind, and a link from a tag to a subject. Adopt mode can use one link table per subject.

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

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