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
-- "size" must always be the customer's AS-UPLOADED bytes: it feeds every
-- "modelSize" view/RPC and the file lists, which display the customer's file.
-- Compaction used to rewrite it to the internal ".xbf.zst"/".zst" artifact's
-- size (the compact job no longer does); restore the frozen original bytes on
-- rows that were rewritten.
UPDATE "modelUpload"
SET "size" = "originalSize"
WHERE "originalSize" IS NOT NULL
AND "size" IS DISTINCT FROM "originalSize";