Skip to content

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.

322 B
Raw Blame
-- Backfill: create Asset Class dimension for every company group
INSERT INTO "dimension" ("name", "entityType", "companyGroupId", "createdBy")
SELECT 'Asset Class', 'FixedAssetClass'::"dimensionEntityType", cg."id", 'system'
FROM "companyGroup" cg
ON CONFLICT ("name", "companyGroupId") WHERE "active" = true DO NOTHING;