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
-- Add a "Cancelled" terminal status to change orders so a CO can be closed
-- (abandoned before release) from any open stage and later reopened to Draft.
-- Mirrors the job lifecycle (Cancel -> Cancelled -> Reopen). Appended at the end
-- of the enum; ADD VALUE IF NOT EXISTS is idempotent across retries / DB resets.
ALTER TYPE "changeOrderStatus" ADD VALUE IF NOT EXISTS 'Cancelled';