All blocks

Billing & commerce

Inventory

Stock per catalog variant and location: an append-only movement ledger, reservations with expiry, transfers and purchase orders with partial receiving.

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

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