
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("plataforma_gestor"), name: "plataforma_gestor", createdAt, updatedAt },
        
          { id: getId("engenheiro_fiscal"), name: "engenheiro_fiscal", createdAt, updatedAt },
        
          { id: getId("contador_senior"), name: "contador_senior", createdAt, updatedAt },
        
          { id: getId("contador_junior"), name: "contador_junior", createdAt, updatedAt },
        
          { id: getId("contribuinte_premium"), name: "contribuinte_premium", 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","user_profiles","user_profile_types","declarations","dependents","data_sources","transactions","documents","income_payers_pj","income_carne_leao_monthly","exempt_incomes","exclusive_incomes","assets","debts","deductible_payments","investment_positions","trades","monthly_capital_gains","risk_analyses","notifications","organization_memberships","accountant_client_accesses","audit_logs","consents","job_runs",,
    ];
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("plataforma_gestor"), permissionId: getId('CREATE_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('READ_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('DELETE_USERS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('READ_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('CREATE_USER_PROFILES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('READ_USER_PROFILES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('UPDATE_USER_PROFILES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('DELETE_USER_PROFILES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('READ_USER_PROFILES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('UPDATE_USER_PROFILES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('UPDATE_USER_PROFILES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('UPDATE_USER_PROFILES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('READ_USER_PROFILES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('UPDATE_USER_PROFILES') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('CREATE_USER_PROFILE_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('READ_USER_PROFILE_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('UPDATE_USER_PROFILE_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('DELETE_USER_PROFILE_TYPES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('READ_USER_PROFILE_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('UPDATE_USER_PROFILE_TYPES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('UPDATE_USER_PROFILE_TYPES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('UPDATE_USER_PROFILE_TYPES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('READ_USER_PROFILE_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('UPDATE_USER_PROFILE_TYPES') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('CREATE_DECLARATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('READ_DECLARATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('UPDATE_DECLARATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('DELETE_DECLARATIONS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('CREATE_DECLARATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('READ_DECLARATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('UPDATE_DECLARATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('DELETE_DECLARATIONS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('CREATE_DECLARATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('READ_DECLARATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('UPDATE_DECLARATIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('READ_DECLARATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('UPDATE_DECLARATIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('CREATE_DECLARATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('READ_DECLARATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('UPDATE_DECLARATIONS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('CREATE_DEPENDENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('READ_DEPENDENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('UPDATE_DEPENDENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('DELETE_DEPENDENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('CREATE_DEPENDENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('READ_DEPENDENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('UPDATE_DEPENDENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('DELETE_DEPENDENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('CREATE_DEPENDENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('READ_DEPENDENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('UPDATE_DEPENDENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('READ_DEPENDENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('UPDATE_DEPENDENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('CREATE_DEPENDENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('READ_DEPENDENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('UPDATE_DEPENDENTS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('CREATE_DATA_SOURCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('READ_DATA_SOURCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('UPDATE_DATA_SOURCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('DELETE_DATA_SOURCES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('CREATE_DATA_SOURCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('READ_DATA_SOURCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('UPDATE_DATA_SOURCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('DELETE_DATA_SOURCES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('CREATE_DATA_SOURCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('READ_DATA_SOURCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('UPDATE_DATA_SOURCES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('READ_DATA_SOURCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('UPDATE_DATA_SOURCES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('CREATE_DATA_SOURCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('READ_DATA_SOURCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('UPDATE_DATA_SOURCES') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('CREATE_TRANSACTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('READ_TRANSACTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('UPDATE_TRANSACTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('DELETE_TRANSACTIONS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('CREATE_TRANSACTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('READ_TRANSACTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('UPDATE_TRANSACTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('DELETE_TRANSACTIONS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('CREATE_TRANSACTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('READ_TRANSACTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('UPDATE_TRANSACTIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('READ_TRANSACTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('UPDATE_TRANSACTIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('CREATE_TRANSACTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('READ_TRANSACTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('UPDATE_TRANSACTIONS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('CREATE_DOCUMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('READ_DOCUMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('UPDATE_DOCUMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('DELETE_DOCUMENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('CREATE_DOCUMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('READ_DOCUMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('UPDATE_DOCUMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('DELETE_DOCUMENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('CREATE_DOCUMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('READ_DOCUMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('UPDATE_DOCUMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('READ_DOCUMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('UPDATE_DOCUMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('CREATE_DOCUMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('READ_DOCUMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('UPDATE_DOCUMENTS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('CREATE_INCOME_PAYERS_PJ') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('READ_INCOME_PAYERS_PJ') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('UPDATE_INCOME_PAYERS_PJ') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('DELETE_INCOME_PAYERS_PJ') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('CREATE_INCOME_PAYERS_PJ') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('READ_INCOME_PAYERS_PJ') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('UPDATE_INCOME_PAYERS_PJ') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('DELETE_INCOME_PAYERS_PJ') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('CREATE_INCOME_PAYERS_PJ') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('READ_INCOME_PAYERS_PJ') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('UPDATE_INCOME_PAYERS_PJ') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('READ_INCOME_PAYERS_PJ') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('UPDATE_INCOME_PAYERS_PJ') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('CREATE_INCOME_PAYERS_PJ') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('READ_INCOME_PAYERS_PJ') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('UPDATE_INCOME_PAYERS_PJ') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('CREATE_INCOME_CARNE_LEAO_MONTHLY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('READ_INCOME_CARNE_LEAO_MONTHLY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('UPDATE_INCOME_CARNE_LEAO_MONTHLY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('DELETE_INCOME_CARNE_LEAO_MONTHLY') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('CREATE_INCOME_CARNE_LEAO_MONTHLY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('READ_INCOME_CARNE_LEAO_MONTHLY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('UPDATE_INCOME_CARNE_LEAO_MONTHLY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('DELETE_INCOME_CARNE_LEAO_MONTHLY') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('CREATE_INCOME_CARNE_LEAO_MONTHLY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('READ_INCOME_CARNE_LEAO_MONTHLY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('UPDATE_INCOME_CARNE_LEAO_MONTHLY') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('READ_INCOME_CARNE_LEAO_MONTHLY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('UPDATE_INCOME_CARNE_LEAO_MONTHLY') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('CREATE_INCOME_CARNE_LEAO_MONTHLY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('READ_INCOME_CARNE_LEAO_MONTHLY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('UPDATE_INCOME_CARNE_LEAO_MONTHLY') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('CREATE_EXEMPT_INCOMES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('READ_EXEMPT_INCOMES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('UPDATE_EXEMPT_INCOMES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('DELETE_EXEMPT_INCOMES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('CREATE_EXEMPT_INCOMES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('READ_EXEMPT_INCOMES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('UPDATE_EXEMPT_INCOMES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('DELETE_EXEMPT_INCOMES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('CREATE_EXEMPT_INCOMES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('READ_EXEMPT_INCOMES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('UPDATE_EXEMPT_INCOMES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('READ_EXEMPT_INCOMES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('UPDATE_EXEMPT_INCOMES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('CREATE_EXEMPT_INCOMES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('READ_EXEMPT_INCOMES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('UPDATE_EXEMPT_INCOMES') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('CREATE_EXCLUSIVE_INCOMES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('READ_EXCLUSIVE_INCOMES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('UPDATE_EXCLUSIVE_INCOMES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('DELETE_EXCLUSIVE_INCOMES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('CREATE_EXCLUSIVE_INCOMES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('READ_EXCLUSIVE_INCOMES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('UPDATE_EXCLUSIVE_INCOMES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('DELETE_EXCLUSIVE_INCOMES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('CREATE_EXCLUSIVE_INCOMES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('READ_EXCLUSIVE_INCOMES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('UPDATE_EXCLUSIVE_INCOMES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('READ_EXCLUSIVE_INCOMES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('UPDATE_EXCLUSIVE_INCOMES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('CREATE_EXCLUSIVE_INCOMES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('READ_EXCLUSIVE_INCOMES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('UPDATE_EXCLUSIVE_INCOMES') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('CREATE_ASSETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('READ_ASSETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('UPDATE_ASSETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('DELETE_ASSETS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('CREATE_ASSETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('READ_ASSETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('UPDATE_ASSETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('DELETE_ASSETS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('CREATE_ASSETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('READ_ASSETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('UPDATE_ASSETS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('READ_ASSETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('UPDATE_ASSETS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('CREATE_ASSETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('READ_ASSETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('UPDATE_ASSETS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('CREATE_DEBTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('READ_DEBTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('UPDATE_DEBTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('DELETE_DEBTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('CREATE_DEBTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('READ_DEBTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('UPDATE_DEBTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('DELETE_DEBTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('CREATE_DEBTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('READ_DEBTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('UPDATE_DEBTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('READ_DEBTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('UPDATE_DEBTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('CREATE_DEBTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('READ_DEBTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('UPDATE_DEBTS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('CREATE_DEDUCTIBLE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('READ_DEDUCTIBLE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('UPDATE_DEDUCTIBLE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('DELETE_DEDUCTIBLE_PAYMENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('CREATE_DEDUCTIBLE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('READ_DEDUCTIBLE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('UPDATE_DEDUCTIBLE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('DELETE_DEDUCTIBLE_PAYMENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('CREATE_DEDUCTIBLE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('READ_DEDUCTIBLE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('UPDATE_DEDUCTIBLE_PAYMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('READ_DEDUCTIBLE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('UPDATE_DEDUCTIBLE_PAYMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('CREATE_DEDUCTIBLE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('READ_DEDUCTIBLE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('UPDATE_DEDUCTIBLE_PAYMENTS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('CREATE_INVESTMENT_POSITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('READ_INVESTMENT_POSITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('UPDATE_INVESTMENT_POSITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('DELETE_INVESTMENT_POSITIONS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('CREATE_INVESTMENT_POSITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('READ_INVESTMENT_POSITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('UPDATE_INVESTMENT_POSITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('DELETE_INVESTMENT_POSITIONS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('CREATE_INVESTMENT_POSITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('READ_INVESTMENT_POSITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('UPDATE_INVESTMENT_POSITIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('READ_INVESTMENT_POSITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('UPDATE_INVESTMENT_POSITIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('CREATE_INVESTMENT_POSITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('READ_INVESTMENT_POSITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('UPDATE_INVESTMENT_POSITIONS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('CREATE_TRADES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('READ_TRADES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('UPDATE_TRADES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('DELETE_TRADES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('CREATE_TRADES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('READ_TRADES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('UPDATE_TRADES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('DELETE_TRADES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('CREATE_TRADES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('READ_TRADES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('UPDATE_TRADES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('READ_TRADES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('UPDATE_TRADES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('CREATE_TRADES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('READ_TRADES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('UPDATE_TRADES') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('CREATE_MONTHLY_CAPITAL_GAINS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('READ_MONTHLY_CAPITAL_GAINS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('UPDATE_MONTHLY_CAPITAL_GAINS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('DELETE_MONTHLY_CAPITAL_GAINS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('CREATE_MONTHLY_CAPITAL_GAINS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('READ_MONTHLY_CAPITAL_GAINS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('UPDATE_MONTHLY_CAPITAL_GAINS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('DELETE_MONTHLY_CAPITAL_GAINS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('CREATE_MONTHLY_CAPITAL_GAINS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('READ_MONTHLY_CAPITAL_GAINS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('UPDATE_MONTHLY_CAPITAL_GAINS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('READ_MONTHLY_CAPITAL_GAINS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('UPDATE_MONTHLY_CAPITAL_GAINS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('CREATE_MONTHLY_CAPITAL_GAINS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('READ_MONTHLY_CAPITAL_GAINS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('UPDATE_MONTHLY_CAPITAL_GAINS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('CREATE_RISK_ANALYSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('READ_RISK_ANALYSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('UPDATE_RISK_ANALYSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('DELETE_RISK_ANALYSES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('CREATE_RISK_ANALYSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('READ_RISK_ANALYSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('UPDATE_RISK_ANALYSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('DELETE_RISK_ANALYSES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('CREATE_RISK_ANALYSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('READ_RISK_ANALYSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('UPDATE_RISK_ANALYSES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('READ_RISK_ANALYSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('UPDATE_RISK_ANALYSES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('READ_RISK_ANALYSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('UPDATE_RISK_ANALYSES') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('CREATE_NOTIFICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('READ_NOTIFICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('UPDATE_NOTIFICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('DELETE_NOTIFICATIONS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('CREATE_NOTIFICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('READ_NOTIFICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('UPDATE_NOTIFICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('DELETE_NOTIFICATIONS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('CREATE_NOTIFICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('READ_NOTIFICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('UPDATE_NOTIFICATIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('READ_NOTIFICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('UPDATE_NOTIFICATIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('READ_NOTIFICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('UPDATE_NOTIFICATIONS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('CREATE_ORGANIZATION_MEMBERSHIPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('READ_ORGANIZATION_MEMBERSHIPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('UPDATE_ORGANIZATION_MEMBERSHIPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('DELETE_ORGANIZATION_MEMBERSHIPS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('UPDATE_ORGANIZATION_MEMBERSHIPS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('UPDATE_ORGANIZATION_MEMBERSHIPS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('CREATE_ACCOUNTANT_CLIENT_ACCESSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('READ_ACCOUNTANT_CLIENT_ACCESSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('UPDATE_ACCOUNTANT_CLIENT_ACCESSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('DELETE_ACCOUNTANT_CLIENT_ACCESSES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('READ_ACCOUNTANT_CLIENT_ACCESSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('UPDATE_ACCOUNTANT_CLIENT_ACCESSES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('CREATE_ACCOUNTANT_CLIENT_ACCESSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('READ_ACCOUNTANT_CLIENT_ACCESSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('UPDATE_ACCOUNTANT_CLIENT_ACCESSES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('READ_ACCOUNTANT_CLIENT_ACCESSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('UPDATE_ACCOUNTANT_CLIENT_ACCESSES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('CREATE_AUDIT_LOGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('READ_AUDIT_LOGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('UPDATE_AUDIT_LOGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('DELETE_AUDIT_LOGS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('READ_AUDIT_LOGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('UPDATE_AUDIT_LOGS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('UPDATE_AUDIT_LOGS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('UPDATE_AUDIT_LOGS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('CREATE_CONSENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('READ_CONSENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('UPDATE_CONSENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('DELETE_CONSENTS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('READ_CONSENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('UPDATE_CONSENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('UPDATE_CONSENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('READ_CONSENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('UPDATE_CONSENTS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('CREATE_JOB_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('READ_JOB_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('UPDATE_JOB_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('DELETE_JOB_RUNS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('CREATE_JOB_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('READ_JOB_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('UPDATE_JOB_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('DELETE_JOB_RUNS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('CREATE_JOB_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('READ_JOB_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('UPDATE_JOB_RUNS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('READ_JOB_RUNS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), permissionId: getId('READ_JOB_RUNS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
     
  
      
      
        
            { createdAt, updatedAt, roles_permissionsId: getId("plataforma_gestor"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("engenheiro_fiscal"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("contador_senior"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("contador_junior"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("contribuinte_premium"), 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_USER_PROFILES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_USER_PROFILES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_USER_PROFILES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_USER_PROFILES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_USER_PROFILE_TYPES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_USER_PROFILE_TYPES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_USER_PROFILE_TYPES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_USER_PROFILE_TYPES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_DECLARATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_DECLARATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_DECLARATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_DECLARATIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_DEPENDENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_DEPENDENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_DEPENDENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_DEPENDENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_DATA_SOURCES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_DATA_SOURCES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_DATA_SOURCES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_DATA_SOURCES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_TRANSACTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_TRANSACTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_TRANSACTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_TRANSACTIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_DOCUMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_DOCUMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_DOCUMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_DOCUMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_INCOME_PAYERS_PJ') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_INCOME_PAYERS_PJ') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_INCOME_PAYERS_PJ') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_INCOME_PAYERS_PJ') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_INCOME_CARNE_LEAO_MONTHLY') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_INCOME_CARNE_LEAO_MONTHLY') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_INCOME_CARNE_LEAO_MONTHLY') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_INCOME_CARNE_LEAO_MONTHLY') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_EXEMPT_INCOMES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_EXEMPT_INCOMES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_EXEMPT_INCOMES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_EXEMPT_INCOMES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_EXCLUSIVE_INCOMES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_EXCLUSIVE_INCOMES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_EXCLUSIVE_INCOMES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_EXCLUSIVE_INCOMES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ASSETS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ASSETS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ASSETS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ASSETS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_DEBTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_DEBTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_DEBTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_DEBTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_DEDUCTIBLE_PAYMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_DEDUCTIBLE_PAYMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_DEDUCTIBLE_PAYMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_DEDUCTIBLE_PAYMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_INVESTMENT_POSITIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_INVESTMENT_POSITIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_INVESTMENT_POSITIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_INVESTMENT_POSITIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_TRADES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_TRADES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_TRADES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_TRADES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_MONTHLY_CAPITAL_GAINS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_MONTHLY_CAPITAL_GAINS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_MONTHLY_CAPITAL_GAINS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_MONTHLY_CAPITAL_GAINS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_RISK_ANALYSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_RISK_ANALYSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_RISK_ANALYSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_RISK_ANALYSES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_NOTIFICATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_NOTIFICATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_NOTIFICATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_NOTIFICATIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ORGANIZATION_MEMBERSHIPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ORGANIZATION_MEMBERSHIPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ORGANIZATION_MEMBERSHIPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ORGANIZATION_MEMBERSHIPS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ACCOUNTANT_CLIENT_ACCESSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ACCOUNTANT_CLIENT_ACCESSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ACCOUNTANT_CLIENT_ACCESSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ACCOUNTANT_CLIENT_ACCESSES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_AUDIT_LOGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_AUDIT_LOGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_AUDIT_LOGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_AUDIT_LOGS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CONSENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CONSENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CONSENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CONSENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_JOB_RUNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_JOB_RUNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_JOB_RUNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_JOB_RUNS') },
    
    
    
    { 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_USER_PROFILES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_USER_PROFILES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_USER_PROFILES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_USER_PROFILES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_USER_PROFILE_TYPES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_USER_PROFILE_TYPES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_USER_PROFILE_TYPES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_USER_PROFILE_TYPES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_DECLARATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_DECLARATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_DECLARATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_DECLARATIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_DEPENDENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_DEPENDENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_DEPENDENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_DEPENDENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_DATA_SOURCES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_DATA_SOURCES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_DATA_SOURCES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_DATA_SOURCES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_TRANSACTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_TRANSACTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_TRANSACTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_TRANSACTIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_DOCUMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_DOCUMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_DOCUMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_DOCUMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_INCOME_PAYERS_PJ') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_INCOME_PAYERS_PJ') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_INCOME_PAYERS_PJ') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_INCOME_PAYERS_PJ') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_INCOME_CARNE_LEAO_MONTHLY') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_INCOME_CARNE_LEAO_MONTHLY') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_INCOME_CARNE_LEAO_MONTHLY') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_INCOME_CARNE_LEAO_MONTHLY') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_EXEMPT_INCOMES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_EXEMPT_INCOMES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_EXEMPT_INCOMES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_EXEMPT_INCOMES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_EXCLUSIVE_INCOMES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_EXCLUSIVE_INCOMES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_EXCLUSIVE_INCOMES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_EXCLUSIVE_INCOMES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_ASSETS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_ASSETS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_ASSETS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_ASSETS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_DEBTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_DEBTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_DEBTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_DEBTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_DEDUCTIBLE_PAYMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_DEDUCTIBLE_PAYMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_DEDUCTIBLE_PAYMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_DEDUCTIBLE_PAYMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_INVESTMENT_POSITIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_INVESTMENT_POSITIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_INVESTMENT_POSITIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_INVESTMENT_POSITIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_TRADES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_TRADES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_TRADES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_TRADES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_MONTHLY_CAPITAL_GAINS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_MONTHLY_CAPITAL_GAINS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_MONTHLY_CAPITAL_GAINS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_MONTHLY_CAPITAL_GAINS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_RISK_ANALYSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_RISK_ANALYSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_RISK_ANALYSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_RISK_ANALYSES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_NOTIFICATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_NOTIFICATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_NOTIFICATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_NOTIFICATIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_ORGANIZATION_MEMBERSHIPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_ORGANIZATION_MEMBERSHIPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_ORGANIZATION_MEMBERSHIPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_ORGANIZATION_MEMBERSHIPS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_ACCOUNTANT_CLIENT_ACCESSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_ACCOUNTANT_CLIENT_ACCESSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_ACCOUNTANT_CLIENT_ACCESSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_ACCOUNTANT_CLIENT_ACCESSES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_AUDIT_LOGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_AUDIT_LOGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_AUDIT_LOGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_AUDIT_LOGS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_CONSENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_CONSENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_CONSENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_CONSENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_JOB_RUNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_JOB_RUNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_JOB_RUNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_JOB_RUNS') },
    
    
    
    { 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("plataforma_gestor")}' WHERE "email"='client@hello.com'`);
        await queryInterface.sequelize.query(`UPDATE "users" SET "app_roleId"='${getId("engenheiro_fiscal")}' WHERE "email"='john@doe.com'`);
       
      
      

}
};

