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.

335 B
Raw Blame
INSERT INTO "employeeTypePermission" ("employeeTypeId", "module", "view", "create", "update", "delete")
SELECT 
  et.id,
  'Quality',
  ARRAY[et."companyId"],
  ARRAY[et."companyId"],
  ARRAY[et."companyId"],
  ARRAY[et."companyId"]
FROM "employeeType" et
WHERE et.protected = true
ON CONFLICT ("employeeTypeId", "module") DO NOTHING;