Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
-- supplier.readableId and customer.readableId are filled by a BEFORE INSERT
-- trigger (see migration 20260521120000_supplier-customer-readable-id.sql),
-- so callers don't pass them. Adding DEFAULT '' makes Supabase's type
-- generator mark readableId as optional in the Insert type — the trigger
-- still overrides the empty default with the sequence value before commit.
ALTER TABLE "supplier" ALTER COLUMN "readableId" SET DEFAULT '';
ALTER TABLE "customer" ALTER COLUMN "readableId" SET DEFAULT '';