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 an optional upper bound to approval rules. With both bounds set,
-- a rule represents a half-open range [lowerBoundAmount, upperBoundAmount).
-- NULL upperBoundAmount preserves today's "unbounded above" behavior, so
-- existing rules continue working without backfill.
ALTER TABLE "approvalRule"
ADD COLUMN "upperBoundAmount" NUMERIC,
ADD CONSTRAINT "approvalRule_upperBoundAmount_check"
CHECK (
"upperBoundAmount" IS NULL
OR "upperBoundAmount" > "lowerBoundAmount"
);