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

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

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

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

    await queryInterface.bulkInsert("roles", [
      
      { id: getId("SuperAdmin"), name: "Super Administrator", createdAt, updatedAt },
      
      
      { id: getId("Administrator"), name: "Administrator", createdAt, updatedAt },
      
       
        { id: getId("User"), name: "User", createdAt, updatedAt },
      
      
      { id: getId("Public"), name: "Public", createdAt, updatedAt },
    ]);

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

    const entities = [
      "users","roles","permissions","organizations","role_permissions","role_assignments","teams","team_memberships","programs","learning_paths","missions","checklists","checklist_items","enrollments","mission_attempts","quizzes","quiz_questions","quiz_choices","quiz_submissions","quiz_answers","simulations","simulation_steps","content_assets","ai_content_requests","knowledge_gap_assessments","badges","user_badges","point_ledger_entries","challenges","challenge_participants","reward_catalog_items","reward_redemptions","recognition_posts","coaching_sessions","kpi_definitions","kpi_measurements","qa_evaluations","qa_scorecards","surveys","survey_questions","survey_responses","survey_response_items","reports","audit_events",,
    ];
await queryInterface.bulkInsert("permissions", entities.flatMap(createPermissions));
await queryInterface.bulkInsert("permissions", [{ id: getId(`READ_API_DOCS`), createdAt, updatedAt, name: `READ_API_DOCS` }]);
await queryInterface.bulkInsert("permissions", [{ id: getId(`CREATE_SEARCH`), createdAt, updatedAt, name: `CREATE_SEARCH`}]);

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


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


