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 POLICY IF EXISTS "ALL" ON "public"."apiKey";
CREATE POLICY "SELECT" ON "public"."apiKey"
FOR SELECT USING (
"companyId" = ANY (
(SELECT get_companies_with_employee_permission('settings_view'))::text[]
)
);
CREATE POLICY "INSERT" ON "public"."apiKey"
FOR INSERT WITH CHECK (
"companyId" = ANY (
(SELECT get_companies_with_employee_permission('settings_create'))::text[]
)
);
CREATE POLICY "UPDATE" ON "public"."apiKey"
FOR UPDATE USING (
"companyId" = ANY (
(SELECT get_companies_with_employee_permission('settings_update'))::text[]
)
);
CREATE POLICY "DELETE" ON "public"."apiKey"
FOR DELETE USING (
"companyId" = ANY (
(SELECT get_companies_with_employee_permission('settings_delete'))::text[]
)
);