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

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

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

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

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

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

    const entities = [
      "users","roles","permissions","companies","company_locations","company_contacts","company_bank_accounts","company_permits","company_insurances","company_documents","company_document_versions","employees","employee_assignments","employee_hr_records","driver_profiles","driver_compliances","incidents","documents","document_versions","document_retention_policies","customers","vendors","vehicles","trailers","vehicle_trailer_links","vehicle_inspections","vehicle_maintenances","vehicle_insurances","vehicle_documents","vehicle_document_versions","driver_vehicle_assignments","orders","loads","load_stops","trips","trip_loads","pod_files","invoices","invoice_lines","payments","cost_items","cost_files","fuel_entries","toll_entries",,
    ];
await queryInterface.bulkInsert("permissions", entities.flatMap(createPermissions));
await queryInterface.bulkInsert("permissions", [{ id: getId(`READ_API_DOCS`), createdAt, updatedAt, name: `READ_API_DOCS` }]);
await queryInterface.bulkInsert("permissions", [{ id: getId(`CREATE_SEARCH`), createdAt, updatedAt, name: `CREATE_SEARCH`}]);


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


await queryInterface.bulkInsert("rolesPermissionsPermissions", [
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_USERS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_USERS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_USERS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_USERS') },
          
    
  
    
    
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_COMPANIES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_COMPANIES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_COMPANIES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_COMPANIES') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_COMPANY_LOCATIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_COMPANY_LOCATIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_COMPANY_LOCATIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_COMPANY_LOCATIONS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_COMPANY_CONTACTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_COMPANY_CONTACTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_COMPANY_CONTACTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_COMPANY_CONTACTS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_COMPANY_BANK_ACCOUNTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_COMPANY_BANK_ACCOUNTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_COMPANY_BANK_ACCOUNTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_COMPANY_BANK_ACCOUNTS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_COMPANY_PERMITS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_COMPANY_PERMITS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_COMPANY_PERMITS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_COMPANY_PERMITS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_COMPANY_INSURANCES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_COMPANY_INSURANCES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_COMPANY_INSURANCES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_COMPANY_INSURANCES') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_COMPANY_DOCUMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_COMPANY_DOCUMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_COMPANY_DOCUMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_COMPANY_DOCUMENTS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_COMPANY_DOCUMENT_VERSIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_COMPANY_DOCUMENT_VERSIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_COMPANY_DOCUMENT_VERSIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_COMPANY_DOCUMENT_VERSIONS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_EMPLOYEES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_EMPLOYEES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_EMPLOYEES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_EMPLOYEES') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_EMPLOYEE_ASSIGNMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_EMPLOYEE_ASSIGNMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_EMPLOYEE_ASSIGNMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_EMPLOYEE_ASSIGNMENTS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_EMPLOYEE_HR_RECORDS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_EMPLOYEE_HR_RECORDS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_EMPLOYEE_HR_RECORDS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_EMPLOYEE_HR_RECORDS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_DRIVER_PROFILES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_DRIVER_PROFILES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_DRIVER_PROFILES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_DRIVER_PROFILES') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_DRIVER_COMPLIANCES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_DRIVER_COMPLIANCES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_DRIVER_COMPLIANCES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_DRIVER_COMPLIANCES') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_INCIDENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_INCIDENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_INCIDENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_INCIDENTS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_DOCUMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_DOCUMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_DOCUMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_DOCUMENTS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_DOCUMENT_VERSIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_DOCUMENT_VERSIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_DOCUMENT_VERSIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_DOCUMENT_VERSIONS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_DOCUMENT_RETENTION_POLICIES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_DOCUMENT_RETENTION_POLICIES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_DOCUMENT_RETENTION_POLICIES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_DOCUMENT_RETENTION_POLICIES') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_CUSTOMERS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_CUSTOMERS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_CUSTOMERS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_CUSTOMERS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_VENDORS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_VENDORS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_VENDORS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_VENDORS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_VEHICLES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_VEHICLES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_VEHICLES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_VEHICLES') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_TRAILERS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_TRAILERS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_TRAILERS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_TRAILERS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_VEHICLE_TRAILER_LINKS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_VEHICLE_TRAILER_LINKS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_VEHICLE_TRAILER_LINKS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_VEHICLE_TRAILER_LINKS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_VEHICLE_INSPECTIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_VEHICLE_INSPECTIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_VEHICLE_INSPECTIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_VEHICLE_INSPECTIONS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_VEHICLE_MAINTENANCES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_VEHICLE_MAINTENANCES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_VEHICLE_MAINTENANCES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_VEHICLE_MAINTENANCES') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_VEHICLE_INSURANCES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_VEHICLE_INSURANCES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_VEHICLE_INSURANCES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_VEHICLE_INSURANCES') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_VEHICLE_DOCUMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_VEHICLE_DOCUMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_VEHICLE_DOCUMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_VEHICLE_DOCUMENTS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_VEHICLE_DOCUMENT_VERSIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_VEHICLE_DOCUMENT_VERSIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_VEHICLE_DOCUMENT_VERSIONS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_VEHICLE_DOCUMENT_VERSIONS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_DRIVER_VEHICLE_ASSIGNMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_DRIVER_VEHICLE_ASSIGNMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_DRIVER_VEHICLE_ASSIGNMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_DRIVER_VEHICLE_ASSIGNMENTS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_ORDERS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_ORDERS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_ORDERS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_ORDERS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_LOADS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_LOADS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_LOADS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_LOADS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_LOAD_STOPS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_LOAD_STOPS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_LOAD_STOPS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_LOAD_STOPS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_TRIPS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_TRIPS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_TRIPS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_TRIPS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_TRIP_LOADS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_TRIP_LOADS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_TRIP_LOADS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_TRIP_LOADS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_POD_FILES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_POD_FILES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_POD_FILES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_POD_FILES') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_INVOICES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_INVOICES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_INVOICES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_INVOICES') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_INVOICE_LINES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_INVOICE_LINES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_INVOICE_LINES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_INVOICE_LINES') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_PAYMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_PAYMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_PAYMENTS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_PAYMENTS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_COST_ITEMS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_COST_ITEMS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_COST_ITEMS') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_COST_ITEMS') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_COST_FILES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_COST_FILES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_COST_FILES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_COST_FILES') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_FUEL_ENTRIES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_FUEL_ENTRIES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_FUEL_ENTRIES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_FUEL_ENTRIES') },
          
    
  
    
    
      
      
           
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_TOLL_ENTRIES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('READ_TOLL_ENTRIES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('UPDATE_TOLL_ENTRIES') },
              { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('DELETE_TOLL_ENTRIES') },
          
    
  
    
     
  
      
       
         { createdAt, updatedAt, roles_permissionsId: getId("User"), permissionId: getId('CREATE_SEARCH') },
      
      
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_USERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_USERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_USERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_USERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ROLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ROLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ROLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ROLES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PERMISSIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_COMPANIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_COMPANIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_COMPANIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_COMPANIES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_COMPANY_LOCATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_COMPANY_LOCATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_COMPANY_LOCATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_COMPANY_LOCATIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_COMPANY_CONTACTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_COMPANY_CONTACTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_COMPANY_CONTACTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_COMPANY_CONTACTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_COMPANY_BANK_ACCOUNTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_COMPANY_BANK_ACCOUNTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_COMPANY_BANK_ACCOUNTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_COMPANY_BANK_ACCOUNTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_COMPANY_PERMITS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_COMPANY_PERMITS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_COMPANY_PERMITS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_COMPANY_PERMITS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_COMPANY_INSURANCES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_COMPANY_INSURANCES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_COMPANY_INSURANCES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_COMPANY_INSURANCES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_COMPANY_DOCUMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_COMPANY_DOCUMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_COMPANY_DOCUMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_COMPANY_DOCUMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_COMPANY_DOCUMENT_VERSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_COMPANY_DOCUMENT_VERSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_COMPANY_DOCUMENT_VERSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_COMPANY_DOCUMENT_VERSIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_EMPLOYEES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_EMPLOYEES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_EMPLOYEES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_EMPLOYEES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_EMPLOYEE_ASSIGNMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_EMPLOYEE_ASSIGNMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_EMPLOYEE_ASSIGNMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_EMPLOYEE_ASSIGNMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_EMPLOYEE_HR_RECORDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_EMPLOYEE_HR_RECORDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_EMPLOYEE_HR_RECORDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_EMPLOYEE_HR_RECORDS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_DRIVER_PROFILES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_DRIVER_PROFILES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_DRIVER_PROFILES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_DRIVER_PROFILES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_DRIVER_COMPLIANCES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_DRIVER_COMPLIANCES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_DRIVER_COMPLIANCES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_DRIVER_COMPLIANCES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_INCIDENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_INCIDENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_INCIDENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_INCIDENTS') },
    
    { 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_DOCUMENT_VERSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_DOCUMENT_VERSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_DOCUMENT_VERSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_DOCUMENT_VERSIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_DOCUMENT_RETENTION_POLICIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_DOCUMENT_RETENTION_POLICIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_DOCUMENT_RETENTION_POLICIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_DOCUMENT_RETENTION_POLICIES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CUSTOMERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CUSTOMERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CUSTOMERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CUSTOMERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_VENDORS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_VENDORS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_VENDORS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_VENDORS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_VEHICLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_VEHICLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_VEHICLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_VEHICLES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_TRAILERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_TRAILERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_TRAILERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_TRAILERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_VEHICLE_TRAILER_LINKS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_VEHICLE_TRAILER_LINKS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_VEHICLE_TRAILER_LINKS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_VEHICLE_TRAILER_LINKS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_VEHICLE_INSPECTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_VEHICLE_INSPECTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_VEHICLE_INSPECTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_VEHICLE_INSPECTIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_VEHICLE_MAINTENANCES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_VEHICLE_MAINTENANCES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_VEHICLE_MAINTENANCES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_VEHICLE_MAINTENANCES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_VEHICLE_INSURANCES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_VEHICLE_INSURANCES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_VEHICLE_INSURANCES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_VEHICLE_INSURANCES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_VEHICLE_DOCUMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_VEHICLE_DOCUMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_VEHICLE_DOCUMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_VEHICLE_DOCUMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_VEHICLE_DOCUMENT_VERSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_VEHICLE_DOCUMENT_VERSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_VEHICLE_DOCUMENT_VERSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_VEHICLE_DOCUMENT_VERSIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_DRIVER_VEHICLE_ASSIGNMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_DRIVER_VEHICLE_ASSIGNMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_DRIVER_VEHICLE_ASSIGNMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_DRIVER_VEHICLE_ASSIGNMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ORDERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ORDERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ORDERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ORDERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_LOADS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_LOADS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_LOADS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_LOADS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_LOAD_STOPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_LOAD_STOPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_LOAD_STOPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_LOAD_STOPS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_TRIPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_TRIPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_TRIPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_TRIPS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_TRIP_LOADS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_TRIP_LOADS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_TRIP_LOADS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_TRIP_LOADS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_POD_FILES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_POD_FILES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_POD_FILES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_POD_FILES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_INVOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_INVOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_INVOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_INVOICES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_INVOICE_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_INVOICE_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_INVOICE_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_INVOICE_LINES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PAYMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PAYMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PAYMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PAYMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_COST_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_COST_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_COST_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_COST_ITEMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_COST_FILES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_COST_FILES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_COST_FILES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_COST_FILES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_FUEL_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_FUEL_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_FUEL_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_FUEL_ENTRIES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_TOLL_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_TOLL_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_TOLL_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_TOLL_ENTRIES') },
    
    
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_API_DOCS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SEARCH') },
    ]);


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

}
};

