{
    "database": "rusukh_demo",
    "generatedAt": "2026-09-05T22:50:18+05:00",
    "roles": [
        {
            "name": "super_admin",
            "permissionCount": 272,
            "permissions": [
                "analytics.dashboard.customize",
                "analytics.dashboard.view",
                "analytics.dashboard.view-executive",
                "analytics.kpi.manage",
                "analytics.report.create",
                "analytics.report.export",
                "analytics.report.view",
                "approvals.decide.approve",
                "approvals.decide.delegate",
                "approvals.decide.reject",
                "approvals.request.cancel",
                "approvals.request.create",
                "approvals.request.view",
                "approvals.threshold.manage",
                "approvals.workflow.manage",
                "audit.activity.view",
                "audit.checklist.complete",
                "audit.checklist.manage",
                "audit.checklist.view",
                "audit.checklist.view-all",
                "audit.escalation.acknowledge",
                "audit.escalation.assign",
                "audit.escalation.close",
                "audit.escalation.create",
                "audit.escalation.resolve",
                "audit.escalation.view",
                "audit.exception.record",
                "audit.exception.resolve",
                "audit.exception.view",
                "audit.impersonation.view",
                "audit.login.view",
                "audit.trail.export",
                "audit.trail.view",
                "catalog.accessory.manage",
                "catalog.accessory.view",
                "catalog.category.create",
                "catalog.category.delete",
                "catalog.category.update",
                "catalog.category.view",
                "catalog.option.manage",
                "catalog.option.view",
                "catalog.product.create",
                "catalog.product.delete",
                "catalog.product.publish",
                "catalog.product.set-price",
                "catalog.product.update",
                "catalog.product.view",
                "commission.clawback.create",
                "commission.clawback.view",
                "commission.entry.adjust",
                "commission.entry.mature",
                "commission.entry.view",
                "commission.entry.view-own",
                "commission.payout.approve",
                "commission.payout.create",
                "commission.payout.view",
                "commission.rule.manage",
                "commission.rule.view",
                "commission.wallet.view",
                "core.feature-flag.manage",
                "core.geography.manage",
                "core.geography.view",
                "core.media.manage",
                "core.setting.update",
                "core.setting.view",
                "crm.appointment.assign",
                "crm.appointment.cancel",
                "crm.appointment.complete",
                "crm.appointment.confirm",
                "crm.appointment.create",
                "crm.appointment.update",
                "crm.appointment.view",
                "crm.complaint.assign",
                "crm.complaint.create",
                "crm.complaint.resolve",
                "crm.complaint.view",
                "crm.customer.blacklist",
                "crm.customer.create",
                "crm.customer.delete",
                "crm.customer.export",
                "crm.customer.restore",
                "crm.customer.update",
                "crm.customer.view",
                "crm.customer.view-pii",
                "crm.feedback.record",
                "crm.feedback.view",
                "crm.follow-up.manage",
                "crm.lead.assign",
                "crm.lead.convert",
                "crm.lead.create",
                "crm.lead.delete",
                "crm.lead.qualify",
                "crm.lead.update",
                "crm.lead.view",
                "crm.route.assign",
                "crm.route.plan",
                "crm.route.view",
                "finance.account.manage",
                "finance.account.view",
                "finance.closing.approve",
                "finance.closing.perform",
                "finance.closing.view",
                "finance.expense.approve",
                "finance.expense.create",
                "finance.expense.delete",
                "finance.expense.view",
                "finance.journal.post",
                "finance.journal.reverse",
                "finance.journal.view",
                "finance.payable.settle",
                "finance.payable.view",
                "finance.period.lock",
                "finance.period.unlock",
                "finance.period.view",
                "finance.profitability.view",
                "finance.receivable.view",
                "finance.report.export",
                "finance.report.view",
                "gates.bypass",
                "gates.evidence.view",
                "identity.impersonate.customer",
                "identity.impersonate.user",
                "identity.impersonate.write",
                "identity.role.create",
                "identity.role.delete",
                "identity.role.update",
                "identity.role.view",
                "identity.team.assign-members",
                "identity.team.create",
                "identity.team.delete",
                "identity.team.update",
                "identity.team.view",
                "identity.user.activate",
                "identity.user.assign-role",
                "identity.user.create",
                "identity.user.delete",
                "identity.user.reset-password",
                "identity.user.restore",
                "identity.user.set-capacity",
                "identity.user.update",
                "identity.user.view",
                "inventory.count.approve",
                "inventory.count.perform",
                "inventory.count.view",
                "inventory.customer-fabric.manage",
                "inventory.issue.create",
                "inventory.issue.return",
                "inventory.issue.view",
                "inventory.purchase.approve",
                "inventory.purchase.inspect",
                "inventory.purchase.order",
                "inventory.purchase.receive",
                "inventory.purchase.request",
                "inventory.purchase.view",
                "inventory.stock.adjust",
                "inventory.stock.allocate",
                "inventory.stock.reserve",
                "inventory.stock.view",
                "inventory.supplier.manage",
                "inventory.supplier.view",
                "measurements.profile.approve",
                "measurements.profile.create",
                "measurements.profile.update",
                "measurements.profile.view",
                "measurements.profile.view-history",
                "measurements.reference-garment.record",
                "measurements.reference-garment.return",
                "measurements.reference-garment.view",
                "measurements.template.manage",
                "notifications.log.view",
                "notifications.resend",
                "notifications.template.manage",
                "notifications.template.view",
                "orders.approval.invalidate",
                "orders.approval.record",
                "orders.approval.view",
                "orders.cancellation.approve",
                "orders.cancellation.request",
                "orders.cancellation.view",
                "orders.charge.add",
                "orders.discount.apply",
                "orders.discount.approve",
                "orders.item.transition",
                "orders.item.update-spec",
                "orders.order.assign",
                "orders.order.close",
                "orders.order.confirm",
                "orders.order.create",
                "orders.order.delete",
                "orders.order.hold",
                "orders.order.reopen",
                "orders.order.transition",
                "orders.order.update",
                "orders.order.view",
                "orders.quotation.approve",
                "orders.quotation.create",
                "orders.quotation.send",
                "orders.quotation.update",
                "orders.quotation.view",
                "payments.gateway.manage",
                "payments.payment.delete",
                "payments.payment.initiate",
                "payments.payment.record",
                "payments.payment.update",
                "payments.payment.view",
                "payments.receipt.issue",
                "payments.refund.approve",
                "payments.refund.process",
                "payments.refund.request",
                "payments.refund.view",
                "payments.verify.bank-transfer",
                "production.accessory.consume",
                "production.alteration.assess",
                "production.alteration.complete",
                "production.alteration.create",
                "production.alteration.view",
                "production.assignment.manage",
                "production.cutting.complete",
                "production.cutting.record-leftover",
                "production.cutting.start",
                "production.cutting.view",
                "production.file.create",
                "production.file.release",
                "production.file.review",
                "production.file.view",
                "production.finishing.complete",
                "production.finishing.view",
                "production.handover.issue",
                "production.handover.receive",
                "production.handover.view",
                "production.job-card.view",
                "production.job-card.view-own",
                "production.packing.pack",
                "production.packing.release",
                "production.packing.seal",
                "production.packing.verify",
                "production.packing.view",
                "production.qc.approve",
                "production.qc.inspect",
                "production.qc.record-defect",
                "production.qc.reject",
                "production.qc.view",
                "production.remake.approve",
                "production.remake.request",
                "production.schedule.manage",
                "production.schedule.view",
                "production.tailoring.complete",
                "production.tailoring.record-check",
                "production.tailoring.start",
                "production.tailoring.view",
                "shipping.cash.collect",
                "shipping.cash.handover",
                "shipping.cash.reconcile",
                "shipping.delivery.attempt",
                "shipping.delivery.complete",
                "shipping.delivery.fail",
                "shipping.delivery.record-proof",
                "shipping.delivery.view",
                "shipping.manifest.view",
                "shipping.shipment.assign",
                "shipping.shipment.create",
                "shipping.shipment.dispatch",
                "shipping.shipment.view",
                "shipping.zone.manage",
                "shipping.zone.view",
                "system.backup.manage",
                "system.force-delete",
                "system.health.view",
                "system.queue.manage",
                "system.unlock",
                "system.view-all",
                "team.view-subtree"
            ]
        },
        {
            "name": "management",
            "permissionCount": 270,
            "permissions": [
                "analytics.dashboard.customize",
                "analytics.dashboard.view",
                "analytics.dashboard.view-executive",
                "analytics.kpi.manage",
                "analytics.report.create",
                "analytics.report.export",
                "analytics.report.view",
                "approvals.decide.approve",
                "approvals.decide.delegate",
                "approvals.decide.reject",
                "approvals.request.cancel",
                "approvals.request.create",
                "approvals.request.view",
                "approvals.threshold.manage",
                "approvals.workflow.manage",
                "audit.activity.view",
                "audit.checklist.complete",
                "audit.checklist.manage",
                "audit.checklist.view",
                "audit.checklist.view-all",
                "audit.escalation.acknowledge",
                "audit.escalation.assign",
                "audit.escalation.close",
                "audit.escalation.create",
                "audit.escalation.resolve",
                "audit.escalation.view",
                "audit.exception.record",
                "audit.exception.resolve",
                "audit.exception.view",
                "audit.impersonation.view",
                "audit.login.view",
                "audit.trail.export",
                "audit.trail.view",
                "catalog.accessory.manage",
                "catalog.accessory.view",
                "catalog.category.create",
                "catalog.category.delete",
                "catalog.category.update",
                "catalog.category.view",
                "catalog.option.manage",
                "catalog.option.view",
                "catalog.product.create",
                "catalog.product.delete",
                "catalog.product.publish",
                "catalog.product.set-price",
                "catalog.product.update",
                "catalog.product.view",
                "commission.clawback.create",
                "commission.clawback.view",
                "commission.entry.adjust",
                "commission.entry.mature",
                "commission.entry.view",
                "commission.entry.view-own",
                "commission.payout.approve",
                "commission.payout.create",
                "commission.payout.view",
                "commission.rule.manage",
                "commission.rule.view",
                "commission.wallet.view",
                "core.feature-flag.manage",
                "core.geography.manage",
                "core.geography.view",
                "core.media.manage",
                "core.setting.update",
                "core.setting.view",
                "crm.appointment.assign",
                "crm.appointment.cancel",
                "crm.appointment.complete",
                "crm.appointment.confirm",
                "crm.appointment.create",
                "crm.appointment.update",
                "crm.appointment.view",
                "crm.complaint.assign",
                "crm.complaint.create",
                "crm.complaint.resolve",
                "crm.complaint.view",
                "crm.customer.blacklist",
                "crm.customer.create",
                "crm.customer.delete",
                "crm.customer.export",
                "crm.customer.restore",
                "crm.customer.update",
                "crm.customer.view",
                "crm.customer.view-pii",
                "crm.feedback.record",
                "crm.feedback.view",
                "crm.follow-up.manage",
                "crm.lead.assign",
                "crm.lead.convert",
                "crm.lead.create",
                "crm.lead.delete",
                "crm.lead.qualify",
                "crm.lead.update",
                "crm.lead.view",
                "crm.route.assign",
                "crm.route.plan",
                "crm.route.view",
                "finance.account.manage",
                "finance.account.view",
                "finance.closing.approve",
                "finance.closing.perform",
                "finance.closing.view",
                "finance.expense.approve",
                "finance.expense.create",
                "finance.expense.delete",
                "finance.expense.view",
                "finance.journal.post",
                "finance.journal.reverse",
                "finance.journal.view",
                "finance.payable.settle",
                "finance.payable.view",
                "finance.period.lock",
                "finance.period.unlock",
                "finance.period.view",
                "finance.profitability.view",
                "finance.receivable.view",
                "finance.report.export",
                "finance.report.view",
                "gates.evidence.view",
                "identity.impersonate.customer",
                "identity.impersonate.user",
                "identity.impersonate.write",
                "identity.role.create",
                "identity.role.delete",
                "identity.role.update",
                "identity.role.view",
                "identity.team.assign-members",
                "identity.team.create",
                "identity.team.delete",
                "identity.team.update",
                "identity.team.view",
                "identity.user.activate",
                "identity.user.assign-role",
                "identity.user.create",
                "identity.user.delete",
                "identity.user.reset-password",
                "identity.user.restore",
                "identity.user.set-capacity",
                "identity.user.update",
                "identity.user.view",
                "inventory.count.approve",
                "inventory.count.perform",
                "inventory.count.view",
                "inventory.customer-fabric.manage",
                "inventory.issue.create",
                "inventory.issue.return",
                "inventory.issue.view",
                "inventory.purchase.approve",
                "inventory.purchase.inspect",
                "inventory.purchase.order",
                "inventory.purchase.receive",
                "inventory.purchase.request",
                "inventory.purchase.view",
                "inventory.stock.adjust",
                "inventory.stock.allocate",
                "inventory.stock.reserve",
                "inventory.stock.view",
                "inventory.supplier.manage",
                "inventory.supplier.view",
                "measurements.profile.approve",
                "measurements.profile.create",
                "measurements.profile.update",
                "measurements.profile.view",
                "measurements.profile.view-history",
                "measurements.reference-garment.record",
                "measurements.reference-garment.return",
                "measurements.reference-garment.view",
                "measurements.template.manage",
                "notifications.log.view",
                "notifications.resend",
                "notifications.template.manage",
                "notifications.template.view",
                "orders.approval.invalidate",
                "orders.approval.record",
                "orders.approval.view",
                "orders.cancellation.approve",
                "orders.cancellation.request",
                "orders.cancellation.view",
                "orders.charge.add",
                "orders.discount.apply",
                "orders.discount.approve",
                "orders.item.transition",
                "orders.item.update-spec",
                "orders.order.assign",
                "orders.order.close",
                "orders.order.confirm",
                "orders.order.create",
                "orders.order.delete",
                "orders.order.hold",
                "orders.order.reopen",
                "orders.order.transition",
                "orders.order.update",
                "orders.order.view",
                "orders.quotation.approve",
                "orders.quotation.create",
                "orders.quotation.send",
                "orders.quotation.update",
                "orders.quotation.view",
                "payments.gateway.manage",
                "payments.payment.delete",
                "payments.payment.initiate",
                "payments.payment.record",
                "payments.payment.update",
                "payments.payment.view",
                "payments.receipt.issue",
                "payments.refund.approve",
                "payments.refund.process",
                "payments.refund.request",
                "payments.refund.view",
                "payments.verify.bank-transfer",
                "production.accessory.consume",
                "production.alteration.assess",
                "production.alteration.complete",
                "production.alteration.create",
                "production.alteration.view",
                "production.assignment.manage",
                "production.cutting.complete",
                "production.cutting.record-leftover",
                "production.cutting.start",
                "production.cutting.view",
                "production.file.create",
                "production.file.release",
                "production.file.review",
                "production.file.view",
                "production.finishing.complete",
                "production.finishing.view",
                "production.handover.issue",
                "production.handover.receive",
                "production.handover.view",
                "production.job-card.view",
                "production.job-card.view-own",
                "production.packing.pack",
                "production.packing.release",
                "production.packing.seal",
                "production.packing.verify",
                "production.packing.view",
                "production.qc.approve",
                "production.qc.inspect",
                "production.qc.record-defect",
                "production.qc.reject",
                "production.qc.view",
                "production.remake.approve",
                "production.remake.request",
                "production.schedule.manage",
                "production.schedule.view",
                "production.tailoring.complete",
                "production.tailoring.record-check",
                "production.tailoring.start",
                "production.tailoring.view",
                "shipping.cash.collect",
                "shipping.cash.handover",
                "shipping.cash.reconcile",
                "shipping.delivery.attempt",
                "shipping.delivery.complete",
                "shipping.delivery.fail",
                "shipping.delivery.record-proof",
                "shipping.delivery.view",
                "shipping.manifest.view",
                "shipping.shipment.assign",
                "shipping.shipment.create",
                "shipping.shipment.dispatch",
                "shipping.shipment.view",
                "shipping.zone.manage",
                "shipping.zone.view",
                "system.backup.manage",
                "system.health.view",
                "system.queue.manage",
                "system.unlock",
                "system.view-all",
                "team.view-subtree"
            ]
        },
        {
            "name": "customer_service",
            "permissionCount": 88,
            "permissions": [
                "analytics.dashboard.view",
                "analytics.report.view",
                "approvals.request.cancel",
                "approvals.request.create",
                "approvals.request.view",
                "audit.activity.view",
                "audit.checklist.complete",
                "audit.checklist.view",
                "audit.escalation.acknowledge",
                "audit.escalation.create",
                "audit.escalation.view",
                "audit.exception.record",
                "audit.exception.view",
                "catalog.accessory.view",
                "catalog.category.view",
                "catalog.option.view",
                "catalog.product.view",
                "core.geography.view",
                "core.setting.view",
                "crm.appointment.assign",
                "crm.appointment.cancel",
                "crm.appointment.complete",
                "crm.appointment.confirm",
                "crm.appointment.create",
                "crm.appointment.update",
                "crm.appointment.view",
                "crm.complaint.assign",
                "crm.complaint.create",
                "crm.complaint.resolve",
                "crm.complaint.view",
                "crm.customer.create",
                "crm.customer.export",
                "crm.customer.update",
                "crm.customer.view",
                "crm.customer.view-pii",
                "crm.feedback.record",
                "crm.feedback.view",
                "crm.follow-up.manage",
                "crm.lead.assign",
                "crm.lead.convert",
                "crm.lead.create",
                "crm.lead.delete",
                "crm.lead.qualify",
                "crm.lead.update",
                "crm.lead.view",
                "crm.route.view",
                "finance.receivable.view",
                "gates.evidence.view",
                "inventory.stock.view",
                "measurements.profile.view",
                "measurements.profile.view-history",
                "measurements.reference-garment.view",
                "notifications.log.view",
                "notifications.resend",
                "notifications.template.view",
                "orders.approval.invalidate",
                "orders.approval.record",
                "orders.approval.view",
                "orders.cancellation.request",
                "orders.cancellation.view",
                "orders.charge.add",
                "orders.order.assign",
                "orders.order.confirm",
                "orders.order.create",
                "orders.order.hold",
                "orders.order.transition",
                "orders.order.update",
                "orders.order.view",
                "orders.quotation.create",
                "orders.quotation.send",
                "orders.quotation.view",
                "payments.payment.view",
                "payments.refund.request",
                "payments.refund.view",
                "production.alteration.view",
                "production.cutting.view",
                "production.file.view",
                "production.finishing.view",
                "production.handover.view",
                "production.job-card.view",
                "production.packing.view",
                "production.qc.view",
                "production.schedule.view",
                "production.tailoring.view",
                "shipping.delivery.view",
                "shipping.shipment.view",
                "shipping.zone.view",
                "team.view-subtree"
            ]
        },
        {
            "name": "operations_coordinator",
            "permissionCount": 48,
            "permissions": [
                "analytics.dashboard.view",
                "analytics.report.view",
                "approvals.request.create",
                "approvals.request.view",
                "audit.activity.view",
                "audit.checklist.complete",
                "audit.checklist.view",
                "audit.escalation.acknowledge",
                "audit.escalation.assign",
                "audit.escalation.create",
                "audit.escalation.resolve",
                "audit.escalation.view",
                "audit.exception.record",
                "audit.exception.view",
                "core.geography.view",
                "crm.appointment.assign",
                "crm.appointment.cancel",
                "crm.appointment.complete",
                "crm.appointment.confirm",
                "crm.appointment.update",
                "crm.appointment.view",
                "crm.complaint.create",
                "crm.complaint.view",
                "crm.customer.view",
                "crm.customer.view-pii",
                "crm.lead.view",
                "crm.route.assign",
                "crm.route.plan",
                "crm.route.view",
                "identity.team.view",
                "identity.user.view",
                "orders.order.transition",
                "orders.order.view",
                "production.file.view",
                "production.handover.view",
                "production.job-card.view",
                "production.packing.view",
                "production.schedule.view",
                "shipping.delivery.attempt",
                "shipping.delivery.fail",
                "shipping.delivery.view",
                "shipping.manifest.view",
                "shipping.shipment.assign",
                "shipping.shipment.create",
                "shipping.shipment.dispatch",
                "shipping.shipment.view",
                "shipping.zone.view",
                "team.view-subtree"
            ]
        },
        {
            "name": "measurement_rep",
            "permissionCount": 48,
            "permissions": [
                "analytics.dashboard.view",
                "approvals.request.create",
                "approvals.request.view",
                "audit.checklist.complete",
                "audit.checklist.view",
                "audit.escalation.acknowledge",
                "audit.escalation.create",
                "audit.escalation.view",
                "catalog.accessory.view",
                "catalog.category.view",
                "catalog.option.view",
                "catalog.product.view",
                "commission.entry.view-own",
                "core.geography.view",
                "crm.appointment.complete",
                "crm.appointment.view",
                "crm.customer.create",
                "crm.customer.update",
                "crm.customer.view",
                "crm.customer.view-pii",
                "crm.feedback.record",
                "crm.feedback.view",
                "crm.follow-up.manage",
                "crm.lead.convert",
                "crm.lead.create",
                "crm.lead.qualify",
                "crm.lead.update",
                "crm.lead.view",
                "gates.evidence.view",
                "inventory.customer-fabric.manage",
                "inventory.stock.view",
                "measurements.profile.approve",
                "measurements.profile.create",
                "measurements.profile.update",
                "measurements.profile.view",
                "measurements.profile.view-history",
                "measurements.reference-garment.record",
                "measurements.reference-garment.return",
                "measurements.reference-garment.view",
                "orders.approval.record",
                "orders.approval.view",
                "orders.item.update-spec",
                "orders.order.create",
                "orders.order.transition",
                "orders.order.update",
                "orders.order.view",
                "orders.quotation.create",
                "orders.quotation.view"
            ]
        },
        {
            "name": "finance",
            "permissionCount": 106,
            "permissions": [
                "analytics.dashboard.view",
                "analytics.report.create",
                "analytics.report.export",
                "analytics.report.view",
                "approvals.decide.approve",
                "approvals.decide.reject",
                "approvals.request.create",
                "approvals.request.view",
                "audit.activity.view",
                "audit.checklist.complete",
                "audit.checklist.view",
                "audit.escalation.acknowledge",
                "audit.escalation.create",
                "audit.escalation.resolve",
                "audit.escalation.view",
                "audit.exception.record",
                "audit.exception.resolve",
                "audit.exception.view",
                "audit.trail.view",
                "catalog.accessory.view",
                "catalog.category.view",
                "catalog.option.view",
                "catalog.product.set-price",
                "catalog.product.view",
                "commission.clawback.create",
                "commission.clawback.view",
                "commission.entry.adjust",
                "commission.entry.mature",
                "commission.entry.view",
                "commission.payout.create",
                "commission.payout.view",
                "commission.rule.view",
                "commission.wallet.view",
                "core.setting.view",
                "crm.customer.export",
                "crm.customer.view",
                "crm.customer.view-pii",
                "crm.lead.view",
                "finance.account.manage",
                "finance.account.view",
                "finance.closing.perform",
                "finance.closing.view",
                "finance.expense.approve",
                "finance.expense.create",
                "finance.expense.delete",
                "finance.expense.view",
                "finance.journal.post",
                "finance.journal.reverse",
                "finance.journal.view",
                "finance.payable.settle",
                "finance.payable.view",
                "finance.period.lock",
                "finance.period.view",
                "finance.profitability.view",
                "finance.receivable.view",
                "finance.report.export",
                "finance.report.view",
                "gates.evidence.view",
                "inventory.count.approve",
                "inventory.count.view",
                "inventory.issue.view",
                "inventory.purchase.approve",
                "inventory.purchase.view",
                "inventory.stock.view",
                "inventory.supplier.view",
                "notifications.log.view",
                "orders.approval.view",
                "orders.cancellation.request",
                "orders.cancellation.view",
                "orders.charge.add",
                "orders.discount.apply",
                "orders.order.close",
                "orders.order.confirm",
                "orders.order.hold",
                "orders.order.transition",
                "orders.order.view",
                "orders.quotation.approve",
                "orders.quotation.create",
                "orders.quotation.send",
                "orders.quotation.update",
                "orders.quotation.view",
                "payments.gateway.manage",
                "payments.payment.initiate",
                "payments.payment.record",
                "payments.payment.update",
                "payments.payment.view",
                "payments.receipt.issue",
                "payments.refund.process",
                "payments.refund.request",
                "payments.refund.view",
                "payments.verify.bank-transfer",
                "production.alteration.view",
                "production.cutting.view",
                "production.file.view",
                "production.finishing.view",
                "production.handover.view",
                "production.job-card.view",
                "production.packing.view",
                "production.qc.view",
                "production.schedule.view",
                "production.tailoring.view",
                "shipping.cash.reconcile",
                "shipping.delivery.view",
                "shipping.shipment.view",
                "shipping.zone.view",
                "team.view-subtree"
            ]
        },
        {
            "name": "inventory_procurement",
            "permissionCount": 46,
            "permissions": [
                "analytics.dashboard.view",
                "analytics.report.view",
                "approvals.request.create",
                "approvals.request.view",
                "audit.checklist.complete",
                "audit.checklist.view",
                "audit.escalation.acknowledge",
                "audit.escalation.create",
                "audit.escalation.view",
                "audit.exception.record",
                "audit.exception.view",
                "catalog.accessory.manage",
                "catalog.accessory.view",
                "catalog.category.view",
                "catalog.option.view",
                "catalog.product.create",
                "catalog.product.update",
                "catalog.product.view",
                "core.geography.view",
                "crm.customer.view",
                "finance.payable.view",
                "gates.evidence.view",
                "inventory.count.perform",
                "inventory.count.view",
                "inventory.customer-fabric.manage",
                "inventory.issue.create",
                "inventory.issue.return",
                "inventory.issue.view",
                "inventory.purchase.inspect",
                "inventory.purchase.order",
                "inventory.purchase.receive",
                "inventory.purchase.request",
                "inventory.purchase.view",
                "inventory.stock.adjust",
                "inventory.stock.allocate",
                "inventory.stock.reserve",
                "inventory.stock.view",
                "inventory.supplier.manage",
                "inventory.supplier.view",
                "orders.order.view",
                "production.file.view",
                "production.handover.issue",
                "production.handover.view",
                "production.job-card.view",
                "production.schedule.view",
                "team.view-subtree"
            ]
        },
        {
            "name": "production_manager",
            "permissionCount": 58,
            "permissions": [
                "analytics.dashboard.view",
                "analytics.report.export",
                "analytics.report.view",
                "approvals.decide.approve",
                "approvals.decide.reject",
                "approvals.request.create",
                "approvals.request.view",
                "audit.activity.view",
                "audit.checklist.complete",
                "audit.checklist.view",
                "audit.checklist.view-all",
                "audit.escalation.acknowledge",
                "audit.escalation.assign",
                "audit.escalation.create",
                "audit.escalation.resolve",
                "audit.escalation.view",
                "audit.exception.record",
                "audit.exception.resolve",
                "audit.exception.view",
                "catalog.accessory.view",
                "catalog.category.view",
                "catalog.option.view",
                "catalog.product.view",
                "crm.customer.view",
                "gates.evidence.view",
                "identity.team.view",
                "identity.user.set-capacity",
                "identity.user.view",
                "inventory.issue.create",
                "inventory.issue.view",
                "inventory.purchase.request",
                "inventory.stock.view",
                "orders.item.transition",
                "orders.order.view",
                "production.accessory.consume",
                "production.alteration.assess",
                "production.alteration.complete",
                "production.alteration.create",
                "production.alteration.view",
                "production.assignment.manage",
                "production.cutting.view",
                "production.file.create",
                "production.file.release",
                "production.file.review",
                "production.file.view",
                "production.finishing.view",
                "production.handover.issue",
                "production.handover.receive",
                "production.handover.view",
                "production.job-card.view",
                "production.packing.view",
                "production.qc.view",
                "production.remake.request",
                "production.schedule.manage",
                "production.schedule.view",
                "production.tailoring.view",
                "shipping.shipment.view",
                "team.view-subtree"
            ]
        },
        {
            "name": "cutter",
            "permissionCount": 17,
            "permissions": [
                "analytics.dashboard.view",
                "audit.checklist.complete",
                "audit.checklist.view",
                "audit.escalation.acknowledge",
                "audit.escalation.create",
                "audit.escalation.view",
                "gates.evidence.view",
                "inventory.issue.view",
                "orders.item.transition",
                "production.cutting.complete",
                "production.cutting.record-leftover",
                "production.cutting.start",
                "production.cutting.view",
                "production.handover.issue",
                "production.handover.receive",
                "production.handover.view",
                "production.job-card.view-own"
            ]
        },
        {
            "name": "tailor",
            "permissionCount": 18,
            "permissions": [
                "analytics.dashboard.view",
                "audit.checklist.complete",
                "audit.checklist.view",
                "audit.escalation.acknowledge",
                "audit.escalation.create",
                "audit.escalation.view",
                "gates.evidence.view",
                "inventory.issue.view",
                "orders.item.transition",
                "production.accessory.consume",
                "production.handover.issue",
                "production.handover.receive",
                "production.handover.view",
                "production.job-card.view-own",
                "production.tailoring.complete",
                "production.tailoring.record-check",
                "production.tailoring.start",
                "production.tailoring.view"
            ]
        },
        {
            "name": "qc_officer",
            "permissionCount": 31,
            "permissions": [
                "analytics.dashboard.view",
                "analytics.report.view",
                "audit.checklist.complete",
                "audit.checklist.view",
                "audit.escalation.acknowledge",
                "audit.escalation.create",
                "audit.escalation.resolve",
                "audit.escalation.view",
                "audit.exception.record",
                "audit.exception.view",
                "gates.evidence.view",
                "orders.item.transition",
                "production.alteration.assess",
                "production.alteration.create",
                "production.alteration.view",
                "production.cutting.view",
                "production.file.view",
                "production.finishing.view",
                "production.handover.issue",
                "production.handover.receive",
                "production.handover.view",
                "production.job-card.view",
                "production.packing.release",
                "production.packing.view",
                "production.qc.approve",
                "production.qc.inspect",
                "production.qc.record-defect",
                "production.qc.reject",
                "production.qc.view",
                "production.remake.request",
                "production.tailoring.view"
            ]
        },
        {
            "name": "finishing_packing",
            "permissionCount": 18,
            "permissions": [
                "analytics.dashboard.view",
                "audit.checklist.complete",
                "audit.checklist.view",
                "audit.escalation.acknowledge",
                "audit.escalation.create",
                "audit.escalation.view",
                "production.finishing.complete",
                "production.finishing.view",
                "production.handover.issue",
                "production.handover.receive",
                "production.handover.view",
                "production.job-card.view-own",
                "production.packing.pack",
                "production.packing.seal",
                "production.packing.verify",
                "production.packing.view",
                "production.qc.view",
                "shipping.shipment.view"
            ]
        },
        {
            "name": "rider",
            "permissionCount": 22,
            "permissions": [
                "analytics.dashboard.view",
                "audit.checklist.complete",
                "audit.checklist.view",
                "audit.escalation.acknowledge",
                "audit.escalation.create",
                "audit.escalation.view",
                "audit.exception.record",
                "commission.entry.view-own",
                "crm.customer.view",
                "crm.customer.view-pii",
                "payments.payment.record",
                "payments.payment.view",
                "payments.receipt.issue",
                "shipping.cash.collect",
                "shipping.cash.handover",
                "shipping.delivery.attempt",
                "shipping.delivery.complete",
                "shipping.delivery.fail",
                "shipping.delivery.record-proof",
                "shipping.delivery.view",
                "shipping.manifest.view",
                "shipping.shipment.view"
            ]
        },
        {
            "name": "customer",
            "permissionCount": 16,
            "permissions": [
                "account.address.manage",
                "account.appointment.request",
                "account.appointment.view",
                "account.complaint.create",
                "account.feedback.submit",
                "account.invoice.download",
                "account.measurement.submit",
                "account.measurement.view",
                "account.order.approve",
                "account.order.track",
                "account.order.view",
                "account.payment.pay",
                "account.payment.view",
                "account.profile.update",
                "account.profile.view",
                "account.quotation.view"
            ]
        }
    ],
    "permissionGroups": {
        "account": 16,
        "analytics": 7,
        "approvals": 8,
        "audit": 18,
        "catalog": 14,
        "commission": 12,
        "core": 6,
        "crm": 32,
        "finance": 21,
        "gates": 2,
        "identity": 21,
        "inventory": 19,
        "measurements": 9,
        "notifications": 4,
        "orders": 26,
        "payments": 12,
        "production": 39,
        "shipping": 15,
        "system": 6,
        "team": 1
    },
    "permissionCount": 288,
    "approvalWorkflows": [
        {
            "code": "C1_FABRIC_COLOUR",
            "name": "Fabric & Colour Approval",
            "category": "customer",
            "description": "The customer must approve the fabric and colour before it is cut.",
            "approverRoles": [
                "measurement_rep"
            ],
            "escalationRole": null,
            "thresholdPaisa": null,
            "thresholdRupees": null,
            "alwaysApplies": true,
            "slaMinutes": 1440,
            "slaHours": 24,
            "isActive": true
        },
        {
            "code": "C2_STYLE_QUANTITY",
            "name": "Style & Number of Suits",
            "category": "customer",
            "description": "The customer must confirm the style and how many suits are being ordered.",
            "approverRoles": [
                "measurement_rep"
            ],
            "escalationRole": null,
            "thresholdPaisa": null,
            "thresholdRupees": null,
            "alwaysApplies": true,
            "slaMinutes": 1440,
            "slaHours": 24,
            "isActive": true
        },
        {
            "code": "C3_MEASUREMENTS_FIT",
            "name": "Measurements or Reference Fit",
            "category": "customer",
            "description": "The customer must sign off the measurements, or the reference garment fit, before cutting.",
            "approverRoles": [
                "measurement_rep"
            ],
            "escalationRole": null,
            "thresholdPaisa": null,
            "thresholdRupees": null,
            "alwaysApplies": true,
            "slaMinutes": 1440,
            "slaHours": 24,
            "isActive": true
        },
        {
            "code": "C4_PRICE_CHARGES",
            "name": "Price & Charges",
            "category": "customer",
            "description": "The customer must approve the quoted price and any listed charges before the order is confirmed.",
            "approverRoles": [
                "customer_service"
            ],
            "escalationRole": null,
            "thresholdPaisa": null,
            "thresholdRupees": null,
            "alwaysApplies": true,
            "slaMinutes": 720,
            "slaHours": 12,
            "isActive": true
        },
        {
            "code": "C5_DELIVERY_DATE",
            "name": "Delivery Date",
            "category": "customer",
            "description": "The customer must agree the promised delivery date.",
            "approverRoles": [
                "customer_service"
            ],
            "escalationRole": null,
            "thresholdPaisa": null,
            "thresholdRupees": null,
            "alwaysApplies": true,
            "slaMinutes": 720,
            "slaHours": 12,
            "isActive": true
        },
        {
            "code": "C6_DESIGN_CHANGE",
            "name": "Design Changes",
            "category": "customer",
            "description": "Control rule U2: any unapproved design change invalidates the prior approval and must be re-confirmed.",
            "approverRoles": [
                "measurement_rep"
            ],
            "escalationRole": null,
            "thresholdPaisa": null,
            "thresholdRupees": null,
            "alwaysApplies": true,
            "slaMinutes": 1440,
            "slaHours": 24,
            "isActive": true
        },
        {
            "code": "C7_ADDITIONAL_COST",
            "name": "Additional Cost",
            "category": "customer",
            "description": "No extra cost may be added to an order without customer approval.",
            "approverRoles": [
                "customer_service"
            ],
            "escalationRole": null,
            "thresholdPaisa": null,
            "thresholdRupees": null,
            "alwaysApplies": true,
            "slaMinutes": 720,
            "slaHours": 12,
            "isActive": true
        },
        {
            "code": "G1_QUOTATION_DISCOUNT",
            "name": "Large Discount Authorisation",
            "category": "internal",
            "description": "A discount beyond the standard band requires management sign-off before it is applied.",
            "approverRoles": [
                "management"
            ],
            "escalationRole": "super_admin",
            "thresholdPaisa": 500000,
            "thresholdRupees": 5000,
            "alwaysApplies": false,
            "slaMinutes": 240,
            "slaHours": 4,
            "isActive": true
        },
        {
            "code": "G13_PERIOD_LOCK_OVERRIDE",
            "name": "Financial Period Lock Override",
            "category": "internal",
            "description": "Reopening or adjusting a closed accounting period is a Super Root exception, logged with full audit.",
            "approverRoles": [
                "super_admin"
            ],
            "escalationRole": null,
            "thresholdPaisa": null,
            "thresholdRupees": null,
            "alwaysApplies": true,
            "slaMinutes": 1440,
            "slaHours": 24,
            "isActive": true
        },
        {
            "code": "G2_FABRIC_PURCHASE",
            "name": "Fabric Purchase Authorisation",
            "category": "internal",
            "description": "A fabric purchase order beyond the standard value requires management authorisation.",
            "approverRoles": [
                "management"
            ],
            "escalationRole": "super_admin",
            "thresholdPaisa": 2000000,
            "thresholdRupees": 20000,
            "alwaysApplies": false,
            "slaMinutes": 480,
            "slaHours": 8,
            "isActive": true
        },
        {
            "code": "G3_FABRIC_CUTTING",
            "name": "Fabric Cutting Release",
            "category": "internal",
            "description": "Control rule U2: cutting may not proceed while a customer approval or specification question is open.",
            "approverRoles": [
                "production_manager"
            ],
            "escalationRole": "management",
            "thresholdPaisa": null,
            "thresholdRupees": null,
            "alwaysApplies": true,
            "slaMinutes": 120,
            "slaHours": 2,
            "isActive": true
        },
        {
            "code": "G4_URGENT_ORDER",
            "name": "Urgent-Order Acceptance",
            "category": "internal",
            "description": "Accepting an order outside the normal production calendar requires management approval before it is confirmed.",
            "approverRoles": [
                "management"
            ],
            "escalationRole": "super_admin",
            "thresholdPaisa": null,
            "thresholdRupees": null,
            "alwaysApplies": true,
            "slaMinutes": 60,
            "slaHours": 1,
            "isActive": true
        },
        {
            "code": "G5_FABRIC_QC_DEVIATION",
            "name": "Fabric QC Deviation Clearance",
            "category": "internal",
            "description": "A minor fabric defect found at inspection may be cleared for use rather than rejected, on production sign-off.",
            "approverRoles": [
                "production_manager"
            ],
            "escalationRole": "management",
            "thresholdPaisa": null,
            "thresholdRupees": null,
            "alwaysApplies": true,
            "slaMinutes": 120,
            "slaHours": 2,
            "isActive": true
        },
        {
            "code": "G6_REFUND_APPROVAL",
            "name": "Refund Approval",
            "category": "internal",
            "description": "A refund beyond the standard threshold requires finance sign-off before it is processed.",
            "approverRoles": [
                "finance"
            ],
            "escalationRole": "management",
            "thresholdPaisa": 300000,
            "thresholdRupees": 3000,
            "alwaysApplies": false,
            "slaMinutes": 480,
            "slaHours": 8,
            "isActive": true
        },
        {
            "code": "G7_FREE_ALTERATION_EXCEPTION",
            "name": "Free Alteration Outside Policy",
            "category": "internal",
            "description": "An alteration offered free of charge outside the standard policy (not a Rusukh-error correction) requires sign-off.",
            "approverRoles": [
                "production_manager"
            ],
            "escalationRole": "management",
            "thresholdPaisa": null,
            "thresholdRupees": null,
            "alwaysApplies": true,
            "slaMinutes": 240,
            "slaHours": 4,
            "isActive": true
        },
        {
            "code": "G8_DISPATCH_WITH_BALANCE",
            "name": "Dispatch With Outstanding Payment",
            "category": "internal",
            "description": "Control rule: dispatching before the balance is fully collected is an exception, not a default, and needs finance sign-off.",
            "approverRoles": [
                "finance"
            ],
            "escalationRole": "management",
            "thresholdPaisa": null,
            "thresholdRupees": null,
            "alwaysApplies": true,
            "slaMinutes": 60,
            "slaHours": 1,
            "isActive": true
        },
        {
            "code": "G9_ORDER_CLOSURE_EXCEPTION",
            "name": "Order Closure Exception",
            "category": "internal",
            "description": "Closing an order with an unresolved payment or alteration requires management approval.",
            "approverRoles": [
                "management"
            ],
            "escalationRole": "super_admin",
            "thresholdPaisa": null,
            "thresholdRupees": null,
            "alwaysApplies": true,
            "slaMinutes": 480,
            "slaHours": 8,
            "isActive": true
        },
        {
            "code": "remake",
            "name": "Remake Authorisation",
            "category": "internal",
            "description": "SOP \u00a743/\u00a760: root cause first, then a management approval before a fresh garment is cut. Matches the required_role Production's RequestRemakeAction already stamps directly.",
            "approverRoles": [
                "management"
            ],
            "escalationRole": "super_admin",
            "thresholdPaisa": null,
            "thresholdRupees": null,
            "alwaysApplies": true,
            "slaMinutes": 2880,
            "slaHours": 48,
            "isActive": true
        }
    ],
    "seededVolumes": {
        "users": 16,
        "customers": 8,
        "orders": 114,
        "order_items": 142,
        "stage_gates": 151,
        "stage_gate_evidence": 569,
        "approval_requests": 12,
        "payments": 6,
        "shipments": 6,
        "delivery_attempts": 5,
        "alteration_jobs": 5,
        "commissions": 14,
        "journal_entries": 2
    }
}