
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("Owner"), name: "Owner", createdAt, updatedAt },
        
          { id: getId("ContentDirector"), name: "Content Director", createdAt, updatedAt },
        
          { id: getId("SalesManager"), name: "Sales Manager", createdAt, updatedAt },
        
          { id: getId("OperationsCoordinator"), name: "Operations Coordinator", createdAt, updatedAt },
        
          { id: getId("Viewer"), name: "Viewer", 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","site_settings","contact_locations","social_links","hero_slides","stone_categories","stone_colors","finishes","applications","stones","stone_variants","stone_3d_assets","services","technologies","service_technologies","projects","project_media","team_members","blog_categories","blog_posts","lead_requests","quote_items","inquiries","seo_pages","media_library",,
    ];
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("Owner"), permissionId: getId('CREATE_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('READ_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('DELETE_USERS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('READ_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('CREATE_SITE_SETTINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('READ_SITE_SETTINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('UPDATE_SITE_SETTINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('DELETE_SITE_SETTINGS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('READ_SITE_SETTINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('UPDATE_SITE_SETTINGS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('CREATE_CONTACT_LOCATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('READ_CONTACT_LOCATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('UPDATE_CONTACT_LOCATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('DELETE_CONTACT_LOCATIONS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('READ_CONTACT_LOCATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('UPDATE_CONTACT_LOCATIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('READ_CONTACT_LOCATIONS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('READ_CONTACT_LOCATIONS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Viewer"), permissionId: getId('READ_CONTACT_LOCATIONS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('CREATE_SOCIAL_LINKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('READ_SOCIAL_LINKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('UPDATE_SOCIAL_LINKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('DELETE_SOCIAL_LINKS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('READ_SOCIAL_LINKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('UPDATE_SOCIAL_LINKS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Viewer"), permissionId: getId('READ_SOCIAL_LINKS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('CREATE_HERO_SLIDES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('READ_HERO_SLIDES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('UPDATE_HERO_SLIDES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('DELETE_HERO_SLIDES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('CREATE_HERO_SLIDES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('READ_HERO_SLIDES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('UPDATE_HERO_SLIDES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Viewer"), permissionId: getId('READ_HERO_SLIDES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('CREATE_STONE_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('READ_STONE_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('UPDATE_STONE_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('DELETE_STONE_CATEGORIES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('CREATE_STONE_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('READ_STONE_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('UPDATE_STONE_CATEGORIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('READ_STONE_CATEGORIES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('READ_STONE_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('UPDATE_STONE_CATEGORIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Viewer"), permissionId: getId('READ_STONE_CATEGORIES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('CREATE_STONE_COLORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('READ_STONE_COLORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('UPDATE_STONE_COLORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('DELETE_STONE_COLORS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('CREATE_STONE_COLORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('READ_STONE_COLORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('UPDATE_STONE_COLORS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('READ_STONE_COLORS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('READ_STONE_COLORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('UPDATE_STONE_COLORS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Viewer"), permissionId: getId('READ_STONE_COLORS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('CREATE_FINISHES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('READ_FINISHES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('UPDATE_FINISHES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('DELETE_FINISHES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('CREATE_FINISHES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('READ_FINISHES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('UPDATE_FINISHES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('READ_FINISHES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('READ_FINISHES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('UPDATE_FINISHES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Viewer"), permissionId: getId('READ_FINISHES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('CREATE_APPLICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('READ_APPLICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('UPDATE_APPLICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('DELETE_APPLICATIONS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('CREATE_APPLICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('READ_APPLICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('UPDATE_APPLICATIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('READ_APPLICATIONS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('READ_APPLICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('UPDATE_APPLICATIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Viewer"), permissionId: getId('READ_APPLICATIONS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('CREATE_STONES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('READ_STONES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('UPDATE_STONES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('DELETE_STONES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('CREATE_STONES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('READ_STONES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('UPDATE_STONES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('READ_STONES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('READ_STONES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('UPDATE_STONES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Viewer"), permissionId: getId('READ_STONES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('CREATE_STONE_VARIANTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('READ_STONE_VARIANTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('UPDATE_STONE_VARIANTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('DELETE_STONE_VARIANTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('CREATE_STONE_VARIANTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('READ_STONE_VARIANTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('UPDATE_STONE_VARIANTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('READ_STONE_VARIANTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('READ_STONE_VARIANTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('UPDATE_STONE_VARIANTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Viewer"), permissionId: getId('READ_STONE_VARIANTS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('CREATE_STONE_3D_ASSETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('READ_STONE_3D_ASSETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('UPDATE_STONE_3D_ASSETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('DELETE_STONE_3D_ASSETS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('CREATE_STONE_3D_ASSETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('READ_STONE_3D_ASSETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('UPDATE_STONE_3D_ASSETS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('READ_STONE_3D_ASSETS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('READ_STONE_3D_ASSETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('UPDATE_STONE_3D_ASSETS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Viewer"), permissionId: getId('READ_STONE_3D_ASSETS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('CREATE_SERVICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('READ_SERVICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('UPDATE_SERVICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('DELETE_SERVICES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('CREATE_SERVICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('READ_SERVICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('UPDATE_SERVICES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('READ_SERVICES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('READ_SERVICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('UPDATE_SERVICES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Viewer"), permissionId: getId('READ_SERVICES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('CREATE_TECHNOLOGIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('READ_TECHNOLOGIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('UPDATE_TECHNOLOGIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('DELETE_TECHNOLOGIES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('CREATE_TECHNOLOGIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('READ_TECHNOLOGIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('UPDATE_TECHNOLOGIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('READ_TECHNOLOGIES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('READ_TECHNOLOGIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('UPDATE_TECHNOLOGIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Viewer"), permissionId: getId('READ_TECHNOLOGIES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('CREATE_SERVICE_TECHNOLOGIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('READ_SERVICE_TECHNOLOGIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('UPDATE_SERVICE_TECHNOLOGIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('DELETE_SERVICE_TECHNOLOGIES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('CREATE_SERVICE_TECHNOLOGIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('READ_SERVICE_TECHNOLOGIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('UPDATE_SERVICE_TECHNOLOGIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('READ_SERVICE_TECHNOLOGIES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('READ_SERVICE_TECHNOLOGIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('UPDATE_SERVICE_TECHNOLOGIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Viewer"), permissionId: getId('READ_SERVICE_TECHNOLOGIES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('CREATE_PROJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('READ_PROJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('UPDATE_PROJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('DELETE_PROJECTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('CREATE_PROJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('READ_PROJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('UPDATE_PROJECTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('READ_PROJECTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('READ_PROJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('UPDATE_PROJECTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Viewer"), permissionId: getId('READ_PROJECTS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('CREATE_PROJECT_MEDIA') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('READ_PROJECT_MEDIA') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('UPDATE_PROJECT_MEDIA') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('DELETE_PROJECT_MEDIA') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('CREATE_PROJECT_MEDIA') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('READ_PROJECT_MEDIA') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('UPDATE_PROJECT_MEDIA') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('READ_PROJECT_MEDIA') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('READ_PROJECT_MEDIA') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('UPDATE_PROJECT_MEDIA') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Viewer"), permissionId: getId('READ_PROJECT_MEDIA') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('CREATE_TEAM_MEMBERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('READ_TEAM_MEMBERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('UPDATE_TEAM_MEMBERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('DELETE_TEAM_MEMBERS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('CREATE_TEAM_MEMBERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('READ_TEAM_MEMBERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('UPDATE_TEAM_MEMBERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('READ_TEAM_MEMBERS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('READ_TEAM_MEMBERS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Viewer"), permissionId: getId('READ_TEAM_MEMBERS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('CREATE_BLOG_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('READ_BLOG_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('UPDATE_BLOG_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('DELETE_BLOG_CATEGORIES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('CREATE_BLOG_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('READ_BLOG_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('UPDATE_BLOG_CATEGORIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Viewer"), permissionId: getId('READ_BLOG_CATEGORIES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('CREATE_BLOG_POSTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('READ_BLOG_POSTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('UPDATE_BLOG_POSTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('DELETE_BLOG_POSTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('CREATE_BLOG_POSTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('READ_BLOG_POSTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('UPDATE_BLOG_POSTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Viewer"), permissionId: getId('READ_BLOG_POSTS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('CREATE_LEAD_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('READ_LEAD_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('UPDATE_LEAD_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('DELETE_LEAD_REQUESTS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('READ_LEAD_REQUESTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('CREATE_LEAD_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('READ_LEAD_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('UPDATE_LEAD_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('DELETE_LEAD_REQUESTS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('READ_LEAD_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('UPDATE_LEAD_REQUESTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Viewer"), permissionId: getId('READ_LEAD_REQUESTS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('CREATE_QUOTE_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('READ_QUOTE_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('UPDATE_QUOTE_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('DELETE_QUOTE_ITEMS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('READ_QUOTE_ITEMS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('CREATE_QUOTE_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('READ_QUOTE_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('UPDATE_QUOTE_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('DELETE_QUOTE_ITEMS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('READ_QUOTE_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('UPDATE_QUOTE_ITEMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Viewer"), permissionId: getId('READ_QUOTE_ITEMS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('CREATE_INQUIRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('READ_INQUIRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('UPDATE_INQUIRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('DELETE_INQUIRIES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('READ_INQUIRIES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('CREATE_INQUIRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('READ_INQUIRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('UPDATE_INQUIRIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('READ_INQUIRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('UPDATE_INQUIRIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Viewer"), permissionId: getId('READ_INQUIRIES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('CREATE_SEO_PAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('READ_SEO_PAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('UPDATE_SEO_PAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('DELETE_SEO_PAGES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('CREATE_SEO_PAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('READ_SEO_PAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('UPDATE_SEO_PAGES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Viewer"), permissionId: getId('READ_SEO_PAGES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('CREATE_MEDIA_LIBRARY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('READ_MEDIA_LIBRARY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('UPDATE_MEDIA_LIBRARY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('DELETE_MEDIA_LIBRARY') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('CREATE_MEDIA_LIBRARY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('READ_MEDIA_LIBRARY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('UPDATE_MEDIA_LIBRARY') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('READ_MEDIA_LIBRARY') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('READ_MEDIA_LIBRARY') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('UPDATE_MEDIA_LIBRARY') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Viewer"), permissionId: getId('READ_MEDIA_LIBRARY') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
     
  
      
      
        
            { createdAt, updatedAt, roles_permissionsId: getId("Owner"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("ContentDirector"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("SalesManager"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("OperationsCoordinator"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("Viewer"), 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_SITE_SETTINGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SITE_SETTINGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SITE_SETTINGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SITE_SETTINGS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CONTACT_LOCATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CONTACT_LOCATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CONTACT_LOCATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CONTACT_LOCATIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SOCIAL_LINKS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SOCIAL_LINKS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SOCIAL_LINKS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SOCIAL_LINKS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_HERO_SLIDES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_HERO_SLIDES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_HERO_SLIDES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_HERO_SLIDES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_STONE_CATEGORIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_STONE_CATEGORIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_STONE_CATEGORIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_STONE_CATEGORIES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_STONE_COLORS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_STONE_COLORS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_STONE_COLORS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_STONE_COLORS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_FINISHES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_FINISHES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_FINISHES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_FINISHES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_APPLICATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_APPLICATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_APPLICATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_APPLICATIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_STONES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_STONES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_STONES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_STONES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_STONE_VARIANTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_STONE_VARIANTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_STONE_VARIANTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_STONE_VARIANTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_STONE_3D_ASSETS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_STONE_3D_ASSETS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_STONE_3D_ASSETS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_STONE_3D_ASSETS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SERVICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SERVICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SERVICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SERVICES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_TECHNOLOGIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_TECHNOLOGIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_TECHNOLOGIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_TECHNOLOGIES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SERVICE_TECHNOLOGIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SERVICE_TECHNOLOGIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SERVICE_TECHNOLOGIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SERVICE_TECHNOLOGIES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PROJECTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PROJECTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PROJECTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PROJECTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PROJECT_MEDIA') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PROJECT_MEDIA') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PROJECT_MEDIA') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PROJECT_MEDIA') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_TEAM_MEMBERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_TEAM_MEMBERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_TEAM_MEMBERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_TEAM_MEMBERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_BLOG_CATEGORIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_BLOG_CATEGORIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_BLOG_CATEGORIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_BLOG_CATEGORIES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_BLOG_POSTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_BLOG_POSTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_BLOG_POSTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_BLOG_POSTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_LEAD_REQUESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_LEAD_REQUESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_LEAD_REQUESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_LEAD_REQUESTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_QUOTE_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_QUOTE_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_QUOTE_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_QUOTE_ITEMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_INQUIRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_INQUIRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_INQUIRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_INQUIRIES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SEO_PAGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SEO_PAGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SEO_PAGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SEO_PAGES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_MEDIA_LIBRARY') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_MEDIA_LIBRARY') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_MEDIA_LIBRARY') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_MEDIA_LIBRARY') },
    
    
    
    { 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("Owner")}' WHERE "email"='client@hello.com'`);
        await queryInterface.sequelize.query(`UPDATE "users" SET "app_roleId"='${getId("ContentDirector")}' WHERE "email"='john@doe.com'`);
       
      
      

}
};

