
const { v4: uuid } = require("uuid");

module.exports = {
  /**
   * @param{import("sequelize").QueryInterface} queryInterface
   * @return {Promise<void>}
   */
  async up(queryInterface) {
    const createdAt = new Date();
    const updatedAt = new Date();

    /** @type {Map<string, string>} */
    const idMap = new Map();

    /**
     * @param {string} key
     * @return {string}
     */
    function getId(key) {
      if (idMap.has(key)) {
        return idMap.get(key);
      }
      const id = uuid();
      idMap.set(key, id);
      return id;
    }

    await queryInterface.bulkInsert("roles", [
      
      { id: getId("SuperAdmin"), name: "Super Administrator", createdAt, updatedAt },
      
      
      { id: getId("Administrator"), name: "Administrator", createdAt, updatedAt },
      
      
        
          { id: getId("EnterpriseOwner"), name: "Enterprise Owner", createdAt, updatedAt },
        
          { id: getId("OperationsDirector"), name: "Operations Director", createdAt, updatedAt },
        
          { id: getId("FinanceLead"), name: "Finance Lead", createdAt, updatedAt },
        
          { id: getId("StoreManager"), name: "Store Manager", createdAt, updatedAt },
        
          { id: getId("Cashier"), name: "Cashier", createdAt, updatedAt },
        
      
      
      { id: getId("Public"), name: "Public", createdAt, updatedAt },
    ]);

    /**
     * @param {string} name
     */
    function createPermissions(name) {
      return [
        { id: getId(`CREATE_${name.toUpperCase()}`), createdAt, updatedAt, name: `CREATE_${name.toUpperCase()}` },
        { id: getId(`READ_${name.toUpperCase()}`), createdAt, updatedAt, name: `READ_${name.toUpperCase()}` },
        { id: getId(`UPDATE_${name.toUpperCase()}`), createdAt, updatedAt, name: `UPDATE_${name.toUpperCase()}` },
        { id: getId(`DELETE_${name.toUpperCase()}`), createdAt, updatedAt, name: `DELETE_${name.toUpperCase()}` }
      ];
    }

    const entities = [
      "users","roles","permissions","organizations","companies","branches","user_roles","audit_logs","product_categories","products","price_lists","price_list_items","warehouses","inventory_batches","inventory_transactions","stock_adjustments","stock_adjustment_lines","interbranch_transfers","transfer_lines","suppliers","supplier_products","purchase_orders","purchase_order_lines","goods_receipts","goods_receipt_lines","supplier_invoices","customers","loyalty_programs","pos_registers","pos_shifts","sales","sale_lines","payments","refunds","store_checklists","checklist_items","checklist_runs","checklist_run_items","risk_alerts","departments","employees","work_shifts","shift_assignments","attendance_records","payroll_runs","payroll_items","performance_reviews","chart_accounts","journal_entries","journal_lines","expenses","assets","marketing_campaigns","campaign_recipients","ai_reorder_suggestions",,
    ];
await queryInterface.bulkInsert("permissions", entities.flatMap(createPermissions));
await queryInterface.bulkInsert("permissions", [{ id: getId(`READ_API_DOCS`), createdAt, updatedAt, name: `READ_API_DOCS` }]);
await queryInterface.bulkInsert("permissions", [{ id: getId(`CREATE_SEARCH`), createdAt, updatedAt, name: `CREATE_SEARCH`}]);

await queryInterface.bulkUpdate('roles', { globalAccess: true }, { id: getId('SuperAdmin') });


await queryInterface.sequelize.query(`create table "rolesPermissionsPermissions"
(
"createdAt"           timestamp with time zone not null,
"updatedAt"           timestamp with time zone not null,
"roles_permissionsId" uuid                     not null,
"permissionId"        uuid                     not null,
primary key ("roles_permissionsId", "permissionId")
);`);


await queryInterface.bulkInsert("rolesPermissionsPermissions", [
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_USERS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('READ_USERS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_COMPANIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_COMPANIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_COMPANIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_COMPANIES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_COMPANIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_COMPANIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_COMPANIES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_BRANCHES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_BRANCHES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_BRANCHES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_BRANCHES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_BRANCHES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_BRANCHES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_BRANCHES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_BRANCHES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_USER_ROLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_USER_ROLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_USER_ROLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_USER_ROLES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_USER_ROLES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_AUDIT_LOGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_AUDIT_LOGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_AUDIT_LOGS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_AUDIT_LOGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_AUDIT_LOGS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_AUDIT_LOGS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_AUDIT_LOGS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_PRODUCT_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_PRODUCT_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_PRODUCT_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_PRODUCT_CATEGORIES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_PRODUCT_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_PRODUCT_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_PRODUCT_CATEGORIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_PRODUCT_CATEGORIES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_PRODUCT_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_PRODUCT_CATEGORIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('READ_PRODUCT_CATEGORIES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_PRODUCTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_PRODUCTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_PRODUCTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_PRODUCTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_PRODUCTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_PRODUCTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_PRODUCTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_PRODUCTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_PRODUCTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_PRODUCTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('READ_PRODUCTS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_PRICE_LISTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_PRICE_LISTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_PRICE_LISTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_PRICE_LISTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_PRICE_LISTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_PRICE_LISTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_PRICE_LISTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_PRICE_LISTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_PRICE_LISTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_PRICE_LISTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_PRICE_LIST_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_PRICE_LIST_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_PRICE_LIST_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_PRICE_LIST_ITEMS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_PRICE_LIST_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_PRICE_LIST_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_PRICE_LIST_ITEMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_PRICE_LIST_ITEMS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_PRICE_LIST_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_PRICE_LIST_ITEMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_WAREHOUSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_WAREHOUSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_WAREHOUSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_WAREHOUSES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_WAREHOUSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_WAREHOUSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_WAREHOUSES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_WAREHOUSES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_WAREHOUSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_WAREHOUSES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('READ_WAREHOUSES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_INVENTORY_BATCHES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_INVENTORY_BATCHES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_INVENTORY_BATCHES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_INVENTORY_BATCHES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_INVENTORY_BATCHES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_INVENTORY_BATCHES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_INVENTORY_BATCHES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_INVENTORY_BATCHES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_INVENTORY_BATCHES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_INVENTORY_BATCHES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('READ_INVENTORY_BATCHES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_INVENTORY_TRANSACTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_INVENTORY_TRANSACTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_INVENTORY_TRANSACTIONS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_INVENTORY_TRANSACTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_INVENTORY_TRANSACTIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_INVENTORY_TRANSACTIONS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_INVENTORY_TRANSACTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_INVENTORY_TRANSACTIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_STOCK_ADJUSTMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_STOCK_ADJUSTMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_STOCK_ADJUSTMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_STOCK_ADJUSTMENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_STOCK_ADJUSTMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_STOCK_ADJUSTMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_STOCK_ADJUSTMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_STOCK_ADJUSTMENTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('CREATE_STOCK_ADJUSTMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_STOCK_ADJUSTMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_STOCK_ADJUSTMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_STOCK_ADJUSTMENT_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_STOCK_ADJUSTMENT_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_STOCK_ADJUSTMENT_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_STOCK_ADJUSTMENT_LINES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_STOCK_ADJUSTMENT_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_STOCK_ADJUSTMENT_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_STOCK_ADJUSTMENT_LINES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_STOCK_ADJUSTMENT_LINES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('CREATE_STOCK_ADJUSTMENT_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_STOCK_ADJUSTMENT_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_STOCK_ADJUSTMENT_LINES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_INTERBRANCH_TRANSFERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_INTERBRANCH_TRANSFERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_INTERBRANCH_TRANSFERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_INTERBRANCH_TRANSFERS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_INTERBRANCH_TRANSFERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_INTERBRANCH_TRANSFERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_INTERBRANCH_TRANSFERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_INTERBRANCH_TRANSFERS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('CREATE_INTERBRANCH_TRANSFERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_INTERBRANCH_TRANSFERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_INTERBRANCH_TRANSFERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_TRANSFER_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_TRANSFER_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_TRANSFER_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_TRANSFER_LINES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_TRANSFER_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_TRANSFER_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_TRANSFER_LINES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_TRANSFER_LINES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('CREATE_TRANSFER_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_TRANSFER_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_TRANSFER_LINES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_SUPPLIERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_SUPPLIERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_SUPPLIERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_SUPPLIERS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_SUPPLIERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_SUPPLIERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_SUPPLIERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_SUPPLIERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('UPDATE_SUPPLIERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_SUPPLIERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_SUPPLIERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_SUPPLIER_PRODUCTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_SUPPLIER_PRODUCTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_SUPPLIER_PRODUCTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_SUPPLIER_PRODUCTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_SUPPLIER_PRODUCTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_SUPPLIER_PRODUCTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_SUPPLIER_PRODUCTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_SUPPLIER_PRODUCTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('UPDATE_SUPPLIER_PRODUCTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_SUPPLIER_PRODUCTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_SUPPLIER_PRODUCTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_PURCHASE_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_PURCHASE_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_PURCHASE_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_PURCHASE_ORDERS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_PURCHASE_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_PURCHASE_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_PURCHASE_ORDERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_PURCHASE_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('UPDATE_PURCHASE_ORDERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('CREATE_PURCHASE_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_PURCHASE_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_PURCHASE_ORDERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_PURCHASE_ORDER_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_PURCHASE_ORDER_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_PURCHASE_ORDER_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_PURCHASE_ORDER_LINES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_PURCHASE_ORDER_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_PURCHASE_ORDER_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_PURCHASE_ORDER_LINES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_PURCHASE_ORDER_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('UPDATE_PURCHASE_ORDER_LINES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('CREATE_PURCHASE_ORDER_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_PURCHASE_ORDER_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_PURCHASE_ORDER_LINES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_GOODS_RECEIPTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_GOODS_RECEIPTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_GOODS_RECEIPTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_GOODS_RECEIPTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_GOODS_RECEIPTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_GOODS_RECEIPTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_GOODS_RECEIPTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_GOODS_RECEIPTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('UPDATE_GOODS_RECEIPTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('CREATE_GOODS_RECEIPTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_GOODS_RECEIPTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_GOODS_RECEIPTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_GOODS_RECEIPT_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_GOODS_RECEIPT_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_GOODS_RECEIPT_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_GOODS_RECEIPT_LINES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_GOODS_RECEIPT_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_GOODS_RECEIPT_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_GOODS_RECEIPT_LINES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_GOODS_RECEIPT_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('UPDATE_GOODS_RECEIPT_LINES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('CREATE_GOODS_RECEIPT_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_GOODS_RECEIPT_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_GOODS_RECEIPT_LINES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_SUPPLIER_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_SUPPLIER_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_SUPPLIER_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_SUPPLIER_INVOICES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_SUPPLIER_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_SUPPLIER_INVOICES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('CREATE_SUPPLIER_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_SUPPLIER_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('UPDATE_SUPPLIER_INVOICES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_SUPPLIER_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_SUPPLIER_INVOICES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_CUSTOMERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_CUSTOMERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_CUSTOMERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_CUSTOMERS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_CUSTOMERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_CUSTOMERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_CUSTOMERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_CUSTOMERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('UPDATE_CUSTOMERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('CREATE_CUSTOMERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_CUSTOMERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_CUSTOMERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('CREATE_CUSTOMERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('READ_CUSTOMERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('UPDATE_CUSTOMERS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_LOYALTY_PROGRAMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_LOYALTY_PROGRAMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_LOYALTY_PROGRAMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_LOYALTY_PROGRAMS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_LOYALTY_PROGRAMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_LOYALTY_PROGRAMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_LOYALTY_PROGRAMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_LOYALTY_PROGRAMS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_LOYALTY_PROGRAMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_LOYALTY_PROGRAMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('READ_LOYALTY_PROGRAMS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_POS_REGISTERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_POS_REGISTERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_POS_REGISTERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_POS_REGISTERS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_POS_REGISTERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_POS_REGISTERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_POS_REGISTERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_POS_REGISTERS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('CREATE_POS_REGISTERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_POS_REGISTERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_POS_REGISTERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('READ_POS_REGISTERS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_POS_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_POS_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_POS_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_POS_SHIFTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_POS_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_POS_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_POS_SHIFTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_POS_SHIFTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('CREATE_POS_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_POS_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_POS_SHIFTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('READ_POS_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('UPDATE_POS_SHIFTS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_SALES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_SALES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_SALES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_SALES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_SALES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_SALES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_SALES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('UPDATE_SALES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_SALES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_SALES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('CREATE_SALES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('READ_SALES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('UPDATE_SALES') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_SALE_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_SALE_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_SALE_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_SALE_LINES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_SALE_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_SALE_LINES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_SALE_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('UPDATE_SALE_LINES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_SALE_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_SALE_LINES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('CREATE_SALE_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('READ_SALE_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('UPDATE_SALE_LINES') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_PAYMENTS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_PAYMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('UPDATE_PAYMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_PAYMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('CREATE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('READ_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('UPDATE_PAYMENTS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_REFUNDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_REFUNDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_REFUNDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_REFUNDS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_REFUNDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_REFUNDS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_REFUNDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('UPDATE_REFUNDS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('CREATE_REFUNDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_REFUNDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_REFUNDS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('CREATE_REFUNDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('READ_REFUNDS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_STORE_CHECKLISTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_STORE_CHECKLISTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_STORE_CHECKLISTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_STORE_CHECKLISTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_STORE_CHECKLISTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_STORE_CHECKLISTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_STORE_CHECKLISTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('CREATE_STORE_CHECKLISTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_STORE_CHECKLISTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_STORE_CHECKLISTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('READ_STORE_CHECKLISTS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_CHECKLIST_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_CHECKLIST_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_CHECKLIST_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_CHECKLIST_ITEMS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_CHECKLIST_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_CHECKLIST_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_CHECKLIST_ITEMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('CREATE_CHECKLIST_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_CHECKLIST_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_CHECKLIST_ITEMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('READ_CHECKLIST_ITEMS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_CHECKLIST_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_CHECKLIST_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_CHECKLIST_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_CHECKLIST_RUNS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_CHECKLIST_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_CHECKLIST_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_CHECKLIST_RUNS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('CREATE_CHECKLIST_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_CHECKLIST_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_CHECKLIST_RUNS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('READ_CHECKLIST_RUNS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_CHECKLIST_RUN_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_CHECKLIST_RUN_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_CHECKLIST_RUN_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_CHECKLIST_RUN_ITEMS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_CHECKLIST_RUN_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_CHECKLIST_RUN_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_CHECKLIST_RUN_ITEMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('CREATE_CHECKLIST_RUN_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_CHECKLIST_RUN_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_CHECKLIST_RUN_ITEMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('READ_CHECKLIST_RUN_ITEMS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_RISK_ALERTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_RISK_ALERTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_RISK_ALERTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_RISK_ALERTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_RISK_ALERTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_RISK_ALERTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_RISK_ALERTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_RISK_ALERTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('UPDATE_RISK_ALERTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('CREATE_RISK_ALERTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_RISK_ALERTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_RISK_ALERTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_DEPARTMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_DEPARTMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_DEPARTMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_DEPARTMENTS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_DEPARTMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_DEPARTMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_DEPARTMENTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_DEPARTMENTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_EMPLOYEES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_EMPLOYEES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_EMPLOYEES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_EMPLOYEES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_EMPLOYEES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_EMPLOYEES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_EMPLOYEES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_EMPLOYEES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_EMPLOYEES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('READ_EMPLOYEES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_WORK_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_WORK_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_WORK_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_WORK_SHIFTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_WORK_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_WORK_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_WORK_SHIFTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('CREATE_WORK_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_WORK_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_WORK_SHIFTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('READ_WORK_SHIFTS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_SHIFT_ASSIGNMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_SHIFT_ASSIGNMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_SHIFT_ASSIGNMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_SHIFT_ASSIGNMENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_SHIFT_ASSIGNMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_SHIFT_ASSIGNMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_SHIFT_ASSIGNMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('CREATE_SHIFT_ASSIGNMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_SHIFT_ASSIGNMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_SHIFT_ASSIGNMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('READ_SHIFT_ASSIGNMENTS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_ATTENDANCE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_ATTENDANCE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_ATTENDANCE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_ATTENDANCE_RECORDS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_ATTENDANCE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_ATTENDANCE_RECORDS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_ATTENDANCE_RECORDS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_ATTENDANCE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_ATTENDANCE_RECORDS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('CREATE_ATTENDANCE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('READ_ATTENDANCE_RECORDS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_PAYROLL_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_PAYROLL_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_PAYROLL_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_PAYROLL_RUNS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_PAYROLL_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_PAYROLL_RUNS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('CREATE_PAYROLL_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_PAYROLL_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('UPDATE_PAYROLL_RUNS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_PAYROLL_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_PAYROLL_RUNS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_PAYROLL_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_PAYROLL_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_PAYROLL_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_PAYROLL_ITEMS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_PAYROLL_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_PAYROLL_ITEMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('CREATE_PAYROLL_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_PAYROLL_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('UPDATE_PAYROLL_ITEMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_PAYROLL_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_PAYROLL_ITEMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_PERFORMANCE_REVIEWS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_PERFORMANCE_REVIEWS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_PERFORMANCE_REVIEWS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_PERFORMANCE_REVIEWS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_PERFORMANCE_REVIEWS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_PERFORMANCE_REVIEWS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_PERFORMANCE_REVIEWS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_PERFORMANCE_REVIEWS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_PERFORMANCE_REVIEWS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_CHART_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_CHART_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_CHART_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_CHART_ACCOUNTS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_CHART_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_CHART_ACCOUNTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('CREATE_CHART_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_CHART_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('UPDATE_CHART_ACCOUNTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_CHART_ACCOUNTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_JOURNAL_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_JOURNAL_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_JOURNAL_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_JOURNAL_ENTRIES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_JOURNAL_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_JOURNAL_ENTRIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('CREATE_JOURNAL_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_JOURNAL_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('UPDATE_JOURNAL_ENTRIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_JOURNAL_ENTRIES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_JOURNAL_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_JOURNAL_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_JOURNAL_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_JOURNAL_LINES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_JOURNAL_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_JOURNAL_LINES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('CREATE_JOURNAL_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_JOURNAL_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('UPDATE_JOURNAL_LINES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_EXPENSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_EXPENSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_EXPENSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_EXPENSES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_EXPENSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_EXPENSES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('CREATE_EXPENSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_EXPENSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('UPDATE_EXPENSES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_EXPENSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_EXPENSES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_ASSETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_ASSETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_ASSETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_ASSETS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_ASSETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_ASSETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_ASSETS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('CREATE_ASSETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_ASSETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('UPDATE_ASSETS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_ASSETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_ASSETS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_MARKETING_CAMPAIGNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_MARKETING_CAMPAIGNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_MARKETING_CAMPAIGNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_MARKETING_CAMPAIGNS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_MARKETING_CAMPAIGNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_MARKETING_CAMPAIGNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_MARKETING_CAMPAIGNS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_MARKETING_CAMPAIGNS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_MARKETING_CAMPAIGNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_MARKETING_CAMPAIGNS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_CAMPAIGN_RECIPIENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_CAMPAIGN_RECIPIENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_CAMPAIGN_RECIPIENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_CAMPAIGN_RECIPIENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_CAMPAIGN_RECIPIENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_CAMPAIGN_RECIPIENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_CAMPAIGN_RECIPIENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_CAMPAIGN_RECIPIENTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_CAMPAIGN_RECIPIENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_CAMPAIGN_RECIPIENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_AI_REORDER_SUGGESTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('READ_AI_REORDER_SUGGESTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('UPDATE_AI_REORDER_SUGGESTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('DELETE_AI_REORDER_SUGGESTIONS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_AI_REORDER_SUGGESTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('READ_AI_REORDER_SUGGESTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('UPDATE_AI_REORDER_SUGGESTIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('READ_AI_REORDER_SUGGESTIONS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('CREATE_AI_REORDER_SUGGESTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('READ_AI_REORDER_SUGGESTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('UPDATE_AI_REORDER_SUGGESTIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
     
  
      
      
        
            { createdAt, updatedAt, roles_permissionsId: getId("EnterpriseOwner"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("OperationsDirector"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("FinanceLead"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("StoreManager"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("Cashier"), permissionId: getId('CREATE_SEARCH') },
        
      
      
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_USERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_USERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_USERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_USERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_COMPANIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_COMPANIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_COMPANIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_COMPANIES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_BRANCHES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_BRANCHES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_BRANCHES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_BRANCHES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_USER_ROLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_USER_ROLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_USER_ROLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_USER_ROLES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_AUDIT_LOGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_AUDIT_LOGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_AUDIT_LOGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_AUDIT_LOGS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PRODUCT_CATEGORIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PRODUCT_CATEGORIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PRODUCT_CATEGORIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PRODUCT_CATEGORIES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PRODUCTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PRODUCTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PRODUCTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PRODUCTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PRICE_LISTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PRICE_LISTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PRICE_LISTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PRICE_LISTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PRICE_LIST_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PRICE_LIST_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PRICE_LIST_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PRICE_LIST_ITEMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_WAREHOUSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_WAREHOUSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_WAREHOUSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_WAREHOUSES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_INVENTORY_BATCHES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_INVENTORY_BATCHES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_INVENTORY_BATCHES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_INVENTORY_BATCHES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_INVENTORY_TRANSACTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_INVENTORY_TRANSACTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_INVENTORY_TRANSACTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_INVENTORY_TRANSACTIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_STOCK_ADJUSTMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_STOCK_ADJUSTMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_STOCK_ADJUSTMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_STOCK_ADJUSTMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_STOCK_ADJUSTMENT_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_STOCK_ADJUSTMENT_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_STOCK_ADJUSTMENT_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_STOCK_ADJUSTMENT_LINES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_INTERBRANCH_TRANSFERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_INTERBRANCH_TRANSFERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_INTERBRANCH_TRANSFERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_INTERBRANCH_TRANSFERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_TRANSFER_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_TRANSFER_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_TRANSFER_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_TRANSFER_LINES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SUPPLIERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SUPPLIERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SUPPLIERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SUPPLIERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SUPPLIER_PRODUCTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SUPPLIER_PRODUCTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SUPPLIER_PRODUCTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SUPPLIER_PRODUCTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PURCHASE_ORDERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PURCHASE_ORDERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PURCHASE_ORDERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PURCHASE_ORDERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PURCHASE_ORDER_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PURCHASE_ORDER_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PURCHASE_ORDER_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PURCHASE_ORDER_LINES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_GOODS_RECEIPTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_GOODS_RECEIPTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_GOODS_RECEIPTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_GOODS_RECEIPTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_GOODS_RECEIPT_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_GOODS_RECEIPT_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_GOODS_RECEIPT_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_GOODS_RECEIPT_LINES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SUPPLIER_INVOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SUPPLIER_INVOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SUPPLIER_INVOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SUPPLIER_INVOICES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CUSTOMERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CUSTOMERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CUSTOMERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CUSTOMERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_LOYALTY_PROGRAMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_LOYALTY_PROGRAMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_LOYALTY_PROGRAMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_LOYALTY_PROGRAMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_POS_REGISTERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_POS_REGISTERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_POS_REGISTERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_POS_REGISTERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_POS_SHIFTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_POS_SHIFTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_POS_SHIFTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_POS_SHIFTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SALES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SALES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SALES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SALES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SALE_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SALE_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SALE_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SALE_LINES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PAYMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PAYMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PAYMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PAYMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_REFUNDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_REFUNDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_REFUNDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_REFUNDS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_STORE_CHECKLISTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_STORE_CHECKLISTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_STORE_CHECKLISTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_STORE_CHECKLISTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CHECKLIST_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CHECKLIST_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CHECKLIST_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CHECKLIST_ITEMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CHECKLIST_RUNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CHECKLIST_RUNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CHECKLIST_RUNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CHECKLIST_RUNS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CHECKLIST_RUN_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CHECKLIST_RUN_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CHECKLIST_RUN_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CHECKLIST_RUN_ITEMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_RISK_ALERTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_RISK_ALERTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_RISK_ALERTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_RISK_ALERTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_DEPARTMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_DEPARTMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_DEPARTMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_DEPARTMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_EMPLOYEES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_EMPLOYEES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_EMPLOYEES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_EMPLOYEES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_WORK_SHIFTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_WORK_SHIFTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_WORK_SHIFTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_WORK_SHIFTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SHIFT_ASSIGNMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SHIFT_ASSIGNMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SHIFT_ASSIGNMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SHIFT_ASSIGNMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ATTENDANCE_RECORDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ATTENDANCE_RECORDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ATTENDANCE_RECORDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ATTENDANCE_RECORDS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PAYROLL_RUNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PAYROLL_RUNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PAYROLL_RUNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PAYROLL_RUNS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PAYROLL_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PAYROLL_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PAYROLL_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PAYROLL_ITEMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PERFORMANCE_REVIEWS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PERFORMANCE_REVIEWS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PERFORMANCE_REVIEWS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PERFORMANCE_REVIEWS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CHART_ACCOUNTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CHART_ACCOUNTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CHART_ACCOUNTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CHART_ACCOUNTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_JOURNAL_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_JOURNAL_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_JOURNAL_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_JOURNAL_ENTRIES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_JOURNAL_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_JOURNAL_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_JOURNAL_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_JOURNAL_LINES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_EXPENSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_EXPENSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_EXPENSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_EXPENSES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ASSETS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ASSETS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ASSETS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ASSETS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_MARKETING_CAMPAIGNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_MARKETING_CAMPAIGNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_MARKETING_CAMPAIGNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_MARKETING_CAMPAIGNS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CAMPAIGN_RECIPIENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CAMPAIGN_RECIPIENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CAMPAIGN_RECIPIENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CAMPAIGN_RECIPIENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_AI_REORDER_SUGGESTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_AI_REORDER_SUGGESTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_AI_REORDER_SUGGESTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_AI_REORDER_SUGGESTIONS') },
    
    
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_USERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_USERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_USERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_USERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_ROLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_ROLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_ROLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_ROLES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_PERMISSIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_ORGANIZATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_ORGANIZATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_ORGANIZATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_ORGANIZATIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_COMPANIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_COMPANIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_COMPANIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_COMPANIES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_BRANCHES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_BRANCHES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_BRANCHES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_BRANCHES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_USER_ROLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_USER_ROLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_USER_ROLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_USER_ROLES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_AUDIT_LOGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_AUDIT_LOGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_AUDIT_LOGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_AUDIT_LOGS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_PRODUCT_CATEGORIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_PRODUCT_CATEGORIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_PRODUCT_CATEGORIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_PRODUCT_CATEGORIES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_PRODUCTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_PRODUCTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_PRODUCTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_PRODUCTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_PRICE_LISTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_PRICE_LISTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_PRICE_LISTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_PRICE_LISTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_PRICE_LIST_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_PRICE_LIST_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_PRICE_LIST_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_PRICE_LIST_ITEMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_WAREHOUSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_WAREHOUSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_WAREHOUSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_WAREHOUSES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_INVENTORY_BATCHES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_INVENTORY_BATCHES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_INVENTORY_BATCHES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_INVENTORY_BATCHES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_INVENTORY_TRANSACTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_INVENTORY_TRANSACTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_INVENTORY_TRANSACTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_INVENTORY_TRANSACTIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_STOCK_ADJUSTMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_STOCK_ADJUSTMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_STOCK_ADJUSTMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_STOCK_ADJUSTMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_STOCK_ADJUSTMENT_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_STOCK_ADJUSTMENT_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_STOCK_ADJUSTMENT_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_STOCK_ADJUSTMENT_LINES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_INTERBRANCH_TRANSFERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_INTERBRANCH_TRANSFERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_INTERBRANCH_TRANSFERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_INTERBRANCH_TRANSFERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_TRANSFER_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_TRANSFER_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_TRANSFER_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_TRANSFER_LINES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_SUPPLIERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_SUPPLIERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_SUPPLIERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_SUPPLIERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_SUPPLIER_PRODUCTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_SUPPLIER_PRODUCTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_SUPPLIER_PRODUCTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_SUPPLIER_PRODUCTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_PURCHASE_ORDERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_PURCHASE_ORDERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_PURCHASE_ORDERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_PURCHASE_ORDERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_PURCHASE_ORDER_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_PURCHASE_ORDER_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_PURCHASE_ORDER_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_PURCHASE_ORDER_LINES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_GOODS_RECEIPTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_GOODS_RECEIPTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_GOODS_RECEIPTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_GOODS_RECEIPTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_GOODS_RECEIPT_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_GOODS_RECEIPT_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_GOODS_RECEIPT_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_GOODS_RECEIPT_LINES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_SUPPLIER_INVOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_SUPPLIER_INVOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_SUPPLIER_INVOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_SUPPLIER_INVOICES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_CUSTOMERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_CUSTOMERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_CUSTOMERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_CUSTOMERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_LOYALTY_PROGRAMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_LOYALTY_PROGRAMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_LOYALTY_PROGRAMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_LOYALTY_PROGRAMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_POS_REGISTERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_POS_REGISTERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_POS_REGISTERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_POS_REGISTERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_POS_SHIFTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_POS_SHIFTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_POS_SHIFTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_POS_SHIFTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_SALES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_SALES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_SALES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_SALES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_SALE_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_SALE_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_SALE_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_SALE_LINES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_PAYMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_PAYMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_PAYMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_PAYMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_REFUNDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_REFUNDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_REFUNDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_REFUNDS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_STORE_CHECKLISTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_STORE_CHECKLISTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_STORE_CHECKLISTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_STORE_CHECKLISTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_CHECKLIST_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_CHECKLIST_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_CHECKLIST_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_CHECKLIST_ITEMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_CHECKLIST_RUNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_CHECKLIST_RUNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_CHECKLIST_RUNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_CHECKLIST_RUNS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_CHECKLIST_RUN_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_CHECKLIST_RUN_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_CHECKLIST_RUN_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_CHECKLIST_RUN_ITEMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_RISK_ALERTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_RISK_ALERTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_RISK_ALERTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_RISK_ALERTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_DEPARTMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_DEPARTMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_DEPARTMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_DEPARTMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_EMPLOYEES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_EMPLOYEES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_EMPLOYEES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_EMPLOYEES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_WORK_SHIFTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_WORK_SHIFTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_WORK_SHIFTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_WORK_SHIFTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_SHIFT_ASSIGNMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_SHIFT_ASSIGNMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_SHIFT_ASSIGNMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_SHIFT_ASSIGNMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_ATTENDANCE_RECORDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_ATTENDANCE_RECORDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_ATTENDANCE_RECORDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_ATTENDANCE_RECORDS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_PAYROLL_RUNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_PAYROLL_RUNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_PAYROLL_RUNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_PAYROLL_RUNS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_PAYROLL_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_PAYROLL_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_PAYROLL_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_PAYROLL_ITEMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_PERFORMANCE_REVIEWS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_PERFORMANCE_REVIEWS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_PERFORMANCE_REVIEWS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_PERFORMANCE_REVIEWS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_CHART_ACCOUNTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_CHART_ACCOUNTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_CHART_ACCOUNTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_CHART_ACCOUNTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_JOURNAL_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_JOURNAL_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_JOURNAL_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_JOURNAL_ENTRIES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_JOURNAL_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_JOURNAL_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_JOURNAL_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_JOURNAL_LINES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_EXPENSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_EXPENSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_EXPENSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_EXPENSES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_ASSETS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_ASSETS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_ASSETS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_ASSETS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_MARKETING_CAMPAIGNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_MARKETING_CAMPAIGNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_MARKETING_CAMPAIGNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_MARKETING_CAMPAIGNS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_CAMPAIGN_RECIPIENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_CAMPAIGN_RECIPIENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_CAMPAIGN_RECIPIENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_CAMPAIGN_RECIPIENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_AI_REORDER_SUGGESTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_AI_REORDER_SUGGESTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_AI_REORDER_SUGGESTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_AI_REORDER_SUGGESTIONS') },
    
    
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_API_DOCS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_SEARCH') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_API_DOCS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SEARCH') },
    ]);


  await queryInterface.sequelize.query(`UPDATE "users" SET "app_roleId"='${getId("SuperAdmin")}' WHERE "email"='super_admin@flatlogic.com'`);
  await queryInterface.sequelize.query(`UPDATE "users" SET "app_roleId"='${getId("Administrator")}' WHERE "email"='admin@flatlogic.com'`);
  
   
      
      
        
        
           await queryInterface.sequelize.query(`UPDATE "users" SET "app_roleId"='${getId("EnterpriseOwner")}' WHERE "email"='client@hello.com'`);
        await queryInterface.sequelize.query(`UPDATE "users" SET "app_roleId"='${getId("OperationsDirector")}' WHERE "email"='john@doe.com'`);
       
      
      

}
};

