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 index on job table for salesOrderLineId
CREATE INDEX IF NOT EXISTS idx_job_sales_order_line_id ON "job" ("salesOrderLineId");
ALTER TABLE "itemReplenishment"
DROP CONSTRAINT IF EXISTS "itemReplenishment_pkey";
ALTER TABLE "itemReplenishment"
ADD CONSTRAINT "itemReplenishment_pkey" PRIMARY KEY ("itemId");
UPDATE "itemReplenishment" SET
"lotSize" = COALESCE("lotSize", 0);
ALTER TABLE "itemReplenishment"
ALTER COLUMN "lotSize" SET DEFAULT 0;