await queryInterface.bulkInsert("rolesPermissionsPermissions", [
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_USERS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_USERS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_USERS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_USERS') },
          
    
  
    
    
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_ROLE_PERMISSIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_ROLE_PERMISSIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_ROLE_PERMISSIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_ROLE_PERMISSIONS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_ROLE_ASSIGNMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_ROLE_ASSIGNMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_ROLE_ASSIGNMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_ROLE_ASSIGNMENTS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_TEAMS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_TEAMS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_TEAMS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_TEAMS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_TEAM_MEMBERSHIPS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_TEAM_MEMBERSHIPS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_TEAM_MEMBERSHIPS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_TEAM_MEMBERSHIPS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_PROGRAMS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_PROGRAMS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_PROGRAMS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_PROGRAMS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_LEARNING_PATHS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_LEARNING_PATHS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_LEARNING_PATHS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_LEARNING_PATHS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_MISSIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_MISSIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_MISSIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_MISSIONS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_CHECKLISTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_CHECKLISTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_CHECKLISTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_CHECKLISTS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_CHECKLIST_ITEMS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_CHECKLIST_ITEMS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_CHECKLIST_ITEMS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_CHECKLIST_ITEMS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_ENROLLMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_ENROLLMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_ENROLLMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_ENROLLMENTS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_MISSION_ATTEMPTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_MISSION_ATTEMPTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_MISSION_ATTEMPTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_MISSION_ATTEMPTS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_QUIZZES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_QUIZZES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_QUIZZES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_QUIZZES') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_QUIZ_QUESTIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_QUIZ_QUESTIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_QUIZ_QUESTIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_QUIZ_QUESTIONS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_QUIZ_CHOICES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_QUIZ_CHOICES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_QUIZ_CHOICES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_QUIZ_CHOICES') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_QUIZ_SUBMISSIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_QUIZ_SUBMISSIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_QUIZ_SUBMISSIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_QUIZ_SUBMISSIONS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_QUIZ_ANSWERS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_QUIZ_ANSWERS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_QUIZ_ANSWERS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_QUIZ_ANSWERS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_SIMULATIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_SIMULATIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_SIMULATIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_SIMULATIONS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_SIMULATION_STEPS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_SIMULATION_STEPS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_SIMULATION_STEPS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_SIMULATION_STEPS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_CONTENT_ASSETS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_CONTENT_ASSETS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_CONTENT_ASSETS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_CONTENT_ASSETS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_AI_CONTENT_REQUESTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_AI_CONTENT_REQUESTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_AI_CONTENT_REQUESTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_AI_CONTENT_REQUESTS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_KNOWLEDGE_GAP_ASSESSMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_KNOWLEDGE_GAP_ASSESSMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_KNOWLEDGE_GAP_ASSESSMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_KNOWLEDGE_GAP_ASSESSMENTS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_BADGES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_BADGES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_BADGES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_BADGES') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_USER_BADGES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_USER_BADGES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_USER_BADGES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_USER_BADGES') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_POINT_LEDGER_ENTRIES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_POINT_LEDGER_ENTRIES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_POINT_LEDGER_ENTRIES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_POINT_LEDGER_ENTRIES') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_CHALLENGES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_CHALLENGES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_CHALLENGES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_CHALLENGES') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_CHALLENGE_PARTICIPANTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_CHALLENGE_PARTICIPANTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_CHALLENGE_PARTICIPANTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_CHALLENGE_PARTICIPANTS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_REWARD_CATALOG_ITEMS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_REWARD_CATALOG_ITEMS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_REWARD_CATALOG_ITEMS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_REWARD_CATALOG_ITEMS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_REWARD_REDEMPTIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_REWARD_REDEMPTIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_REWARD_REDEMPTIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_REWARD_REDEMPTIONS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_RECOGNITION_POSTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_RECOGNITION_POSTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_RECOGNITION_POSTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_RECOGNITION_POSTS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_COACHING_SESSIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_COACHING_SESSIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_COACHING_SESSIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_COACHING_SESSIONS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_KPI_DEFINITIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_KPI_DEFINITIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_KPI_DEFINITIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_KPI_DEFINITIONS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_KPI_MEASUREMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_KPI_MEASUREMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_KPI_MEASUREMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_KPI_MEASUREMENTS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_QA_EVALUATIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_QA_EVALUATIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_QA_EVALUATIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_QA_EVALUATIONS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_QA_SCORECARDS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_QA_SCORECARDS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_QA_SCORECARDS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_QA_SCORECARDS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_SURVEYS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_SURVEYS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_SURVEYS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_SURVEYS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_SURVEY_QUESTIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_SURVEY_QUESTIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_SURVEY_QUESTIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_SURVEY_QUESTIONS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_SURVEY_RESPONSES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_SURVEY_RESPONSES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_SURVEY_RESPONSES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_SURVEY_RESPONSES') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_SURVEY_RESPONSE_ITEMS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_SURVEY_RESPONSE_ITEMS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_SURVEY_RESPONSE_ITEMS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_SURVEY_RESPONSE_ITEMS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_REPORTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_REPORTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_REPORTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_REPORTS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_AUDIT_EVENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_AUDIT_EVENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_AUDIT_EVENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_AUDIT_EVENTS') },
          
    
  
    
     
  
      
       
         { createdAt, updatedAt, roles_permissionsId: getId("User"), 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_ROLE_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ROLE_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ROLE_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ROLE_PERMISSIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ROLE_ASSIGNMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ROLE_ASSIGNMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ROLE_ASSIGNMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ROLE_ASSIGNMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_TEAMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_TEAMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_TEAMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_TEAMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_TEAM_MEMBERSHIPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_TEAM_MEMBERSHIPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_TEAM_MEMBERSHIPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_TEAM_MEMBERSHIPS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PROGRAMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PROGRAMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PROGRAMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PROGRAMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_LEARNING_PATHS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_LEARNING_PATHS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_LEARNING_PATHS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_LEARNING_PATHS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_MISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_MISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_MISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_MISSIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CHECKLISTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CHECKLISTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CHECKLISTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CHECKLISTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CHECKLIST_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CHECKLIST_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CHECKLIST_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CHECKLIST_ITEMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ENROLLMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ENROLLMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ENROLLMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ENROLLMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_MISSION_ATTEMPTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_MISSION_ATTEMPTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_MISSION_ATTEMPTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_MISSION_ATTEMPTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_QUIZZES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_QUIZZES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_QUIZZES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_QUIZZES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_QUIZ_QUESTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_QUIZ_QUESTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_QUIZ_QUESTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_QUIZ_QUESTIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_QUIZ_CHOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_QUIZ_CHOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_QUIZ_CHOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_QUIZ_CHOICES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_QUIZ_SUBMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_QUIZ_SUBMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_QUIZ_SUBMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_QUIZ_SUBMISSIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_QUIZ_ANSWERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_QUIZ_ANSWERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_QUIZ_ANSWERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_QUIZ_ANSWERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SIMULATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SIMULATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SIMULATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SIMULATIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SIMULATION_STEPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SIMULATION_STEPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SIMULATION_STEPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SIMULATION_STEPS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CONTENT_ASSETS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CONTENT_ASSETS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CONTENT_ASSETS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CONTENT_ASSETS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_AI_CONTENT_REQUESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_AI_CONTENT_REQUESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_AI_CONTENT_REQUESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_AI_CONTENT_REQUESTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_KNOWLEDGE_GAP_ASSESSMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_KNOWLEDGE_GAP_ASSESSMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_KNOWLEDGE_GAP_ASSESSMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_KNOWLEDGE_GAP_ASSESSMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_BADGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_BADGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_BADGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_BADGES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_USER_BADGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_USER_BADGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_USER_BADGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_USER_BADGES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_POINT_LEDGER_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_POINT_LEDGER_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_POINT_LEDGER_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_POINT_LEDGER_ENTRIES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CHALLENGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CHALLENGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CHALLENGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CHALLENGES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CHALLENGE_PARTICIPANTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CHALLENGE_PARTICIPANTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CHALLENGE_PARTICIPANTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CHALLENGE_PARTICIPANTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_REWARD_CATALOG_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_REWARD_CATALOG_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_REWARD_CATALOG_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_REWARD_CATALOG_ITEMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_REWARD_REDEMPTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_REWARD_REDEMPTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_REWARD_REDEMPTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_REWARD_REDEMPTIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_RECOGNITION_POSTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_RECOGNITION_POSTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_RECOGNITION_POSTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_RECOGNITION_POSTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_COACHING_SESSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_COACHING_SESSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_COACHING_SESSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_COACHING_SESSIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_KPI_DEFINITIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_KPI_DEFINITIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_KPI_DEFINITIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_KPI_DEFINITIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_KPI_MEASUREMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_KPI_MEASUREMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_KPI_MEASUREMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_KPI_MEASUREMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_QA_EVALUATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_QA_EVALUATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_QA_EVALUATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_QA_EVALUATIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_QA_SCORECARDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_QA_SCORECARDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_QA_SCORECARDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_QA_SCORECARDS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SURVEYS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SURVEYS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SURVEYS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SURVEYS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SURVEY_QUESTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SURVEY_QUESTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SURVEY_QUESTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SURVEY_QUESTIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SURVEY_RESPONSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SURVEY_RESPONSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SURVEY_RESPONSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SURVEY_RESPONSES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SURVEY_RESPONSE_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SURVEY_RESPONSE_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SURVEY_RESPONSE_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SURVEY_RESPONSE_ITEMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_REPORTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_REPORTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_REPORTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_REPORTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_AUDIT_EVENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_AUDIT_EVENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_AUDIT_EVENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_AUDIT_EVENTS') },
    
    
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_USERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_USERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_USERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_USERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_ROLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_ROLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_ROLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_ROLES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_PERMISSIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_ORGANIZATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_ORGANIZATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_ORGANIZATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_ORGANIZATIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_ROLE_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_ROLE_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_ROLE_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_ROLE_PERMISSIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_ROLE_ASSIGNMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_ROLE_ASSIGNMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_ROLE_ASSIGNMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_ROLE_ASSIGNMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_TEAMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_TEAMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_TEAMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_TEAMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_TEAM_MEMBERSHIPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_TEAM_MEMBERSHIPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_TEAM_MEMBERSHIPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_TEAM_MEMBERSHIPS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_PROGRAMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_PROGRAMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_PROGRAMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_PROGRAMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_LEARNING_PATHS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_LEARNING_PATHS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_LEARNING_PATHS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_LEARNING_PATHS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_MISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_MISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_MISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_MISSIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_CHECKLISTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_CHECKLISTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_CHECKLISTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_CHECKLISTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_CHECKLIST_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_CHECKLIST_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_CHECKLIST_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_CHECKLIST_ITEMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_ENROLLMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_ENROLLMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_ENROLLMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_ENROLLMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_MISSION_ATTEMPTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_MISSION_ATTEMPTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_MISSION_ATTEMPTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_MISSION_ATTEMPTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_QUIZZES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_QUIZZES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_QUIZZES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_QUIZZES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_QUIZ_QUESTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_QUIZ_QUESTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_QUIZ_QUESTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_QUIZ_QUESTIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_QUIZ_CHOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_QUIZ_CHOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_QUIZ_CHOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_QUIZ_CHOICES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_QUIZ_SUBMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_QUIZ_SUBMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_QUIZ_SUBMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_QUIZ_SUBMISSIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_QUIZ_ANSWERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_QUIZ_ANSWERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_QUIZ_ANSWERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_QUIZ_ANSWERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_SIMULATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_SIMULATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_SIMULATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_SIMULATIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_SIMULATION_STEPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_SIMULATION_STEPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_SIMULATION_STEPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_SIMULATION_STEPS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_CONTENT_ASSETS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_CONTENT_ASSETS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_CONTENT_ASSETS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_CONTENT_ASSETS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_AI_CONTENT_REQUESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_AI_CONTENT_REQUESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_AI_CONTENT_REQUESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_AI_CONTENT_REQUESTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_KNOWLEDGE_GAP_ASSESSMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_KNOWLEDGE_GAP_ASSESSMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_KNOWLEDGE_GAP_ASSESSMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_KNOWLEDGE_GAP_ASSESSMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_BADGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_BADGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_BADGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_BADGES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_USER_BADGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_USER_BADGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_USER_BADGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_USER_BADGES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_POINT_LEDGER_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_POINT_LEDGER_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_POINT_LEDGER_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_POINT_LEDGER_ENTRIES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_CHALLENGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_CHALLENGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_CHALLENGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_CHALLENGES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_CHALLENGE_PARTICIPANTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_CHALLENGE_PARTICIPANTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_CHALLENGE_PARTICIPANTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_CHALLENGE_PARTICIPANTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_REWARD_CATALOG_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_REWARD_CATALOG_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_REWARD_CATALOG_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_REWARD_CATALOG_ITEMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_REWARD_REDEMPTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_REWARD_REDEMPTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_REWARD_REDEMPTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_REWARD_REDEMPTIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_RECOGNITION_POSTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_RECOGNITION_POSTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_RECOGNITION_POSTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_RECOGNITION_POSTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_COACHING_SESSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_COACHING_SESSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_COACHING_SESSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_COACHING_SESSIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_KPI_DEFINITIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_KPI_DEFINITIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_KPI_DEFINITIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_KPI_DEFINITIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_KPI_MEASUREMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_KPI_MEASUREMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_KPI_MEASUREMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_KPI_MEASUREMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_QA_EVALUATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_QA_EVALUATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_QA_EVALUATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_QA_EVALUATIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_QA_SCORECARDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_QA_SCORECARDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_QA_SCORECARDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_QA_SCORECARDS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_SURVEYS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_SURVEYS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_SURVEYS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_SURVEYS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_SURVEY_QUESTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_SURVEY_QUESTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_SURVEY_QUESTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_SURVEY_QUESTIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_SURVEY_RESPONSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_SURVEY_RESPONSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_SURVEY_RESPONSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_SURVEY_RESPONSES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_SURVEY_RESPONSE_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_SURVEY_RESPONSE_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_SURVEY_RESPONSE_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_SURVEY_RESPONSE_ITEMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_REPORTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_REPORTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_REPORTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_REPORTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_AUDIT_EVENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_AUDIT_EVENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_AUDIT_EVENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_AUDIT_EVENTS') },
    
    
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_API_DOCS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_SEARCH') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_API_DOCS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SEARCH') },
    ]);


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

}
};

