
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("Administrator"), name: "Administrator", createdAt, updatedAt },
      
      
        
          { id: getId("hospital_director"), name: "hospital_director", createdAt, updatedAt },
        
          { id: getId("chief_physician"), name: "chief_physician", createdAt, updatedAt },
        
          { id: getId("finance_manager"), name: "finance_manager", createdAt, updatedAt },
        
          { id: getId("head_nurse"), name: "head_nurse", createdAt, updatedAt },
        
          { id: getId("reception_supervisor"), name: "reception_supervisor", 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","patients","guarantors","doctors","visits","orders","radiology_types","radiology_studies","ct_types","ct_studies","lab_tests","lab_orders","lab_results","endoscopy_cases","surgery_cases","surgery_consumables","anesthesia_records","cathlab_cases","ecg_stress_tests","nursing_staff","cleaning_staff","inventory_consumables","pharmacy_inventory","pharmacy_sales_invoices","suppliers","purchases","patient_invoices","ledger_entries","journal_entries","trial_balances","closing_balances","inpatient_rooms","room_bookings","restaurant_meals","restaurant_inventory","maternity_cases","pregnancy_followups","nicu_incubators","daily_followup_clinic","audit_log","settings",,
    ];
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.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("hospital_director"), permissionId: getId('CREATE_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_USERS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('READ_USERS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_USERS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_USERS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_USERS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_PATIENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_PATIENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_PATIENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_PATIENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_PATIENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('READ_PATIENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('UPDATE_PATIENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('DELETE_PATIENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_PATIENTS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_PATIENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('READ_PATIENTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_PATIENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('READ_PATIENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('UPDATE_PATIENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('DELETE_PATIENTS') },
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_GUARANTORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_GUARANTORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_GUARANTORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_GUARANTORS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_GUARANTORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('READ_GUARANTORS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_GUARANTORS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_GUARANTORS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_GUARANTORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('READ_GUARANTORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('UPDATE_GUARANTORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('DELETE_GUARANTORS') },
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_DOCTORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_DOCTORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_DOCTORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_DOCTORS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_DOCTORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('READ_DOCTORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('UPDATE_DOCTORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('DELETE_DOCTORS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_DOCTORS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_DOCTORS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_DOCTORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('READ_DOCTORS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_VISITS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_VISITS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_VISITS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_VISITS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_VISITS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('READ_VISITS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('UPDATE_VISITS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('DELETE_VISITS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_VISITS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('READ_VISITS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_VISITS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('READ_VISITS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('UPDATE_VISITS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('DELETE_VISITS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_VISITS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('READ_VISITS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('UPDATE_VISITS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('DELETE_VISITS') },
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_ORDERS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('READ_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('UPDATE_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('DELETE_ORDERS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('READ_ORDERS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('READ_ORDERS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('READ_ORDERS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_RADIOLOGY_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_RADIOLOGY_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_RADIOLOGY_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_RADIOLOGY_TYPES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_RADIOLOGY_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('READ_RADIOLOGY_TYPES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_RADIOLOGY_TYPES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_RADIOLOGY_TYPES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_RADIOLOGY_TYPES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_RADIOLOGY_STUDIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_RADIOLOGY_STUDIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_RADIOLOGY_STUDIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_RADIOLOGY_STUDIES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_RADIOLOGY_STUDIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('READ_RADIOLOGY_STUDIES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_RADIOLOGY_STUDIES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_RADIOLOGY_STUDIES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_RADIOLOGY_STUDIES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_CT_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_CT_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_CT_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_CT_TYPES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_CT_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('READ_CT_TYPES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_CT_TYPES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_CT_TYPES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_CT_TYPES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_CT_STUDIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_CT_STUDIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_CT_STUDIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_CT_STUDIES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_CT_STUDIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('READ_CT_STUDIES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_CT_STUDIES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_CT_STUDIES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_CT_STUDIES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_LAB_TESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_LAB_TESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_LAB_TESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_LAB_TESTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_LAB_TESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('READ_LAB_TESTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_LAB_TESTS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_LAB_TESTS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_LAB_TESTS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_LAB_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_LAB_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_LAB_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_LAB_ORDERS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_LAB_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('READ_LAB_ORDERS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_LAB_ORDERS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_LAB_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('READ_LAB_ORDERS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_LAB_ORDERS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_LAB_RESULTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_LAB_RESULTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_LAB_RESULTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_LAB_RESULTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_LAB_RESULTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('READ_LAB_RESULTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_LAB_RESULTS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_LAB_RESULTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('READ_LAB_RESULTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_LAB_RESULTS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_ENDOSCOPY_CASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_ENDOSCOPY_CASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_ENDOSCOPY_CASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_ENDOSCOPY_CASES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_ENDOSCOPY_CASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('READ_ENDOSCOPY_CASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('UPDATE_ENDOSCOPY_CASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('DELETE_ENDOSCOPY_CASES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_ENDOSCOPY_CASES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_ENDOSCOPY_CASES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_ENDOSCOPY_CASES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_SURGERY_CASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_SURGERY_CASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_SURGERY_CASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_SURGERY_CASES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_SURGERY_CASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('READ_SURGERY_CASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('UPDATE_SURGERY_CASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('DELETE_SURGERY_CASES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_SURGERY_CASES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_SURGERY_CASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('READ_SURGERY_CASES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_SURGERY_CASES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_SURGERY_CONSUMABLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_SURGERY_CONSUMABLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_SURGERY_CONSUMABLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_SURGERY_CONSUMABLES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_SURGERY_CONSUMABLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('READ_SURGERY_CONSUMABLES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_SURGERY_CONSUMABLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('READ_SURGERY_CONSUMABLES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_SURGERY_CONSUMABLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('READ_SURGERY_CONSUMABLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('UPDATE_SURGERY_CONSUMABLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('DELETE_SURGERY_CONSUMABLES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_SURGERY_CONSUMABLES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_ANESTHESIA_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_ANESTHESIA_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_ANESTHESIA_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_ANESTHESIA_RECORDS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_ANESTHESIA_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('READ_ANESTHESIA_RECORDS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_ANESTHESIA_RECORDS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_ANESTHESIA_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('READ_ANESTHESIA_RECORDS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_ANESTHESIA_RECORDS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_CATHLAB_CASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_CATHLAB_CASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_CATHLAB_CASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_CATHLAB_CASES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_CATHLAB_CASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('READ_CATHLAB_CASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('UPDATE_CATHLAB_CASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('DELETE_CATHLAB_CASES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_CATHLAB_CASES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_CATHLAB_CASES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_CATHLAB_CASES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_ECG_STRESS_TESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_ECG_STRESS_TESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_ECG_STRESS_TESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_ECG_STRESS_TESTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_ECG_STRESS_TESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('READ_ECG_STRESS_TESTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_ECG_STRESS_TESTS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_ECG_STRESS_TESTS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_ECG_STRESS_TESTS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_NURSING_STAFF') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_NURSING_STAFF') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_NURSING_STAFF') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_NURSING_STAFF') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_NURSING_STAFF') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('READ_NURSING_STAFF') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_NURSING_STAFF') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_NURSING_STAFF') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('READ_NURSING_STAFF') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('UPDATE_NURSING_STAFF') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('DELETE_NURSING_STAFF') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_NURSING_STAFF') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_CLEANING_STAFF') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_CLEANING_STAFF') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_CLEANING_STAFF') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_CLEANING_STAFF') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_CLEANING_STAFF') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_CLEANING_STAFF') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_CLEANING_STAFF') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('READ_CLEANING_STAFF') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_CLEANING_STAFF') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_INVENTORY_CONSUMABLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_INVENTORY_CONSUMABLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_INVENTORY_CONSUMABLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_INVENTORY_CONSUMABLES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_INVENTORY_CONSUMABLES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_INVENTORY_CONSUMABLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('READ_INVENTORY_CONSUMABLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('UPDATE_INVENTORY_CONSUMABLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('DELETE_INVENTORY_CONSUMABLES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_INVENTORY_CONSUMABLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('READ_INVENTORY_CONSUMABLES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_INVENTORY_CONSUMABLES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_PHARMACY_INVENTORY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_PHARMACY_INVENTORY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_PHARMACY_INVENTORY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_PHARMACY_INVENTORY') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_PHARMACY_INVENTORY') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_PHARMACY_INVENTORY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('READ_PHARMACY_INVENTORY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('UPDATE_PHARMACY_INVENTORY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('DELETE_PHARMACY_INVENTORY') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_PHARMACY_INVENTORY') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_PHARMACY_INVENTORY') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_PHARMACY_SALES_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_PHARMACY_SALES_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_PHARMACY_SALES_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_PHARMACY_SALES_INVOICES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_PHARMACY_SALES_INVOICES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_PHARMACY_SALES_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('READ_PHARMACY_SALES_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('UPDATE_PHARMACY_SALES_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('DELETE_PHARMACY_SALES_INVOICES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_PHARMACY_SALES_INVOICES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_PHARMACY_SALES_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('READ_PHARMACY_SALES_INVOICES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_SUPPLIERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_SUPPLIERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_SUPPLIERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_SUPPLIERS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_SUPPLIERS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_SUPPLIERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('READ_SUPPLIERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('UPDATE_SUPPLIERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('DELETE_SUPPLIERS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_SUPPLIERS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_SUPPLIERS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_PURCHASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_PURCHASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_PURCHASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_PURCHASES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_PURCHASES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_PURCHASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('READ_PURCHASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('UPDATE_PURCHASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('DELETE_PURCHASES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_PURCHASES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_PURCHASES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_PATIENT_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_PATIENT_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_PATIENT_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_PATIENT_INVOICES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_PATIENT_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('READ_PATIENT_INVOICES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_PATIENT_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('READ_PATIENT_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('UPDATE_PATIENT_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('DELETE_PATIENT_INVOICES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_PATIENT_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('READ_PATIENT_INVOICES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_PATIENT_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('READ_PATIENT_INVOICES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_LEDGER_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_LEDGER_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_LEDGER_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_LEDGER_ENTRIES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_LEDGER_ENTRIES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_LEDGER_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('READ_LEDGER_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('UPDATE_LEDGER_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('DELETE_LEDGER_ENTRIES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_LEDGER_ENTRIES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_LEDGER_ENTRIES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_JOURNAL_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_JOURNAL_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_JOURNAL_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_JOURNAL_ENTRIES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_JOURNAL_ENTRIES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_JOURNAL_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('READ_JOURNAL_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('UPDATE_JOURNAL_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('DELETE_JOURNAL_ENTRIES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_JOURNAL_ENTRIES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_JOURNAL_ENTRIES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_TRIAL_BALANCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_TRIAL_BALANCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_TRIAL_BALANCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_TRIAL_BALANCES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_TRIAL_BALANCES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_TRIAL_BALANCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('READ_TRIAL_BALANCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('UPDATE_TRIAL_BALANCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('DELETE_TRIAL_BALANCES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_TRIAL_BALANCES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_TRIAL_BALANCES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_CLOSING_BALANCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_CLOSING_BALANCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_CLOSING_BALANCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_CLOSING_BALANCES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_CLOSING_BALANCES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_CLOSING_BALANCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('READ_CLOSING_BALANCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('UPDATE_CLOSING_BALANCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('DELETE_CLOSING_BALANCES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_CLOSING_BALANCES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_CLOSING_BALANCES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_INPATIENT_ROOMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_INPATIENT_ROOMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_INPATIENT_ROOMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_INPATIENT_ROOMS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_INPATIENT_ROOMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('READ_INPATIENT_ROOMS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_INPATIENT_ROOMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('READ_INPATIENT_ROOMS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_INPATIENT_ROOMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('READ_INPATIENT_ROOMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('UPDATE_INPATIENT_ROOMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('DELETE_INPATIENT_ROOMS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_INPATIENT_ROOMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('READ_INPATIENT_ROOMS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_ROOM_BOOKINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_ROOM_BOOKINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_ROOM_BOOKINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_ROOM_BOOKINGS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_ROOM_BOOKINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('READ_ROOM_BOOKINGS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_ROOM_BOOKINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('READ_ROOM_BOOKINGS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_ROOM_BOOKINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('READ_ROOM_BOOKINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('UPDATE_ROOM_BOOKINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('DELETE_ROOM_BOOKINGS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_ROOM_BOOKINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('READ_ROOM_BOOKINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('UPDATE_ROOM_BOOKINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('DELETE_ROOM_BOOKINGS') },
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_RESTAURANT_MEALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_RESTAURANT_MEALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_RESTAURANT_MEALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_RESTAURANT_MEALS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_RESTAURANT_MEALS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_RESTAURANT_MEALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('READ_RESTAURANT_MEALS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_RESTAURANT_MEALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('READ_RESTAURANT_MEALS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_RESTAURANT_MEALS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_RESTAURANT_INVENTORY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_RESTAURANT_INVENTORY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_RESTAURANT_INVENTORY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_RESTAURANT_INVENTORY') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_RESTAURANT_INVENTORY') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_RESTAURANT_INVENTORY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('READ_RESTAURANT_INVENTORY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('UPDATE_RESTAURANT_INVENTORY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('DELETE_RESTAURANT_INVENTORY') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_RESTAURANT_INVENTORY') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_RESTAURANT_INVENTORY') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_MATERNITY_CASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_MATERNITY_CASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_MATERNITY_CASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_MATERNITY_CASES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_MATERNITY_CASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('READ_MATERNITY_CASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('UPDATE_MATERNITY_CASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('DELETE_MATERNITY_CASES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_MATERNITY_CASES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_MATERNITY_CASES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('READ_MATERNITY_CASES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_MATERNITY_CASES') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_PREGNANCY_FOLLOWUPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_PREGNANCY_FOLLOWUPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_PREGNANCY_FOLLOWUPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_PREGNANCY_FOLLOWUPS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_PREGNANCY_FOLLOWUPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('READ_PREGNANCY_FOLLOWUPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('UPDATE_PREGNANCY_FOLLOWUPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('DELETE_PREGNANCY_FOLLOWUPS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_PREGNANCY_FOLLOWUPS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_PREGNANCY_FOLLOWUPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('READ_PREGNANCY_FOLLOWUPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('UPDATE_PREGNANCY_FOLLOWUPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('DELETE_PREGNANCY_FOLLOWUPS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_PREGNANCY_FOLLOWUPS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_NICU_INCUBATORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_NICU_INCUBATORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_NICU_INCUBATORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_NICU_INCUBATORS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_NICU_INCUBATORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('READ_NICU_INCUBATORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('UPDATE_NICU_INCUBATORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('DELETE_NICU_INCUBATORS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_NICU_INCUBATORS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_NICU_INCUBATORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('READ_NICU_INCUBATORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('UPDATE_NICU_INCUBATORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('DELETE_NICU_INCUBATORS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_NICU_INCUBATORS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_DAILY_FOLLOWUP_CLINIC') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_DAILY_FOLLOWUP_CLINIC') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_DAILY_FOLLOWUP_CLINIC') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_DAILY_FOLLOWUP_CLINIC') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_DAILY_FOLLOWUP_CLINIC') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('READ_DAILY_FOLLOWUP_CLINIC') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('UPDATE_DAILY_FOLLOWUP_CLINIC') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('DELETE_DAILY_FOLLOWUP_CLINIC') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_DAILY_FOLLOWUP_CLINIC') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_DAILY_FOLLOWUP_CLINIC') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('READ_DAILY_FOLLOWUP_CLINIC') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('UPDATE_DAILY_FOLLOWUP_CLINIC') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('DELETE_DAILY_FOLLOWUP_CLINIC') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_DAILY_FOLLOWUP_CLINIC') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_AUDIT_LOG') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_AUDIT_LOG') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_AUDIT_LOG') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_AUDIT_LOG') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_AUDIT_LOG') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_AUDIT_LOG') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('READ_AUDIT_LOG') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_AUDIT_LOG') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_AUDIT_LOG') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('READ_AUDIT_LOG') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_SETTINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('READ_SETTINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('UPDATE_SETTINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('DELETE_SETTINGS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_SETTINGS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_SETTINGS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_SETTINGS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), permissionId: getId('CREATE_SETTINGS') },
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
     
  
      
      
        
            { createdAt, updatedAt, roles_permissionsId: getId("hospital_director"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("chief_physician"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("finance_manager"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("head_nurse"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("reception_supervisor"), 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_ROLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ROLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ROLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ROLES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PERMISSIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PATIENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PATIENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PATIENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PATIENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_GUARANTORS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_GUARANTORS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_GUARANTORS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_GUARANTORS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_DOCTORS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_DOCTORS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_DOCTORS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_DOCTORS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_VISITS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_VISITS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_VISITS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_VISITS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ORDERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ORDERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ORDERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ORDERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_RADIOLOGY_TYPES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_RADIOLOGY_TYPES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_RADIOLOGY_TYPES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_RADIOLOGY_TYPES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_RADIOLOGY_STUDIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_RADIOLOGY_STUDIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_RADIOLOGY_STUDIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_RADIOLOGY_STUDIES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CT_TYPES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CT_TYPES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CT_TYPES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CT_TYPES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CT_STUDIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CT_STUDIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CT_STUDIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CT_STUDIES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_LAB_TESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_LAB_TESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_LAB_TESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_LAB_TESTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_LAB_ORDERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_LAB_ORDERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_LAB_ORDERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_LAB_ORDERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_LAB_RESULTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_LAB_RESULTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_LAB_RESULTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_LAB_RESULTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ENDOSCOPY_CASES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ENDOSCOPY_CASES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ENDOSCOPY_CASES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ENDOSCOPY_CASES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SURGERY_CASES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SURGERY_CASES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SURGERY_CASES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SURGERY_CASES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SURGERY_CONSUMABLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SURGERY_CONSUMABLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SURGERY_CONSUMABLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SURGERY_CONSUMABLES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ANESTHESIA_RECORDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ANESTHESIA_RECORDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ANESTHESIA_RECORDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ANESTHESIA_RECORDS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CATHLAB_CASES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CATHLAB_CASES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CATHLAB_CASES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CATHLAB_CASES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ECG_STRESS_TESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ECG_STRESS_TESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ECG_STRESS_TESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ECG_STRESS_TESTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_NURSING_STAFF') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_NURSING_STAFF') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_NURSING_STAFF') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_NURSING_STAFF') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CLEANING_STAFF') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CLEANING_STAFF') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CLEANING_STAFF') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CLEANING_STAFF') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_INVENTORY_CONSUMABLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_INVENTORY_CONSUMABLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_INVENTORY_CONSUMABLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_INVENTORY_CONSUMABLES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PHARMACY_INVENTORY') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PHARMACY_INVENTORY') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PHARMACY_INVENTORY') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PHARMACY_INVENTORY') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PHARMACY_SALES_INVOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PHARMACY_SALES_INVOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PHARMACY_SALES_INVOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PHARMACY_SALES_INVOICES') },
    
    { 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_PURCHASES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PURCHASES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PURCHASES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PURCHASES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PATIENT_INVOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PATIENT_INVOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PATIENT_INVOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PATIENT_INVOICES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_LEDGER_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_LEDGER_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_LEDGER_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_LEDGER_ENTRIES') },
    
    { 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_TRIAL_BALANCES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_TRIAL_BALANCES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_TRIAL_BALANCES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_TRIAL_BALANCES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CLOSING_BALANCES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CLOSING_BALANCES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CLOSING_BALANCES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CLOSING_BALANCES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_INPATIENT_ROOMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_INPATIENT_ROOMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_INPATIENT_ROOMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_INPATIENT_ROOMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ROOM_BOOKINGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ROOM_BOOKINGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ROOM_BOOKINGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ROOM_BOOKINGS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_RESTAURANT_MEALS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_RESTAURANT_MEALS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_RESTAURANT_MEALS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_RESTAURANT_MEALS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_RESTAURANT_INVENTORY') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_RESTAURANT_INVENTORY') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_RESTAURANT_INVENTORY') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_RESTAURANT_INVENTORY') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_MATERNITY_CASES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_MATERNITY_CASES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_MATERNITY_CASES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_MATERNITY_CASES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PREGNANCY_FOLLOWUPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PREGNANCY_FOLLOWUPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PREGNANCY_FOLLOWUPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PREGNANCY_FOLLOWUPS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_NICU_INCUBATORS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_NICU_INCUBATORS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_NICU_INCUBATORS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_NICU_INCUBATORS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_DAILY_FOLLOWUP_CLINIC') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_DAILY_FOLLOWUP_CLINIC') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_DAILY_FOLLOWUP_CLINIC') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_DAILY_FOLLOWUP_CLINIC') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_AUDIT_LOG') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_AUDIT_LOG') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_AUDIT_LOG') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_AUDIT_LOG') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SETTINGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SETTINGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SETTINGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SETTINGS') },
    
    
    
    { 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("hospital_director")}' WHERE "email"='client@hello.com'`);
        await queryInterface.sequelize.query(`UPDATE "users" SET "app_roleId"='${getId("chief_physician")}' WHERE "email"='john@doe.com'`);
       
      
      

}
};

