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 JSONB flags column to the user table for extensible boolean preferences
ALTER TABLE "user" ADD COLUMN "flags" JSONB NOT NULL DEFAULT '{}';
-- Migrate existing acknowledgedUniversity into the new flags column
UPDATE "user"
SET "flags" = jsonb_set("flags", '{academy}', 'true')
WHERE "acknowledgedUniversity" = true;
-- Drop the legacy column now that data lives in flags
ALTER TABLE "user" DROP COLUMN "acknowledgedUniversity";