
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("pdg"), name: "pdg", createdAt, updatedAt },
        
          { id: getId("dg"), name: "dg", createdAt, updatedAt },
        
          { id: getId("dga1"), name: "dga1", createdAt, updatedAt },
        
          { id: getId("superviseur"), name: "superviseur", createdAt, updatedAt },
        
          { id: getId("client"), name: "client", 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","account_approvals","restaurants","restaurant_tables","work_schedules","work_shifts","attendance_events","geofence_alerts","menu_categories","menu_items","orders","order_items","reservations","payments","loyalty_accounts","loyalty_rules","loyalty_transactions","customer_reviews","notification_events","stock_locations","stock_items","stock_movements","invoices","audit_logs",,
    ];
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("pdg"), permissionId: getId('CREATE_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('READ_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('DELETE_USERS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('CREATE_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('READ_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('CREATE_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('READ_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('READ_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("client"), permissionId: getId('READ_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("client"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('CREATE_ACCOUNT_APPROVALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('READ_ACCOUNT_APPROVALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('UPDATE_ACCOUNT_APPROVALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('DELETE_ACCOUNT_APPROVALS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('CREATE_ACCOUNT_APPROVALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('READ_ACCOUNT_APPROVALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('UPDATE_ACCOUNT_APPROVALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('DELETE_ACCOUNT_APPROVALS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('CREATE_ACCOUNT_APPROVALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('READ_ACCOUNT_APPROVALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('UPDATE_ACCOUNT_APPROVALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('DELETE_ACCOUNT_APPROVALS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('UPDATE_ACCOUNT_APPROVALS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('CREATE_RESTAURANTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('READ_RESTAURANTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('UPDATE_RESTAURANTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('DELETE_RESTAURANTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('CREATE_RESTAURANTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('READ_RESTAURANTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('UPDATE_RESTAURANTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('READ_RESTAURANTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('UPDATE_RESTAURANTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('READ_RESTAURANTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("client"), permissionId: getId('READ_RESTAURANTS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('CREATE_RESTAURANT_TABLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('READ_RESTAURANT_TABLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('UPDATE_RESTAURANT_TABLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('DELETE_RESTAURANT_TABLES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('CREATE_RESTAURANT_TABLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('READ_RESTAURANT_TABLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('UPDATE_RESTAURANT_TABLES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('READ_RESTAURANT_TABLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('UPDATE_RESTAURANT_TABLES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('READ_RESTAURANT_TABLES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("client"), permissionId: getId('READ_RESTAURANT_TABLES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('CREATE_WORK_SCHEDULES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('READ_WORK_SCHEDULES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('UPDATE_WORK_SCHEDULES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('DELETE_WORK_SCHEDULES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('CREATE_WORK_SCHEDULES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('READ_WORK_SCHEDULES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('UPDATE_WORK_SCHEDULES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('DELETE_WORK_SCHEDULES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('CREATE_WORK_SCHEDULES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('READ_WORK_SCHEDULES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('UPDATE_WORK_SCHEDULES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('DELETE_WORK_SCHEDULES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('CREATE_WORK_SCHEDULES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('READ_WORK_SCHEDULES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('UPDATE_WORK_SCHEDULES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('CREATE_WORK_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('READ_WORK_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('UPDATE_WORK_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('DELETE_WORK_SHIFTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('CREATE_WORK_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('READ_WORK_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('UPDATE_WORK_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('DELETE_WORK_SHIFTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('CREATE_WORK_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('READ_WORK_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('UPDATE_WORK_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('DELETE_WORK_SHIFTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('CREATE_WORK_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('READ_WORK_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('UPDATE_WORK_SHIFTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('CREATE_ATTENDANCE_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('READ_ATTENDANCE_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('UPDATE_ATTENDANCE_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('DELETE_ATTENDANCE_EVENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('CREATE_ATTENDANCE_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('READ_ATTENDANCE_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('UPDATE_ATTENDANCE_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('DELETE_ATTENDANCE_EVENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('CREATE_ATTENDANCE_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('READ_ATTENDANCE_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('UPDATE_ATTENDANCE_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('DELETE_ATTENDANCE_EVENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('CREATE_ATTENDANCE_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('READ_ATTENDANCE_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('UPDATE_ATTENDANCE_EVENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('CREATE_GEOFENCE_ALERTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('READ_GEOFENCE_ALERTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('UPDATE_GEOFENCE_ALERTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('DELETE_GEOFENCE_ALERTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('CREATE_GEOFENCE_ALERTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('READ_GEOFENCE_ALERTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('UPDATE_GEOFENCE_ALERTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('DELETE_GEOFENCE_ALERTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('CREATE_GEOFENCE_ALERTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('READ_GEOFENCE_ALERTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('UPDATE_GEOFENCE_ALERTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('DELETE_GEOFENCE_ALERTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('CREATE_GEOFENCE_ALERTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('READ_GEOFENCE_ALERTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('CREATE_MENU_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('READ_MENU_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('UPDATE_MENU_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('DELETE_MENU_CATEGORIES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('CREATE_MENU_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('READ_MENU_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('UPDATE_MENU_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('DELETE_MENU_CATEGORIES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('CREATE_MENU_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('READ_MENU_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('UPDATE_MENU_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('DELETE_MENU_CATEGORIES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('READ_MENU_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('UPDATE_MENU_CATEGORIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("client"), permissionId: getId('READ_MENU_CATEGORIES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('CREATE_MENU_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('READ_MENU_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('UPDATE_MENU_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('DELETE_MENU_ITEMS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('CREATE_MENU_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('READ_MENU_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('UPDATE_MENU_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('DELETE_MENU_ITEMS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('CREATE_MENU_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('READ_MENU_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('UPDATE_MENU_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('DELETE_MENU_ITEMS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('READ_MENU_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('UPDATE_MENU_ITEMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("client"), permissionId: getId('READ_MENU_ITEMS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('CREATE_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('READ_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('UPDATE_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('DELETE_ORDERS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('CREATE_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('READ_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('UPDATE_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('DELETE_ORDERS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('CREATE_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('READ_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('UPDATE_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('DELETE_ORDERS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('READ_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('UPDATE_ORDERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("client"), permissionId: getId('CREATE_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("client"), permissionId: getId('READ_ORDERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("client"), permissionId: getId('UPDATE_ORDERS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('CREATE_ORDER_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('READ_ORDER_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('UPDATE_ORDER_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('DELETE_ORDER_ITEMS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('CREATE_ORDER_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('READ_ORDER_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('UPDATE_ORDER_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('DELETE_ORDER_ITEMS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('CREATE_ORDER_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('READ_ORDER_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('UPDATE_ORDER_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('DELETE_ORDER_ITEMS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('READ_ORDER_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('UPDATE_ORDER_ITEMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("client"), permissionId: getId('CREATE_ORDER_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("client"), permissionId: getId('READ_ORDER_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("client"), permissionId: getId('UPDATE_ORDER_ITEMS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('CREATE_RESERVATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('READ_RESERVATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('UPDATE_RESERVATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('DELETE_RESERVATIONS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('CREATE_RESERVATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('READ_RESERVATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('UPDATE_RESERVATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('DELETE_RESERVATIONS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('CREATE_RESERVATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('READ_RESERVATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('UPDATE_RESERVATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('DELETE_RESERVATIONS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('READ_RESERVATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('UPDATE_RESERVATIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("client"), permissionId: getId('CREATE_RESERVATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("client"), permissionId: getId('READ_RESERVATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("client"), permissionId: getId('UPDATE_RESERVATIONS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('CREATE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('READ_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('UPDATE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('DELETE_PAYMENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('CREATE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('READ_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('UPDATE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('DELETE_PAYMENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('CREATE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('READ_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('UPDATE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('DELETE_PAYMENTS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('READ_PAYMENTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("client"), permissionId: getId('CREATE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("client"), permissionId: getId('READ_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("client"), permissionId: getId('UPDATE_PAYMENTS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('CREATE_LOYALTY_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('READ_LOYALTY_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('UPDATE_LOYALTY_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('DELETE_LOYALTY_ACCOUNTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('CREATE_LOYALTY_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('READ_LOYALTY_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('UPDATE_LOYALTY_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('DELETE_LOYALTY_ACCOUNTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('CREATE_LOYALTY_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('READ_LOYALTY_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('UPDATE_LOYALTY_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('DELETE_LOYALTY_ACCOUNTS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("client"), permissionId: getId('READ_LOYALTY_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("client"), permissionId: getId('UPDATE_LOYALTY_ACCOUNTS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('CREATE_LOYALTY_RULES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('READ_LOYALTY_RULES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('UPDATE_LOYALTY_RULES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('DELETE_LOYALTY_RULES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('CREATE_LOYALTY_RULES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('READ_LOYALTY_RULES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('UPDATE_LOYALTY_RULES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('DELETE_LOYALTY_RULES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('CREATE_LOYALTY_RULES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('READ_LOYALTY_RULES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('UPDATE_LOYALTY_RULES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("client"), permissionId: getId('READ_LOYALTY_RULES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('CREATE_LOYALTY_TRANSACTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('READ_LOYALTY_TRANSACTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('UPDATE_LOYALTY_TRANSACTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('DELETE_LOYALTY_TRANSACTIONS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('CREATE_LOYALTY_TRANSACTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('READ_LOYALTY_TRANSACTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('UPDATE_LOYALTY_TRANSACTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('DELETE_LOYALTY_TRANSACTIONS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('CREATE_LOYALTY_TRANSACTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('READ_LOYALTY_TRANSACTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('UPDATE_LOYALTY_TRANSACTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('DELETE_LOYALTY_TRANSACTIONS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("client"), permissionId: getId('READ_LOYALTY_TRANSACTIONS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('CREATE_CUSTOMER_REVIEWS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('READ_CUSTOMER_REVIEWS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('UPDATE_CUSTOMER_REVIEWS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('DELETE_CUSTOMER_REVIEWS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('CREATE_CUSTOMER_REVIEWS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('READ_CUSTOMER_REVIEWS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('UPDATE_CUSTOMER_REVIEWS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('DELETE_CUSTOMER_REVIEWS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('CREATE_CUSTOMER_REVIEWS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('READ_CUSTOMER_REVIEWS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('UPDATE_CUSTOMER_REVIEWS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('DELETE_CUSTOMER_REVIEWS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('READ_CUSTOMER_REVIEWS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("client"), permissionId: getId('CREATE_CUSTOMER_REVIEWS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("client"), permissionId: getId('READ_CUSTOMER_REVIEWS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("client"), permissionId: getId('UPDATE_CUSTOMER_REVIEWS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('CREATE_NOTIFICATION_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('READ_NOTIFICATION_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('UPDATE_NOTIFICATION_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('DELETE_NOTIFICATION_EVENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('CREATE_NOTIFICATION_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('READ_NOTIFICATION_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('UPDATE_NOTIFICATION_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('DELETE_NOTIFICATION_EVENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('CREATE_NOTIFICATION_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('READ_NOTIFICATION_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('UPDATE_NOTIFICATION_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('DELETE_NOTIFICATION_EVENTS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('READ_NOTIFICATION_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('UPDATE_NOTIFICATION_EVENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("client"), permissionId: getId('READ_NOTIFICATION_EVENTS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('CREATE_STOCK_LOCATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('READ_STOCK_LOCATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('UPDATE_STOCK_LOCATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('DELETE_STOCK_LOCATIONS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('CREATE_STOCK_LOCATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('READ_STOCK_LOCATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('UPDATE_STOCK_LOCATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('DELETE_STOCK_LOCATIONS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('CREATE_STOCK_LOCATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('READ_STOCK_LOCATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('UPDATE_STOCK_LOCATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('DELETE_STOCK_LOCATIONS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('CREATE_STOCK_LOCATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('READ_STOCK_LOCATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('UPDATE_STOCK_LOCATIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('CREATE_STOCK_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('READ_STOCK_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('UPDATE_STOCK_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('DELETE_STOCK_ITEMS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('CREATE_STOCK_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('READ_STOCK_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('UPDATE_STOCK_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('DELETE_STOCK_ITEMS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('CREATE_STOCK_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('READ_STOCK_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('UPDATE_STOCK_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('DELETE_STOCK_ITEMS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('CREATE_STOCK_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('READ_STOCK_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('UPDATE_STOCK_ITEMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('CREATE_STOCK_MOVEMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('READ_STOCK_MOVEMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('UPDATE_STOCK_MOVEMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('DELETE_STOCK_MOVEMENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('CREATE_STOCK_MOVEMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('READ_STOCK_MOVEMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('UPDATE_STOCK_MOVEMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('DELETE_STOCK_MOVEMENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('CREATE_STOCK_MOVEMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('READ_STOCK_MOVEMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('UPDATE_STOCK_MOVEMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('DELETE_STOCK_MOVEMENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('CREATE_STOCK_MOVEMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('READ_STOCK_MOVEMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('UPDATE_STOCK_MOVEMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('CREATE_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('READ_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('UPDATE_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('DELETE_INVOICES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('CREATE_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('READ_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('UPDATE_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('DELETE_INVOICES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('CREATE_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('READ_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('UPDATE_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('DELETE_INVOICES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('READ_INVOICES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("client"), permissionId: getId('READ_INVOICES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('CREATE_AUDIT_LOGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('READ_AUDIT_LOGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('UPDATE_AUDIT_LOGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('DELETE_AUDIT_LOGS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('CREATE_AUDIT_LOGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('READ_AUDIT_LOGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('UPDATE_AUDIT_LOGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('DELETE_AUDIT_LOGS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('CREATE_AUDIT_LOGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('READ_AUDIT_LOGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('UPDATE_AUDIT_LOGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('DELETE_AUDIT_LOGS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('READ_AUDIT_LOGS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
     
  
      
      
        
            { createdAt, updatedAt, roles_permissionsId: getId("pdg"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("dg"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("dga1"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("superviseur"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("client"), 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_ACCOUNT_APPROVALS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ACCOUNT_APPROVALS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ACCOUNT_APPROVALS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ACCOUNT_APPROVALS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_RESTAURANTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_RESTAURANTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_RESTAURANTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_RESTAURANTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_RESTAURANT_TABLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_RESTAURANT_TABLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_RESTAURANT_TABLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_RESTAURANT_TABLES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_WORK_SCHEDULES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_WORK_SCHEDULES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_WORK_SCHEDULES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_WORK_SCHEDULES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_WORK_SHIFTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_WORK_SHIFTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_WORK_SHIFTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_WORK_SHIFTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ATTENDANCE_EVENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ATTENDANCE_EVENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ATTENDANCE_EVENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ATTENDANCE_EVENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_GEOFENCE_ALERTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_GEOFENCE_ALERTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_GEOFENCE_ALERTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_GEOFENCE_ALERTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_MENU_CATEGORIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_MENU_CATEGORIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_MENU_CATEGORIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_MENU_CATEGORIES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_MENU_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_MENU_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_MENU_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_MENU_ITEMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ORDERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ORDERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ORDERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ORDERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ORDER_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ORDER_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ORDER_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ORDER_ITEMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_RESERVATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_RESERVATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_RESERVATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_RESERVATIONS') },
    
    { 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_LOYALTY_ACCOUNTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_LOYALTY_ACCOUNTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_LOYALTY_ACCOUNTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_LOYALTY_ACCOUNTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_LOYALTY_RULES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_LOYALTY_RULES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_LOYALTY_RULES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_LOYALTY_RULES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_LOYALTY_TRANSACTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_LOYALTY_TRANSACTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_LOYALTY_TRANSACTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_LOYALTY_TRANSACTIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CUSTOMER_REVIEWS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CUSTOMER_REVIEWS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CUSTOMER_REVIEWS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CUSTOMER_REVIEWS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_NOTIFICATION_EVENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_NOTIFICATION_EVENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_NOTIFICATION_EVENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_NOTIFICATION_EVENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_STOCK_LOCATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_STOCK_LOCATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_STOCK_LOCATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_STOCK_LOCATIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_STOCK_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_STOCK_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_STOCK_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_STOCK_ITEMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_STOCK_MOVEMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_STOCK_MOVEMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_STOCK_MOVEMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_STOCK_MOVEMENTS') },
    
    { 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_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('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("pdg")}' WHERE "email"='client@hello.com'`);
        await queryInterface.sequelize.query(`UPDATE "users" SET "app_roleId"='${getId("dg")}' WHERE "email"='john@doe.com'`);
       
      
      

}
};

