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
DROP VIEW IF EXISTS "jobMaterialWithMakeMethodId";
CREATE OR REPLACE VIEW "jobMaterialWithMakeMethodId" WITH(SECURITY_INVOKER=true) AS
SELECT
jm.*,
jmm."id" AS "jobMaterialMakeMethodId",
jmm.version AS "version",
i."readableIdWithRevision" as "itemReadableId",
i."readableId" as "itemReadableIdWithoutRevision"
FROM "jobMaterial" jm
LEFT JOIN "jobMakeMethod" jmm
ON jmm."parentMaterialId" = jm."id"
INNER JOIN "item" i ON i.id = jm."itemId";