
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("HotelOwner"), name: "Hotel Owner", createdAt, updatedAt },
        
          { id: getId("GeneralManager"), name: "General Manager", createdAt, updatedAt },
        
          { id: getId("RevenueManager"), name: "Revenue Manager", createdAt, updatedAt },
        
          { id: getId("FrontDeskAgent"), name: "Front Desk Agent", createdAt, updatedAt },
        
          { id: getId("HousekeepingSupervisor"), name: "Housekeeping 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","languages","gdpr_consents","gdpr_requests","audit_logs","hotels","room_types","rooms","amenities","room_features","rate_plans","seasonal_rates","inventory_blocks","guests","bookings","booking_guests","payments","invoices","messages","promo_codes","booking_discounts","housekeeping_tasks","service_requests","content_pages","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("HotelOwner"), permissionId: getId('CREATE_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('READ_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('DELETE_USERS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('READ_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('READ_USERS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('READ_USERS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HousekeepingSupervisor"), permissionId: getId('READ_USERS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('CREATE_LANGUAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('READ_LANGUAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('UPDATE_LANGUAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('DELETE_LANGUAGES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('READ_LANGUAGES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('READ_LANGUAGES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('READ_LANGUAGES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HousekeepingSupervisor"), permissionId: getId('READ_LANGUAGES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('CREATE_GDPR_CONSENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('READ_GDPR_CONSENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('UPDATE_GDPR_CONSENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('DELETE_GDPR_CONSENTS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('READ_GDPR_CONSENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('UPDATE_GDPR_CONSENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('READ_GDPR_CONSENTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('CREATE_GDPR_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('READ_GDPR_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('UPDATE_GDPR_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('DELETE_GDPR_REQUESTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('CREATE_GDPR_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('READ_GDPR_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('UPDATE_GDPR_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('DELETE_GDPR_REQUESTS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('READ_GDPR_REQUESTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('CREATE_GDPR_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('READ_GDPR_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('UPDATE_GDPR_REQUESTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HousekeepingSupervisor"), permissionId: getId('READ_GDPR_REQUESTS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('READ_AUDIT_LOGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('UPDATE_AUDIT_LOGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('DELETE_AUDIT_LOGS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('READ_AUDIT_LOGS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('READ_AUDIT_LOGS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('READ_AUDIT_LOGS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HousekeepingSupervisor"), permissionId: getId('READ_AUDIT_LOGS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('CREATE_HOTELS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('READ_HOTELS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('UPDATE_HOTELS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('DELETE_HOTELS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('READ_HOTELS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('UPDATE_HOTELS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('READ_HOTELS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('READ_HOTELS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HousekeepingSupervisor"), permissionId: getId('READ_HOTELS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('CREATE_ROOM_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('READ_ROOM_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('UPDATE_ROOM_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('DELETE_ROOM_TYPES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('CREATE_ROOM_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('READ_ROOM_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('UPDATE_ROOM_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('DELETE_ROOM_TYPES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('READ_ROOM_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('UPDATE_ROOM_TYPES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('READ_ROOM_TYPES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HousekeepingSupervisor"), permissionId: getId('READ_ROOM_TYPES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('CREATE_ROOMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('READ_ROOMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('UPDATE_ROOMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('DELETE_ROOMS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('CREATE_ROOMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('READ_ROOMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('UPDATE_ROOMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('DELETE_ROOMS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('READ_ROOMS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('READ_ROOMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('UPDATE_ROOMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HousekeepingSupervisor"), permissionId: getId('READ_ROOMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HousekeepingSupervisor"), permissionId: getId('UPDATE_ROOMS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('CREATE_AMENITIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('READ_AMENITIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('UPDATE_AMENITIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('DELETE_AMENITIES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('CREATE_AMENITIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('READ_AMENITIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('UPDATE_AMENITIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('DELETE_AMENITIES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('READ_AMENITIES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('READ_AMENITIES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HousekeepingSupervisor"), permissionId: getId('READ_AMENITIES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('CREATE_ROOM_FEATURES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('READ_ROOM_FEATURES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('UPDATE_ROOM_FEATURES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('DELETE_ROOM_FEATURES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('CREATE_ROOM_FEATURES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('READ_ROOM_FEATURES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('UPDATE_ROOM_FEATURES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('DELETE_ROOM_FEATURES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('READ_ROOM_FEATURES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('READ_ROOM_FEATURES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HousekeepingSupervisor"), permissionId: getId('READ_ROOM_FEATURES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('CREATE_RATE_PLANS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('READ_RATE_PLANS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('UPDATE_RATE_PLANS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('DELETE_RATE_PLANS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('CREATE_RATE_PLANS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('READ_RATE_PLANS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('UPDATE_RATE_PLANS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('DELETE_RATE_PLANS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('CREATE_RATE_PLANS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('READ_RATE_PLANS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('UPDATE_RATE_PLANS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('DELETE_RATE_PLANS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('READ_RATE_PLANS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('CREATE_SEASONAL_RATES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('READ_SEASONAL_RATES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('UPDATE_SEASONAL_RATES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('DELETE_SEASONAL_RATES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('CREATE_SEASONAL_RATES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('READ_SEASONAL_RATES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('UPDATE_SEASONAL_RATES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('DELETE_SEASONAL_RATES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('CREATE_SEASONAL_RATES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('READ_SEASONAL_RATES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('UPDATE_SEASONAL_RATES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('DELETE_SEASONAL_RATES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('READ_SEASONAL_RATES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('CREATE_INVENTORY_BLOCKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('READ_INVENTORY_BLOCKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('UPDATE_INVENTORY_BLOCKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('DELETE_INVENTORY_BLOCKS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('CREATE_INVENTORY_BLOCKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('READ_INVENTORY_BLOCKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('UPDATE_INVENTORY_BLOCKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('DELETE_INVENTORY_BLOCKS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('CREATE_INVENTORY_BLOCKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('READ_INVENTORY_BLOCKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('UPDATE_INVENTORY_BLOCKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('DELETE_INVENTORY_BLOCKS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('READ_INVENTORY_BLOCKS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HousekeepingSupervisor"), permissionId: getId('READ_INVENTORY_BLOCKS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('CREATE_GUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('READ_GUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('UPDATE_GUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('DELETE_GUESTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('CREATE_GUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('READ_GUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('UPDATE_GUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('DELETE_GUESTS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('READ_GUESTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('CREATE_GUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('READ_GUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('UPDATE_GUESTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HousekeepingSupervisor"), permissionId: getId('READ_GUESTS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('CREATE_BOOKINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('READ_BOOKINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('UPDATE_BOOKINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('DELETE_BOOKINGS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('CREATE_BOOKINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('READ_BOOKINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('UPDATE_BOOKINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('DELETE_BOOKINGS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('READ_BOOKINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('UPDATE_BOOKINGS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('CREATE_BOOKINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('READ_BOOKINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('UPDATE_BOOKINGS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HousekeepingSupervisor"), permissionId: getId('READ_BOOKINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HousekeepingSupervisor"), permissionId: getId('UPDATE_BOOKINGS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('CREATE_BOOKING_GUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('READ_BOOKING_GUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('UPDATE_BOOKING_GUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('DELETE_BOOKING_GUESTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('CREATE_BOOKING_GUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('READ_BOOKING_GUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('UPDATE_BOOKING_GUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('DELETE_BOOKING_GUESTS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('READ_BOOKING_GUESTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('CREATE_BOOKING_GUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('READ_BOOKING_GUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('UPDATE_BOOKING_GUESTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HousekeepingSupervisor"), permissionId: getId('READ_BOOKING_GUESTS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('CREATE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('READ_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('UPDATE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('DELETE_PAYMENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('CREATE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('READ_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('UPDATE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('DELETE_PAYMENTS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('READ_PAYMENTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('CREATE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('READ_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('UPDATE_PAYMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('CREATE_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('READ_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('UPDATE_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('DELETE_INVOICES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('CREATE_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('READ_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('UPDATE_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('DELETE_INVOICES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('READ_INVOICES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('READ_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('UPDATE_INVOICES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('CREATE_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('READ_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('UPDATE_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('DELETE_MESSAGES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('CREATE_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('READ_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('UPDATE_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('DELETE_MESSAGES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('READ_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('UPDATE_MESSAGES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('CREATE_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('READ_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('UPDATE_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('DELETE_MESSAGES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HousekeepingSupervisor"), permissionId: getId('READ_MESSAGES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('CREATE_PROMO_CODES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('READ_PROMO_CODES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('UPDATE_PROMO_CODES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('DELETE_PROMO_CODES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('CREATE_PROMO_CODES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('READ_PROMO_CODES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('UPDATE_PROMO_CODES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('DELETE_PROMO_CODES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('CREATE_PROMO_CODES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('READ_PROMO_CODES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('UPDATE_PROMO_CODES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('DELETE_PROMO_CODES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('READ_PROMO_CODES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('CREATE_BOOKING_DISCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('READ_BOOKING_DISCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('UPDATE_BOOKING_DISCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('DELETE_BOOKING_DISCOUNTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('CREATE_BOOKING_DISCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('READ_BOOKING_DISCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('UPDATE_BOOKING_DISCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('DELETE_BOOKING_DISCOUNTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('CREATE_BOOKING_DISCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('READ_BOOKING_DISCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('UPDATE_BOOKING_DISCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('DELETE_BOOKING_DISCOUNTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('CREATE_BOOKING_DISCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('READ_BOOKING_DISCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('UPDATE_BOOKING_DISCOUNTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('CREATE_HOUSEKEEPING_TASKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('READ_HOUSEKEEPING_TASKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('UPDATE_HOUSEKEEPING_TASKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('DELETE_HOUSEKEEPING_TASKS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('CREATE_HOUSEKEEPING_TASKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('READ_HOUSEKEEPING_TASKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('UPDATE_HOUSEKEEPING_TASKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('DELETE_HOUSEKEEPING_TASKS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('READ_HOUSEKEEPING_TASKS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('READ_HOUSEKEEPING_TASKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('UPDATE_HOUSEKEEPING_TASKS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HousekeepingSupervisor"), permissionId: getId('CREATE_HOUSEKEEPING_TASKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HousekeepingSupervisor"), permissionId: getId('READ_HOUSEKEEPING_TASKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HousekeepingSupervisor"), permissionId: getId('UPDATE_HOUSEKEEPING_TASKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HousekeepingSupervisor"), permissionId: getId('DELETE_HOUSEKEEPING_TASKS') },
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('CREATE_SERVICE_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('READ_SERVICE_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('UPDATE_SERVICE_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('DELETE_SERVICE_REQUESTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('CREATE_SERVICE_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('READ_SERVICE_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('UPDATE_SERVICE_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('DELETE_SERVICE_REQUESTS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('READ_SERVICE_REQUESTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('CREATE_SERVICE_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('READ_SERVICE_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('UPDATE_SERVICE_REQUESTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HousekeepingSupervisor"), permissionId: getId('CREATE_SERVICE_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HousekeepingSupervisor"), permissionId: getId('READ_SERVICE_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HousekeepingSupervisor"), permissionId: getId('UPDATE_SERVICE_REQUESTS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('CREATE_CONTENT_PAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('READ_CONTENT_PAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('UPDATE_CONTENT_PAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('DELETE_CONTENT_PAGES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('CREATE_CONTENT_PAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('READ_CONTENT_PAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('UPDATE_CONTENT_PAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('DELETE_CONTENT_PAGES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('READ_CONTENT_PAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('UPDATE_CONTENT_PAGES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('READ_CONTENT_PAGES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('CREATE_SETTINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('READ_SETTINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('UPDATE_SETTINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('DELETE_SETTINGS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('READ_SETTINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('UPDATE_SETTINGS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('READ_SETTINGS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
     
  
      
      
        
            { createdAt, updatedAt, roles_permissionsId: getId("HotelOwner"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("GeneralManager"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("RevenueManager"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("FrontDeskAgent"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("HousekeepingSupervisor"), 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_LANGUAGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_LANGUAGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_LANGUAGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_LANGUAGES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_GDPR_CONSENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_GDPR_CONSENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_GDPR_CONSENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_GDPR_CONSENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_GDPR_REQUESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_GDPR_REQUESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_GDPR_REQUESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_GDPR_REQUESTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_AUDIT_LOGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_AUDIT_LOGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_AUDIT_LOGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_AUDIT_LOGS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_HOTELS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_HOTELS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_HOTELS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_HOTELS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ROOM_TYPES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ROOM_TYPES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ROOM_TYPES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ROOM_TYPES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ROOMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ROOMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ROOMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ROOMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_AMENITIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_AMENITIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_AMENITIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_AMENITIES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ROOM_FEATURES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ROOM_FEATURES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ROOM_FEATURES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ROOM_FEATURES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_RATE_PLANS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_RATE_PLANS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_RATE_PLANS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_RATE_PLANS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SEASONAL_RATES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SEASONAL_RATES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SEASONAL_RATES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SEASONAL_RATES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_INVENTORY_BLOCKS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_INVENTORY_BLOCKS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_INVENTORY_BLOCKS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_INVENTORY_BLOCKS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_GUESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_GUESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_GUESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_GUESTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_BOOKINGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_BOOKINGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_BOOKINGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_BOOKINGS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_BOOKING_GUESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_BOOKING_GUESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_BOOKING_GUESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_BOOKING_GUESTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PAYMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PAYMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PAYMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PAYMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_INVOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_INVOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_INVOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_INVOICES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_MESSAGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_MESSAGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_MESSAGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_MESSAGES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PROMO_CODES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PROMO_CODES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PROMO_CODES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PROMO_CODES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_BOOKING_DISCOUNTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_BOOKING_DISCOUNTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_BOOKING_DISCOUNTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_BOOKING_DISCOUNTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_HOUSEKEEPING_TASKS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_HOUSEKEEPING_TASKS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_HOUSEKEEPING_TASKS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_HOUSEKEEPING_TASKS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SERVICE_REQUESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SERVICE_REQUESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SERVICE_REQUESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SERVICE_REQUESTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CONTENT_PAGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CONTENT_PAGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CONTENT_PAGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CONTENT_PAGES') },
    
    { 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("HotelOwner")}' WHERE "email"='client@hello.com'`);
        await queryInterface.sequelize.query(`UPDATE "users" SET "app_roleId"='${getId("GeneralManager")}' WHERE "email"='john@doe.com'`);
       
      
      

}
};

