From e0edba8c640aadea3457f9c9a3c5e7887602c950 Mon Sep 17 00:00:00 2001 From: Alban Siffer Date: Wed, 19 Apr 2023 14:33:44 +0200 Subject: [PATCH 01/22] new Dockerfile --- Dockerfile | 82 +++++++++++++++++++++++++++++------------------------- 1 file changed, 44 insertions(+), 38 deletions(-) diff --git a/Dockerfile b/Dockerfile index e538bb1d..1c36fc10 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,45 +1,51 @@ -# ubuntu / jammy (22.04-LTS) -FROM ubuntu:jammy - -ENV DEBIAN_FRONTEND noninteractive - -RUN set -x ; \ - apt update ; apt upgrade ; \ - apt install -y --no-install-recommends \ - ssmtp \ - mailutils \ - php php-zip \ - php-curl \ - php-mbstring \ - php-dom php-ldap \ - php-soap \ - php-xdebug \ - php-mysql \ - php-gd \ - php-xdebug \ - php-mysql \ - php-gd \ - graphviz \ - curl less ca-certificates netcat-traditional ; \ - apt-get autoremove --yes ; rm -fr /var/cache/apt - -# install composer -RUN set -x ; \ - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer - -WORKDIR /var/www/mercator +FROM php:8.2-alpine3.16 + +# apparently you cannot pass both env variables +# and .env file +ENV DB_CONNECTION=sqlite +ENV DB_DATABASE=/var/www/mercator/database/db.sqlite + +# system deps +RUN apk update && apk add curl ssmtp graphviz ca-certificates sqlite sqlite-dev + +# php deps +RUN apk add php8-zip \ + php8-curl \ + php8-mbstring \ + php8-dom php8-ldap \ + php8-soap \ + php8-xdebug \ + php8-mysqli \ + php8-sqlite3 \ + php8-gd \ + php8-xdebug \ + php8-gd \ + php8-pdo php8-pdo_sqlite \ + php8-fileinfo \ + php8-simplexml php8-xml php8-xmlreader php8-xmlwriter \ + php8-tokenizer \ + composer + +# sources COPY . /var/www/mercator +WORKDIR /var/www/mercator -# USER www:www -# RUN set -x ; \ -# groupadd www ; \ -# useradd -g www -ms /bin/bash www ; \ -# chown -R www:www /var/www ; \ +# the sqlite file must exist +RUN touch ${DB_DATABASE} +# add mercator:www user +RUN addgroup -S www && \ + adduser -S mercator -G www && \ + chown -R mercator:www /var/www + +USER mercator:www # install mercator dependancies -RUN set -x ; \ - cd /var/www/mercator ; composer install +RUN composer install EXPOSE 8000 -ENTRYPOINT /var/www/mercator/docker/entrypoint.sh + +# APP_KEY is automcatically generated if not provided +CMD php artisan --no-interaction --force --seed migrate && \ + php artisan passport:install && \ + APP_KEY="${APP_KEY:-base64:$(head -c 32 /dev/urandom|base64)}" php artisan serve --host=0.0.0.0 --port=8000 From ef82e7e344ce12e13cd9f699a439072b06edc278 Mon Sep 17 00:00:00 2001 From: Alban Siffer Date: Wed, 19 Apr 2023 15:05:32 +0200 Subject: [PATCH 02/22] dropForeign conditionnaly to sqlite --- ...reign_keys_to_activity_operation_table.php | 8 +++-- ...foreign_keys_to_activity_process_table.php | 8 +++-- ..._foreign_keys_to_actor_operation_table.php | 8 +++-- ...51_add_foreign_keys_to_annuaires_table.php | 4 ++- ...ation_module_application_service_table.php | 8 +++-- ...pplication_service_m_application_table.php | 8 +++-- ...oreign_keys_to_bay_wifi_terminal_table.php | 8 +++-- ..._191251_add_foreign_keys_to_bays_table.php | 4 ++- ...51_add_foreign_keys_to_buildings_table.php | 4 ++- ..._foreign_keys_to_database_entity_table.php | 8 +++-- ...ign_keys_to_database_information_table.php | 8 +++-- ...n_keys_to_database_m_application_table.php | 8 +++-- ...51_add_foreign_keys_to_databases_table.php | 4 ++- ...ign_keys_to_domaine_ad_forest_ad_table.php | 8 +++-- ...ign_keys_to_entity_m_application_table.php | 8 +++-- ...d_foreign_keys_to_entity_process_table.php | 8 +++-- ...xternal_connected_entity_network_table.php | 8 +++-- ...91251_add_foreign_keys_to_fluxes_table.php | 32 ++++++++++++++----- ...1_add_foreign_keys_to_forest_ads_table.php | 4 ++- ...eign_keys_to_information_process_table.php | 8 +++-- ...1251_add_foreign_keys_to_lan_man_table.php | 8 +++-- ...1251_add_foreign_keys_to_lan_wan_table.php | 8 +++-- ..._to_logical_server_m_application_table.php | 8 +++-- ...o_logical_server_physical_server_table.php | 8 +++-- ...gn_keys_to_m_application_process_table.php | 8 +++-- ...d_foreign_keys_to_m_applications_table.php | 8 +++-- ...1251_add_foreign_keys_to_man_wan_table.php | 8 +++-- ...reign_keys_to_network_subnetword_table.php | 8 +++-- ...d_foreign_keys_to_operation_task_table.php | 8 +++-- ..._add_foreign_keys_to_peripherals_table.php | 12 +++++-- ..._foreign_keys_to_permission_role_table.php | 8 +++-- ...91251_add_foreign_keys_to_phones_table.php | 12 +++++-- ...ign_keys_to_physical_router_vlan_table.php | 8 +++-- ...foreign_keys_to_physical_routers_table.php | 12 +++++-- ...eys_to_physical_security_devices_table.php | 12 +++++-- ...foreign_keys_to_physical_servers_table.php | 16 +++++++--- ...oreign_keys_to_physical_switches_table.php | 12 +++++-- ...51_add_foreign_keys_to_processes_table.php | 4 ++- ...51_add_foreign_keys_to_relations_table.php | 8 +++-- ...51_add_foreign_keys_to_role_user_table.php | 8 +++-- ..._foreign_keys_to_storage_devices_table.php | 16 +++++++--- ..._add_foreign_keys_to_subnetworks_table.php | 8 +++-- ...d_foreign_keys_to_wifi_terminals_table.php | 12 +++++-- ...add_foreign_keys_to_workstations_table.php | 12 +++++-- .../2021_05_19_161123_rename_subnetwork.php | 8 +++-- .../2021_08_18_171048_network_redesign.php | 8 +++-- .../migrations/2021_08_28_152910_cleanup.php | 4 ++- ...2_06_27_061444_application_workstation.php | 8 +++-- ...7_28_105153_add_link_operation_process.php | 4 ++- .../2022_08_11_165441_add_vpn_fields.php | 8 +++-- ..._01_28_145242_add_logical_devices_link.php | 24 ++++++++++---- 51 files changed, 345 insertions(+), 115 deletions(-) diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_activity_operation_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_activity_operation_table.php index 34571b78..58143a2e 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_activity_operation_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_activity_operation_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('activity_operation', function (Blueprint $table) { - $table->dropForeign('activity_id_fk_1472704'); - $table->dropForeign('operation_id_fk_1472704'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('activity_id_fk_1472704'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('operation_id_fk_1472704'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_activity_process_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_activity_process_table.php index 418d572a..936a7970 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_activity_process_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_activity_process_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('activity_process', function (Blueprint $table) { - $table->dropForeign('activity_id_fk_1627616'); - $table->dropForeign('process_id_fk_1627616'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('activity_id_fk_1627616'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('process_id_fk_1627616'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_actor_operation_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_actor_operation_table.php index e31afdfc..3fcca8be 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_actor_operation_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_actor_operation_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('actor_operation', function (Blueprint $table) { - $table->dropForeign('actor_id_fk_1472680'); - $table->dropForeign('operation_id_fk_1472680'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('actor_id_fk_1472680'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('operation_id_fk_1472680'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_annuaires_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_annuaires_table.php index 145ed43b..e8545b96 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_annuaires_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_annuaires_table.php @@ -26,7 +26,9 @@ public function up() public function down() { Schema::table('annuaires', function (Blueprint $table) { - $table->dropForeign('zone_admin_fk_1482666'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('zone_admin_fk_1482666'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_application_module_application_service_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_application_module_application_service_table.php index f8dad0d7..3d450ff7 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_application_module_application_service_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_application_module_application_service_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('application_module_application_service', function (Blueprint $table) { - $table->dropForeign('application_module_id_fk_1492414'); - $table->dropForeign('application_service_id_fk_1492414'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('application_module_id_fk_1492414'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('application_service_id_fk_1492414'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_application_service_m_application_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_application_service_m_application_table.php index 0c030d24..6dd3a78c 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_application_service_m_application_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_application_service_m_application_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('application_service_m_application', function (Blueprint $table) { - $table->dropForeign('application_service_id_fk_1482585'); - $table->dropForeign('m_application_id_fk_1482585'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('application_service_id_fk_1482585'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('m_application_id_fk_1482585'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_bay_wifi_terminal_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_bay_wifi_terminal_table.php index 860b87b2..bc90f330 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_bay_wifi_terminal_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_bay_wifi_terminal_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('bay_wifi_terminal', function (Blueprint $table) { - $table->dropForeign('bay_id_fk_1485509'); - $table->dropForeign('wifi_terminal_id_fk_1485509'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('bay_id_fk_1485509'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('wifi_terminal_id_fk_1485509'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_bays_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_bays_table.php index a88f2c41..eb386058 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_bays_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_bays_table.php @@ -26,7 +26,9 @@ public function up() public function down() { Schema::table('bays', function (Blueprint $table) { - $table->dropForeign('room_fk_1483441'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('room_fk_1483441'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_buildings_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_buildings_table.php index 73a143aa..2656795b 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_buildings_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_buildings_table.php @@ -26,7 +26,9 @@ public function up() public function down() { Schema::table('buildings', function (Blueprint $table) { - $table->dropForeign('site_fk_1483431'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('site_fk_1483431'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_database_entity_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_database_entity_table.php index 677fb555..602ba21e 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_database_entity_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_database_entity_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('database_entity', function (Blueprint $table) { - $table->dropForeign('database_id_fk_1485563'); - $table->dropForeign('entity_id_fk_1485563'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('database_id_fk_1485563'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('entity_id_fk_1485563'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_database_information_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_database_information_table.php index f5a2d1a3..775bd7e5 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_database_information_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_database_information_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('database_information', function (Blueprint $table) { - $table->dropForeign('database_id_fk_1485570'); - $table->dropForeign('information_id_fk_1485570'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('database_id_fk_1485570'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('information_id_fk_1485570'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_database_m_application_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_database_m_application_table.php index 54bf5465..48799c61 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_database_m_application_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_database_m_application_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('database_m_application', function (Blueprint $table) { - $table->dropForeign('database_id_fk_1482586'); - $table->dropForeign('m_application_id_fk_1482586'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('database_id_fk_1482586'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('m_application_id_fk_1482586'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_databases_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_databases_table.php index 99e25c05..6975d2f3 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_databases_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_databases_table.php @@ -26,7 +26,9 @@ public function up() public function down() { Schema::table('databases', function (Blueprint $table) { - $table->dropForeign('entity_resp_fk_1485569'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('entity_resp_fk_1485569'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_domaine_ad_forest_ad_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_domaine_ad_forest_ad_table.php index a9c2f020..70cb8424 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_domaine_ad_forest_ad_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_domaine_ad_forest_ad_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('domaine_ad_forest_ad', function (Blueprint $table) { - $table->dropForeign('domaine_ad_id_fk_1492084'); - $table->dropForeign('forest_ad_id_fk_1492084'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('domaine_ad_id_fk_1492084'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('forest_ad_id_fk_1492084'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_entity_m_application_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_entity_m_application_table.php index 99702a20..9d0041e4 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_entity_m_application_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_entity_m_application_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('entity_m_application', function (Blueprint $table) { - $table->dropForeign('entity_id_fk_1488611'); - $table->dropForeign('m_application_id_fk_1488611'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('entity_id_fk_1488611'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('m_application_id_fk_1488611'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_entity_process_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_entity_process_table.php index d69e963e..520fb4cf 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_entity_process_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_entity_process_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('entity_process', function (Blueprint $table) { - $table->dropForeign('entity_id_fk_1627958'); - $table->dropForeign('process_id_fk_1627958'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('entity_id_fk_1627958'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('process_id_fk_1627958'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_external_connected_entity_network_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_external_connected_entity_network_table.php index c2248c7d..2082ab46 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_external_connected_entity_network_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_external_connected_entity_network_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('external_connected_entity_network', function (Blueprint $table) { - $table->dropForeign('external_connected_entity_id_fk_1483344'); - $table->dropForeign('network_id_fk_1483344'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('external_connected_entity_id_fk_1483344'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('network_id_fk_1483344'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_fluxes_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_fluxes_table.php index 19abf53b..8b39f7b2 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_fluxes_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_fluxes_table.php @@ -33,14 +33,30 @@ public function up() public function down() { Schema::table('fluxes', function (Blueprint $table) { - $table->dropForeign('application_dest_fk_1485549'); - $table->dropForeign('application_source_fk_1485545'); - $table->dropForeign('database_dest_fk_1485552'); - $table->dropForeign('database_source_fk_1485548'); - $table->dropForeign('module_dest_fk_1485551'); - $table->dropForeign('module_source_fk_1485547'); - $table->dropForeign('service_dest_fk_1485550'); - $table->dropForeign('service_source_fk_1485546'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('application_dest_fk_1485549'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('application_source_fk_1485545'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('database_dest_fk_1485552'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('database_source_fk_1485548'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('module_dest_fk_1485551'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('module_source_fk_1485547'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('service_dest_fk_1485550'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('service_source_fk_1485546'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_forest_ads_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_forest_ads_table.php index dbdcbe59..1456a936 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_forest_ads_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_forest_ads_table.php @@ -26,7 +26,9 @@ public function up() public function down() { Schema::table('forest_ads', function (Blueprint $table) { - $table->dropForeign('zone_admin_fk_1482667'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('zone_admin_fk_1482667'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_information_process_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_information_process_table.php index 4b799717..412d2652 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_information_process_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_information_process_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('information_process', function (Blueprint $table) { - $table->dropForeign('information_id_fk_1473025'); - $table->dropForeign('process_id_fk_1473025'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('information_id_fk_1473025'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('process_id_fk_1473025'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_lan_man_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_lan_man_table.php index 694a96bf..35a29a48 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_lan_man_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_lan_man_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('lan_man', function (Blueprint $table) { - $table->dropForeign('lan_id_fk_1490345'); - $table->dropForeign('man_id_fk_1490345'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('lan_id_fk_1490345'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('man_id_fk_1490345'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_lan_wan_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_lan_wan_table.php index 9a9fb441..8aac5d47 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_lan_wan_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_lan_wan_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('lan_wan', function (Blueprint $table) { - $table->dropForeign('lan_id_fk_1490368'); - $table->dropForeign('wan_id_fk_1490368'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('lan_id_fk_1490368'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('wan_id_fk_1490368'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_logical_server_m_application_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_logical_server_m_application_table.php index 3b01790e..6b53d062 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_logical_server_m_application_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_logical_server_m_application_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('logical_server_m_application', function (Blueprint $table) { - $table->dropForeign('logical_server_id_fk_1488616'); - $table->dropForeign('m_application_id_fk_1488616'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('logical_server_id_fk_1488616'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('m_application_id_fk_1488616'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_logical_server_physical_server_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_logical_server_physical_server_table.php index 37fe5530..fd2888f6 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_logical_server_physical_server_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_logical_server_physical_server_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('logical_server_physical_server', function (Blueprint $table) { - $table->dropForeign('logical_server_id_fk_1657961'); - $table->dropForeign('physical_server_id_fk_1657961'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('logical_server_id_fk_1657961'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('physical_server_id_fk_1657961'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_m_application_process_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_m_application_process_table.php index 250c704b..02650030 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_m_application_process_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_m_application_process_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('m_application_process', function (Blueprint $table) { - $table->dropForeign('m_application_id_fk_1482573'); - $table->dropForeign('process_id_fk_1482573'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('m_application_id_fk_1482573'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('process_id_fk_1482573'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_m_applications_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_m_applications_table.php index 5c2a5f17..bebb3ea2 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_m_applications_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_m_applications_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('m_applications', function (Blueprint $table) { - $table->dropForeign('application_block_fk_1644592'); - $table->dropForeign('entity_resp_fk_1488612'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('application_block_fk_1644592'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('entity_resp_fk_1488612'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_man_wan_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_man_wan_table.php index 356c32d0..cbcfd866 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_man_wan_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_man_wan_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('man_wan', function (Blueprint $table) { - $table->dropForeign('man_id_fk_1490367'); - $table->dropForeign('wan_id_fk_1490367'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('man_id_fk_1490367'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('wan_id_fk_1490367'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_network_subnetword_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_network_subnetword_table.php index c2a1960b..5b95c182 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_network_subnetword_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_network_subnetword_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('network_subnetword', function (Blueprint $table) { - $table->dropForeign('network_id_fk_1492377'); - $table->dropForeign('subnetword_id_fk_1492377'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('network_id_fk_1492377'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('subnetword_id_fk_1492377'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_operation_task_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_operation_task_table.php index 5822d686..707bf307 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_operation_task_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_operation_task_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('operation_task', function (Blueprint $table) { - $table->dropForeign('operation_id_fk_1472749'); - $table->dropForeign('task_id_fk_1472749'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('operation_id_fk_1472749'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('task_id_fk_1472749'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_peripherals_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_peripherals_table.php index 0b296178..299fb228 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_peripherals_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_peripherals_table.php @@ -28,9 +28,15 @@ public function up() public function down() { Schema::table('peripherals', function (Blueprint $table) { - $table->dropForeign('bay_fk_1485451'); - $table->dropForeign('building_fk_1485450'); - $table->dropForeign('site_fk_1485449'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('bay_fk_1485451'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('building_fk_1485450'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('site_fk_1485449'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_permission_role_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_permission_role_table.php index fa37d82d..e8ef238d 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_permission_role_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_permission_role_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('permission_role', function (Blueprint $table) { - $table->dropForeign('permission_id_fk_1470794'); - $table->dropForeign('role_id_fk_1470794'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('permission_id_fk_1470794'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('role_id_fk_1470794'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_phones_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_phones_table.php index 25e260d7..83577775 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_phones_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_phones_table.php @@ -28,9 +28,15 @@ public function up() public function down() { Schema::table('phones', function (Blueprint $table) { - $table->dropForeign('building_fk_1485480'); - $table->dropForeign('physical_switch_fk_5738332'); - $table->dropForeign('site_fk_1485479'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('building_fk_1485480'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('physical_switch_fk_5738332'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('site_fk_1485479'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_physical_router_vlan_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_physical_router_vlan_table.php index 099ecd1a..6ef5490c 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_physical_router_vlan_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_physical_router_vlan_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('physical_router_vlan', function (Blueprint $table) { - $table->dropForeign('physical_router_id_fk_1658250'); - $table->dropForeign('vlan_id_fk_1658250'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('physical_router_id_fk_1658250'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('vlan_id_fk_1658250'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_physical_routers_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_physical_routers_table.php index 461446a9..ca61f996 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_physical_routers_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_physical_routers_table.php @@ -28,9 +28,15 @@ public function up() public function down() { Schema::table('physical_routers', function (Blueprint $table) { - $table->dropForeign('bay_fk_1485499'); - $table->dropForeign('building_fk_1485498'); - $table->dropForeign('site_fk_1485497'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('bay_fk_1485499'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('building_fk_1485498'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('site_fk_1485497'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_physical_security_devices_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_physical_security_devices_table.php index e3eec747..c525fd55 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_physical_security_devices_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_physical_security_devices_table.php @@ -28,9 +28,15 @@ public function up() public function down() { Schema::table('physical_security_devices', function (Blueprint $table) { - $table->dropForeign('bay_fk_1485519'); - $table->dropForeign('building_fk_1485518'); - $table->dropForeign('site_fk_1485517'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('bay_fk_1485519'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('building_fk_1485518'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('site_fk_1485517'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_physical_servers_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_physical_servers_table.php index 938df9a7..51ff881d 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_physical_servers_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_physical_servers_table.php @@ -29,10 +29,18 @@ public function up() public function down() { Schema::table('physical_servers', function (Blueprint $table) { - $table->dropForeign('bay_fk_1485324'); - $table->dropForeign('building_fk_1485323'); - $table->dropForeign('physical_switch_fk_8732342'); - $table->dropForeign('site_fk_1485322'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('bay_fk_1485324'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('building_fk_1485323'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('physical_switch_fk_8732342'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('site_fk_1485322'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_physical_switches_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_physical_switches_table.php index d8afcbc9..71460a53 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_physical_switches_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_physical_switches_table.php @@ -28,9 +28,15 @@ public function up() public function down() { Schema::table('physical_switches', function (Blueprint $table) { - $table->dropForeign('bay_fk_1485493'); - $table->dropForeign('building_fk_1485489'); - $table->dropForeign('site_fk_1485488'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('bay_fk_1485493'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('building_fk_1485489'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('site_fk_1485488'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_processes_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_processes_table.php index 2c3ab74a..5870b418 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_processes_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_processes_table.php @@ -26,7 +26,9 @@ public function up() public function down() { Schema::table('processes', function (Blueprint $table) { - $table->dropForeign('processes_ibfk_1'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('processes_ibfk_1'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_relations_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_relations_table.php index 8546f9a5..03b43ddb 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_relations_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_relations_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('relations', function (Blueprint $table) { - $table->dropForeign('destination_fk_1494373'); - $table->dropForeign('source_fk_1494372'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('destination_fk_1494373'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('source_fk_1494372'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_role_user_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_role_user_table.php index be561bee..1a24334a 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_role_user_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_role_user_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('role_user', function (Blueprint $table) { - $table->dropForeign('role_id_fk_1470803'); - $table->dropForeign('user_id_fk_1470803'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('role_id_fk_1470803'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('user_id_fk_1470803'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_storage_devices_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_storage_devices_table.php index 8b3fc284..9c987b8c 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_storage_devices_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_storage_devices_table.php @@ -29,10 +29,18 @@ public function up() public function down() { Schema::table('storage_devices', function (Blueprint $table) { - $table->dropForeign('bay_fk_1485363'); - $table->dropForeign('building_fk_1485362'); - $table->dropForeign('physical_switch_fk_4025543'); - $table->dropForeign('site_fk_1485361'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('bay_fk_1485363'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('building_fk_1485362'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('physical_switch_fk_4025543'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('site_fk_1485361'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_subnetworks_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_subnetworks_table.php index c9b4c4cb..58ea6218 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_subnetworks_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_subnetworks_table.php @@ -27,8 +27,12 @@ public function up() public function down() { Schema::table('subnetworks', function (Blueprint $table) { - $table->dropForeign('connected_subnets_fk_1483256'); - $table->dropForeign('gateway_fk_1492376'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('connected_subnets_fk_1483256'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('gateway_fk_1492376'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_wifi_terminals_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_wifi_terminals_table.php index 175beaea..84ef26fb 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_wifi_terminals_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_wifi_terminals_table.php @@ -28,9 +28,15 @@ public function up() public function down() { Schema::table('wifi_terminals', function (Blueprint $table) { - $table->dropForeign('building_fk_1485508'); - $table->dropForeign('physical_switch_fk_593584'); - $table->dropForeign('site_fk_1485507'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('building_fk_1485508'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('physical_switch_fk_593584'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('site_fk_1485507'); + } }); } } diff --git a/database/migrations/2021_05_08_191251_add_foreign_keys_to_workstations_table.php b/database/migrations/2021_05_08_191251_add_foreign_keys_to_workstations_table.php index 6f170bf4..c2702507 100644 --- a/database/migrations/2021_05_08_191251_add_foreign_keys_to_workstations_table.php +++ b/database/migrations/2021_05_08_191251_add_foreign_keys_to_workstations_table.php @@ -28,9 +28,15 @@ public function up() public function down() { Schema::table('workstations', function (Blueprint $table) { - $table->dropForeign('building_fk_1485333'); - $table->dropForeign('physical_switch_fk_0938434'); - $table->dropForeign('site_fk_1485332'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('building_fk_1485333'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('physical_switch_fk_0938434'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('site_fk_1485332'); + } }); } } diff --git a/database/migrations/2021_05_19_161123_rename_subnetwork.php b/database/migrations/2021_05_19_161123_rename_subnetwork.php index e520da57..d09d33f2 100644 --- a/database/migrations/2021_05_19_161123_rename_subnetwork.php +++ b/database/migrations/2021_05_19_161123_rename_subnetwork.php @@ -15,7 +15,9 @@ class RenameSubnetwork extends Migration public function up() { Schema::table('network_subnetword', function (Blueprint $table) { - $table->dropForeign('subnetword_id_fk_1492377'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('subnetword_id_fk_1492377'); + } }); Schema::rename('network_subnetword', 'network_subnetwork'); @@ -45,7 +47,9 @@ public function down() { // Schema::table('network_subnetwork', function (Blueprint $table) { - $table->dropForeign('subnetwork_id_fk_1492377'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('subnetwork_id_fk_1492377'); + } }); Schema::rename('network_subnetwork', 'network_subnetword'); diff --git a/database/migrations/2021_08_18_171048_network_redesign.php b/database/migrations/2021_08_18_171048_network_redesign.php index fb825ef8..5a9a7508 100644 --- a/database/migrations/2021_08_18_171048_network_redesign.php +++ b/database/migrations/2021_08_18_171048_network_redesign.php @@ -54,10 +54,14 @@ public function down() // remove column zone in subnetworks $table->dropColumn('zone'); // remove link to vlan in subnetwork - $table->dropForeign('vlan_fk_6844934'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('vlan_fk_6844934'); + } $table->dropColumn('vlan_id'); // remove link to vlan in network - $table->dropForeign('network_fk_5476544'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('network_fk_5476544'); + } $table->dropColumn('network_id'); }); } diff --git a/database/migrations/2021_08_28_152910_cleanup.php b/database/migrations/2021_08_28_152910_cleanup.php index 05a44507..78df1437 100644 --- a/database/migrations/2021_08_28_152910_cleanup.php +++ b/database/migrations/2021_08_28_152910_cleanup.php @@ -25,7 +25,9 @@ public function up() }); Schema::table('wifi_terminals', function (Blueprint $table) { - $table->dropForeign('physical_switch_fk_593584'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('physical_switch_fk_593584'); + } $table->dropColumn('physical_switch_id'); }); diff --git a/database/migrations/2022_06_27_061444_application_workstation.php b/database/migrations/2022_06_27_061444_application_workstation.php index 864cbadc..6b38d41e 100644 --- a/database/migrations/2022_06_27_061444_application_workstation.php +++ b/database/migrations/2022_06_27_061444_application_workstation.php @@ -38,8 +38,12 @@ public function up() public function down() { Schema::table('m_application_workstation', function (Blueprint $table) { - $table->dropForeign('workstation_id_fk_1486547'); - $table->dropForeign('m_application_id_fk_1486547'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('workstation_id_fk_1486547'); + } + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('m_application_id_fk_1486547'); + } }); Schema::dropIfExists('m_application_workstation'); diff --git a/database/migrations/2022_07_28_105153_add_link_operation_process.php b/database/migrations/2022_07_28_105153_add_link_operation_process.php index 13de729d..4b9314d8 100644 --- a/database/migrations/2022_07_28_105153_add_link_operation_process.php +++ b/database/migrations/2022_07_28_105153_add_link_operation_process.php @@ -27,7 +27,9 @@ public function up() public function down() { Schema::table('operations', function (Blueprint $table) { - $table->dropForeign('process_id_fk_7945129'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('process_id_fk_7945129'); + } $table->dropColumn('process_id'); }); } diff --git a/database/migrations/2022_08_11_165441_add_vpn_fields.php b/database/migrations/2022_08_11_165441_add_vpn_fields.php index 9a56e262..5d979ec2 100644 --- a/database/migrations/2022_08_11_165441_add_vpn_fields.php +++ b/database/migrations/2022_08_11_165441_add_vpn_fields.php @@ -43,10 +43,14 @@ public function down() $table->dropColumn('type'); $table->string("responsible_sec")->nullable()->after("name"); - $table->dropForeign('network_id_fk_8596554'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('network_id_fk_8596554'); + } $table->dropColumn('network_id'); - $table->dropForeign('entity_id_fk_1295034'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('entity_id_fk_1295034'); + } $table->dropColumn('entity_id'); $table->dropColumn('src'); diff --git a/database/migrations/2023_01_28_145242_add_logical_devices_link.php b/database/migrations/2023_01_28_145242_add_logical_devices_link.php index 823b730e..cfc63112 100644 --- a/database/migrations/2023_01_28_145242_add_logical_devices_link.php +++ b/database/migrations/2023_01_28_145242_add_logical_devices_link.php @@ -43,22 +43,34 @@ public function down() { Schema::table('physical_links', function (Blueprint $table) { - $table->dropForeign('router_src_id_fk'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('router_src_id_fk'); + } $table->dropColumn('router_src_id'); - $table->dropForeign('router_dest_id_fk'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('router_dest_id_fk'); + } $table->dropColumn('router_dest_id'); - $table->dropForeign('network_switch_src_id_fk'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('network_switch_src_id_fk'); + } $table->dropColumn('network_switch_src_id'); - $table->dropForeign('network_switch_dest_id_fk'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('network_switch_dest_id_fk'); + } $table->dropColumn('network_switch_dest_id'); - $table->dropForeign('logical_server_src_id_fk'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('logical_server_src_id_fk'); + } $table->dropColumn('logical_server_src_id'); - $table->dropForeign('logical_server_dest_id_fk'); + if (DB::getDriverName() !== 'sqlite') { + $table->dropForeign('logical_server_dest_id_fk'); + } $table->dropColumn('logical_server_dest_id'); }); From cd3c956fe3b8cd770ab1b7f832c527e60cdb4ac7 Mon Sep 17 00:00:00 2001 From: Alban Siffer Date: Wed, 19 Apr 2023 15:07:24 +0200 Subject: [PATCH 03/22] merge dropColumn --- .../2021_05_13_180642_add_cidt_criteria.php | 20 +++------- .../migrations/2021_06_22_170555_add_type.php | 4 +- .../2021_08_18_171048_network_redesign.php | 13 +++---- .../2021_08_20_034757_default_gateway.php | 2 +- .../migrations/2021_08_28_152910_cleanup.php | 9 ++--- .../2021_09_21_161028_add_router_ip.php | 2 +- .../2021_09_22_114706_add_security_ciat.php | 4 +- ...21_09_28_205405_add_direction_to_flows.php | 2 +- .../2021_10_19_102610_add_address_ip.php | 4 +- .../2021_11_23_204551_add_app_version.php | 2 +- .../2022_02_22_32654_add_cert_status.php | 2 +- ...d_functional_referent_to_m_application.php | 2 +- ..._27_163129_add_editor_to_m_application.php | 2 +- ...331_add_is_external_column_to_entities.php | 2 +- ...1_103208_add_type_property_to_entities.php | 2 +- ...7_28_105153_add_link_operation_process.php | 2 +- .../2022_08_11_165441_add_vpn_fields.php | 10 ++--- ...22_09_13_204845_cert_last_notification.php | 2 +- .../migrations/2022_12_17_115624_rto_rpo.php | 3 +- .../2023_01_27_165009_add_flux_nature.php | 2 +- ..._01_28_145242_add_logical_devices_link.php | 12 +++--- .../migrations/2023_02_09_164940_gdpr.php | 10 +---- .../2023_03_22_185812_create_cpe.php | 39 +++++-------------- 23 files changed, 53 insertions(+), 99 deletions(-) diff --git a/database/migrations/2021_05_13_180642_add_cidt_criteria.php b/database/migrations/2021_05_13_180642_add_cidt_criteria.php index edabbcd0..79496962 100644 --- a/database/migrations/2021_05_13_180642_add_cidt_criteria.php +++ b/database/migrations/2021_05_13_180642_add_cidt_criteria.php @@ -54,33 +54,23 @@ public function down() { Schema::table('macro_processuses', function (Blueprint $table) { $table->renameColumn('security_need_c', 'security_need'); - $table->dropColumn('security_need_i'); - $table->dropColumn('security_need_a'); - $table->dropColumn('security_need_t'); + $table->dropColumn(['security_need_i', 'security_need_a', 'security_need_t']); }); Schema::table('processes', function (Blueprint $table) { $table->renameColumn('security_need_c', 'security_need'); - $table->dropColumn('security_need_i'); - $table->dropColumn('security_need_a'); - $table->dropColumn('security_need_t'); + $table->dropColumn(['security_need_i', 'security_need_a', 'security_need_t']); }); Schema::table('information', function (Blueprint $table) { $table->renameColumn('security_need_c', 'security_need'); - $table->dropColumn('security_need_i'); - $table->dropColumn('security_need_a'); - $table->dropColumn('security_need_t'); + $table->dropColumn(['security_need_i', 'security_need_a', 'security_need_t']); }); Schema::table('m_applications', function (Blueprint $table) { $table->renameColumn('security_need_c', 'security_need'); - $table->dropColumn('security_need_i'); - $table->dropColumn('security_need_a'); - $table->dropColumn('security_need_t'); + $table->dropColumn(['security_need_i', 'security_need_a', 'security_need_t']); }); Schema::table('databases', function (Blueprint $table) { $table->renameColumn('security_need_c', 'security_need'); - $table->dropColumn('security_need_i'); - $table->dropColumn('security_need_a'); - $table->dropColumn('security_need_t'); + $table->dropColumn(['security_need_i', 'security_need_a', 'security_need_t']); }); } } diff --git a/database/migrations/2021_06_22_170555_add_type.php b/database/migrations/2021_06_22_170555_add_type.php index 3e9b48ee..583f0e81 100644 --- a/database/migrations/2021_06_22_170555_add_type.php +++ b/database/migrations/2021_06_22_170555_add_type.php @@ -30,11 +30,11 @@ public function up() public function down() { Schema::table('physical_servers', function (Blueprint $table) { - $table->dropColumn('type'); + $table->dropColumn(['type']); }); Schema::table('workstations', function (Blueprint $table) { - $table->dropColumn('type'); + $table->dropColumn(['type']); }); } } diff --git a/database/migrations/2021_08_18_171048_network_redesign.php b/database/migrations/2021_08_18_171048_network_redesign.php index 5a9a7508..c98b4ff3 100644 --- a/database/migrations/2021_08_18_171048_network_redesign.php +++ b/database/migrations/2021_08_18_171048_network_redesign.php @@ -27,15 +27,12 @@ public function up() /* to process later... // remove link to physical_switch_id in wifi_terminals Schema::table('wifi_terminals', function(Blueprint $table) { - $table->dropColumn('physical_switch_id'); + $table->dropColumn(['physical_switch_id']); } // cleanup VLAN table Schema::table('vlans', function(Blueprint $table) { - $table->dropColumn('address'); - $table->dropColumn('mask'); - $table->dropColumn('gateway'); - $table->dropColumn('zone'); + $table->dropColumn(['address', 'mask', 'gateway', 'zone']); } // remove table between networks and subnetworks @@ -52,17 +49,17 @@ public function down() { Schema::table('subnetworks', function (Blueprint $table) { // remove column zone in subnetworks - $table->dropColumn('zone'); + $table->dropColumn(['zone']); // remove link to vlan in subnetwork if (DB::getDriverName() !== 'sqlite') { $table->dropForeign('vlan_fk_6844934'); } - $table->dropColumn('vlan_id'); + $table->dropColumn(['vlan_id']); // remove link to vlan in network if (DB::getDriverName() !== 'sqlite') { $table->dropForeign('network_fk_5476544'); } - $table->dropColumn('network_id'); + $table->dropColumn(['network_id']); }); } } diff --git a/database/migrations/2021_08_20_034757_default_gateway.php b/database/migrations/2021_08_20_034757_default_gateway.php index 1a2b32e6..c8513d5a 100644 --- a/database/migrations/2021_08_20_034757_default_gateway.php +++ b/database/migrations/2021_08_20_034757_default_gateway.php @@ -26,7 +26,7 @@ public function up() public function down() { Schema::table('subnetworks', function (Blueprint $table) { - $table->dropColumn('default_gateway'); + $table->dropColumn(['default_gateway']); }); } } diff --git a/database/migrations/2021_08_28_152910_cleanup.php b/database/migrations/2021_08_28_152910_cleanup.php index 78df1437..6fbabfc2 100644 --- a/database/migrations/2021_08_28_152910_cleanup.php +++ b/database/migrations/2021_08_28_152910_cleanup.php @@ -14,21 +14,18 @@ class Cleanup extends Migration public function up() { Schema::table('vlans', function (Blueprint $table) { - $table->dropColumn('address'); - $table->dropColumn('mask'); - $table->dropColumn('zone'); - $table->dropColumn('gateway'); + $table->dropColumn(['address', 'mask', 'zone', 'gateway']); }); Schema::table('subnetworks', function (Blueprint $table) { - $table->dropColumn('ip_range'); + $table->dropColumn(['ip_range']); }); Schema::table('wifi_terminals', function (Blueprint $table) { if (DB::getDriverName() !== 'sqlite') { $table->dropForeign('physical_switch_fk_593584'); } - $table->dropColumn('physical_switch_id'); + $table->dropColumn(['physical_switch_id']); }); Schema::drop('network_subnetwork'); diff --git a/database/migrations/2021_09_21_161028_add_router_ip.php b/database/migrations/2021_09_21_161028_add_router_ip.php index 15d577ab..c1416420 100644 --- a/database/migrations/2021_09_21_161028_add_router_ip.php +++ b/database/migrations/2021_09_21_161028_add_router_ip.php @@ -26,7 +26,7 @@ public function up() public function down() { Schema::table('routers', function (Blueprint $table) { - $table->dropColumn('ip_addresses'); + $table->dropColumn(['ip_addresses']); }); } } diff --git a/database/migrations/2021_09_22_114706_add_security_ciat.php b/database/migrations/2021_09_22_114706_add_security_ciat.php index 00974dcd..6ae30867 100644 --- a/database/migrations/2021_09_22_114706_add_security_ciat.php +++ b/database/migrations/2021_09_22_114706_add_security_ciat.php @@ -30,9 +30,7 @@ public function down() { Schema::table('networks', function (Blueprint $table) { $table->renameColumn('security_need_c', 'security_need'); - $table->dropColumn('security_need_i'); - $table->dropColumn('security_need_a'); - $table->dropColumn('security_need_t'); + $table->dropColumn(['security_need_i', 'security_need_a', 'security_need_t']); }); } } diff --git a/database/migrations/2021_09_28_205405_add_direction_to_flows.php b/database/migrations/2021_09_28_205405_add_direction_to_flows.php index 103cc55f..d95c980f 100644 --- a/database/migrations/2021_09_28_205405_add_direction_to_flows.php +++ b/database/migrations/2021_09_28_205405_add_direction_to_flows.php @@ -26,7 +26,7 @@ public function up() public function down() { Schema::table('fluxes', function (Blueprint $table) { - $table->dropColumn('bidirectional'); + $table->dropColumn(['bidirectional']); }); } } diff --git a/database/migrations/2021_10_19_102610_add_address_ip.php b/database/migrations/2021_10_19_102610_add_address_ip.php index f8ef2895..4c8b64ca 100644 --- a/database/migrations/2021_10_19_102610_add_address_ip.php +++ b/database/migrations/2021_10_19_102610_add_address_ip.php @@ -31,10 +31,10 @@ public function up() public function down() { Schema::table('dnsservers', function (Blueprint $table) { - $table->dropColumn('address_ip'); + $table->dropColumn(['address_ip']); }); Schema::table('dhcp_servers', function (Blueprint $table) { - $table->dropColumn('address_ip'); + $table->dropColumn(['address_ip']); }); } } diff --git a/database/migrations/2021_11_23_204551_add_app_version.php b/database/migrations/2021_11_23_204551_add_app_version.php index e93d57da..4cea0147 100644 --- a/database/migrations/2021_11_23_204551_add_app_version.php +++ b/database/migrations/2021_11_23_204551_add_app_version.php @@ -26,7 +26,7 @@ public function up() public function down() { Schema::table('m_applications', function (Blueprint $table) { - $table->dropColumn('version'); + $table->dropColumn(['version']); }); } } diff --git a/database/migrations/2022_02_22_32654_add_cert_status.php b/database/migrations/2022_02_22_32654_add_cert_status.php index 79b4c2ec..5da331b0 100644 --- a/database/migrations/2022_02_22_32654_add_cert_status.php +++ b/database/migrations/2022_02_22_32654_add_cert_status.php @@ -26,7 +26,7 @@ public function up() public function down() { Schema::table('certificates', function (Blueprint $table) { - $table->dropColumn('status'); + $table->dropColumn(['status']); }); } } diff --git a/database/migrations/2022_02_27_162738_add_functional_referent_to_m_application.php b/database/migrations/2022_02_27_162738_add_functional_referent_to_m_application.php index 07077e9f..dd0998a4 100644 --- a/database/migrations/2022_02_27_162738_add_functional_referent_to_m_application.php +++ b/database/migrations/2022_02_27_162738_add_functional_referent_to_m_application.php @@ -26,7 +26,7 @@ public function up() public function down() { Schema::table('m_applications', function (Blueprint $table) { - $table->dropColumn('functional_referent'); + $table->dropColumn(['functional_referent']); }); } } diff --git a/database/migrations/2022_02_27_163129_add_editor_to_m_application.php b/database/migrations/2022_02_27_163129_add_editor_to_m_application.php index a38d3466..557359c4 100644 --- a/database/migrations/2022_02_27_163129_add_editor_to_m_application.php +++ b/database/migrations/2022_02_27_163129_add_editor_to_m_application.php @@ -26,7 +26,7 @@ public function up() public function down() { Schema::table('m_applications', function (Blueprint $table) { - $table->dropColumn('editor'); + $table->dropColumn(['editor']); }); } } diff --git a/database/migrations/2022_05_18_140331_add_is_external_column_to_entities.php b/database/migrations/2022_05_18_140331_add_is_external_column_to_entities.php index cde45979..bccac938 100644 --- a/database/migrations/2022_05_18_140331_add_is_external_column_to_entities.php +++ b/database/migrations/2022_05_18_140331_add_is_external_column_to_entities.php @@ -26,7 +26,7 @@ public function up() public function down() { Schema::table('entities', function (Blueprint $table) { - $table->dropColumn('is_external'); + $table->dropColumn(['is_external']); }); } } diff --git a/database/migrations/2022_05_21_103208_add_type_property_to_entities.php b/database/migrations/2022_05_21_103208_add_type_property_to_entities.php index 36e3d9ad..8bef6d3a 100644 --- a/database/migrations/2022_05_21_103208_add_type_property_to_entities.php +++ b/database/migrations/2022_05_21_103208_add_type_property_to_entities.php @@ -26,7 +26,7 @@ public function up() public function down() { Schema::table('entities', function (Blueprint $table) { - $table->dropColumn('entity_type'); + $table->dropColumn(['entity_type']); }); } } diff --git a/database/migrations/2022_07_28_105153_add_link_operation_process.php b/database/migrations/2022_07_28_105153_add_link_operation_process.php index 4b9314d8..f7612364 100644 --- a/database/migrations/2022_07_28_105153_add_link_operation_process.php +++ b/database/migrations/2022_07_28_105153_add_link_operation_process.php @@ -30,7 +30,7 @@ public function down() if (DB::getDriverName() !== 'sqlite') { $table->dropForeign('process_id_fk_7945129'); } - $table->dropColumn('process_id'); + $table->dropColumn(['process_id']); }); } } diff --git a/database/migrations/2022_08_11_165441_add_vpn_fields.php b/database/migrations/2022_08_11_165441_add_vpn_fields.php index 5d979ec2..4d6a9d20 100644 --- a/database/migrations/2022_08_11_165441_add_vpn_fields.php +++ b/database/migrations/2022_08_11_165441_add_vpn_fields.php @@ -39,22 +39,20 @@ public function up() public function down() { Schema::table('external_connected_entities', function (Blueprint $table) { - $table->dropColumn('description'); - $table->dropColumn('type'); + $table->dropColumn(['description', 'type']); $table->string("responsible_sec")->nullable()->after("name"); if (DB::getDriverName() !== 'sqlite') { $table->dropForeign('network_id_fk_8596554'); } - $table->dropColumn('network_id'); + $table->dropColumn(['network_id']); if (DB::getDriverName() !== 'sqlite') { $table->dropForeign('entity_id_fk_1295034'); } - $table->dropColumn('entity_id'); + $table->dropColumn(['entity_id']); - $table->dropColumn('src'); - $table->dropColumn('dest'); + $table->dropColumn(['src', 'dest']); }); Schema::create('external_connected_entity_network', function (Blueprint $table) { $table->unsignedInteger('external_connected_entity_id')->index('external_connected_entity_id_fk_1483344'); diff --git a/database/migrations/2022_09_13_204845_cert_last_notification.php b/database/migrations/2022_09_13_204845_cert_last_notification.php index ac6d8ac4..9b1e81ce 100644 --- a/database/migrations/2022_09_13_204845_cert_last_notification.php +++ b/database/migrations/2022_09_13_204845_cert_last_notification.php @@ -26,7 +26,7 @@ public function up() public function down() { Schema::table('certificates', function (Blueprint $table) { - $table->dropColumn('last_notification'); + $table->dropColumn(['last_notification']); }); } } diff --git a/database/migrations/2022_12_17_115624_rto_rpo.php b/database/migrations/2022_12_17_115624_rto_rpo.php index ecd3cd89..f4106f78 100644 --- a/database/migrations/2022_12_17_115624_rto_rpo.php +++ b/database/migrations/2022_12_17_115624_rto_rpo.php @@ -27,8 +27,7 @@ public function up() public function down() { Schema::table('m_applications', function (Blueprint $table) { - $table->dropColumn('rto'); - $table->dropColumn('rpo'); + $table->dropColumn(['rto', 'rpo']); }); } } diff --git a/database/migrations/2023_01_27_165009_add_flux_nature.php b/database/migrations/2023_01_27_165009_add_flux_nature.php index 71db863b..d8af976b 100644 --- a/database/migrations/2023_01_27_165009_add_flux_nature.php +++ b/database/migrations/2023_01_27_165009_add_flux_nature.php @@ -26,7 +26,7 @@ public function up() public function down() { Schema::table('fluxes', function (Blueprint $table) { - $table->dropColumn('nature'); + $table->dropColumn(['nature']); }); } } diff --git a/database/migrations/2023_01_28_145242_add_logical_devices_link.php b/database/migrations/2023_01_28_145242_add_logical_devices_link.php index cfc63112..f7703e39 100644 --- a/database/migrations/2023_01_28_145242_add_logical_devices_link.php +++ b/database/migrations/2023_01_28_145242_add_logical_devices_link.php @@ -46,32 +46,32 @@ public function down() if (DB::getDriverName() !== 'sqlite') { $table->dropForeign('router_src_id_fk'); } - $table->dropColumn('router_src_id'); + $table->dropColumn(['router_src_id']); if (DB::getDriverName() !== 'sqlite') { $table->dropForeign('router_dest_id_fk'); } - $table->dropColumn('router_dest_id'); + $table->dropColumn(['router_dest_id']); if (DB::getDriverName() !== 'sqlite') { $table->dropForeign('network_switch_src_id_fk'); } - $table->dropColumn('network_switch_src_id'); + $table->dropColumn(['network_switch_src_id']); if (DB::getDriverName() !== 'sqlite') { $table->dropForeign('network_switch_dest_id_fk'); } - $table->dropColumn('network_switch_dest_id'); + $table->dropColumn(['network_switch_dest_id']); if (DB::getDriverName() !== 'sqlite') { $table->dropForeign('logical_server_src_id_fk'); } - $table->dropColumn('logical_server_src_id'); + $table->dropColumn(['logical_server_src_id']); if (DB::getDriverName() !== 'sqlite') { $table->dropForeign('logical_server_dest_id_fk'); } - $table->dropColumn('logical_server_dest_id'); + $table->dropColumn(['logical_server_dest_id']); }); } diff --git a/database/migrations/2023_02_09_164940_gdpr.php b/database/migrations/2023_02_09_164940_gdpr.php index d20e4a3b..988b1e85 100644 --- a/database/migrations/2023_02_09_164940_gdpr.php +++ b/database/migrations/2023_02_09_164940_gdpr.php @@ -38,17 +38,11 @@ public function up() public function down() { Schema::table('activities', function (Blueprint $table) { - $table->dropColumn('responsible'); - $table->dropColumn('purpose'); - $table->dropColumn('categories'); - $table->dropColumn('recipients'); - $table->dropColumn('transfert'); - $table->dropColumn('retention'); - $table->dropColumn('controls'); + $table->dropColumn(['responsible', 'purpose', 'categories', 'recipients', 'transfert', 'retention', 'controls']); }); Schema::table('information', function (Blueprint $table) { - $table->dropColumn('retention'); + $table->dropColumn(['retention']); }); } } diff --git a/database/migrations/2023_03_22_185812_create_cpe.php b/database/migrations/2023_03_22_185812_create_cpe.php index 92aacf29..282b301f 100644 --- a/database/migrations/2023_03_22_185812_create_cpe.php +++ b/database/migrations/2023_03_22_185812_create_cpe.php @@ -118,62 +118,43 @@ public function down() Schema::dropIfExists('cpe_vendors'); Schema::table('m_applications', function (Blueprint $table) { - $table->dropColumn('vendor'); - $table->dropColumn('product'); + $table->dropColumn(['vendor', 'product']); }); Schema::table('physical_switches', function (Blueprint $table) { - $table->dropColumn('vendor'); - $table->dropColumn('product'); - $table->dropColumn('version'); + $table->dropColumn(['vendor', 'product', 'version']); }); Schema::table('physical_routers', function (Blueprint $table) { - $table->dropColumn('vendor'); - $table->dropColumn('product'); - $table->dropColumn('version'); + $table->dropColumn(['vendor', 'product', 'version']); }); Schema::table('peripherals', function (Blueprint $table) { - $table->dropColumn('vendor'); - $table->dropColumn('product'); - $table->dropColumn('version'); + $table->dropColumn(['vendor', 'product', 'version']); }); Schema::table('wifi_terminals', function (Blueprint $table) { - $table->dropColumn('vendor'); - $table->dropColumn('product'); - $table->dropColumn('version'); + $table->dropColumn(['vendor', 'product', 'version']); }); Schema::table('phones', function (Blueprint $table) { - $table->dropColumn('vendor'); - $table->dropColumn('product'); - $table->dropColumn('version'); + $table->dropColumn(['vendor', 'product', 'version']); }); Schema::table('security_devices', function (Blueprint $table) { - $table->dropColumn('vendor'); - $table->dropColumn('product'); - $table->dropColumn('version'); + $table->dropColumn(['vendor', 'product', 'version']); }); Schema::table('workstations', function (Blueprint $table) { - $table->dropColumn('vendor'); - $table->dropColumn('product'); - $table->dropColumn('version'); + $table->dropColumn(['vendor', 'product', 'version']); }); Schema::table('physical_servers', function (Blueprint $table) { - $table->dropColumn('vendor'); - $table->dropColumn('product'); - $table->dropColumn('version'); + $table->dropColumn(['vendor', 'product', 'version']); }); Schema::table('storage_devices', function (Blueprint $table) { - $table->dropColumn('vendor'); - $table->dropColumn('product'); - $table->dropColumn('version'); + $table->dropColumn(['vendor', 'product', 'version']); }); } } From e24f84ffae31bd19b3f5353e9c1782bf48148858 Mon Sep 17 00:00:00 2001 From: Alban Siffer Date: Wed, 19 Apr 2023 15:24:17 +0200 Subject: [PATCH 04/22] docker container build action --- .github/workflows/docker.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/docker.yaml diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml new file mode 100644 index 00000000..dfc49ab8 --- /dev/null +++ b/.github/workflows/docker.yaml @@ -0,0 +1,31 @@ +name: docker + +on: + push: + branches: + - "main" + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Test naming + run: echo "ghcr.io/${{ github.repository }}:latest" + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v4 + with: + context: . + platforms: linux/amd64 + push: false + tags: | + ghcr.io/${{ github.repository }}:latest From 8ea6ed07fca5af6eacff0791eeec440d20cf5702 Mon Sep 17 00:00:00 2001 From: Alban Siffer Date: Wed, 19 Apr 2023 15:24:58 +0200 Subject: [PATCH 05/22] update dockerignore --- .dockerignore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.dockerignore b/.dockerignore index ac67bc07..56a50980 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,2 +1,6 @@ .git docker/data +*.Dockerfile +*.md +.dockerignore +.env* \ No newline at end of file From c392ea1b41e419b0143b68bff3bf894108569809 Mon Sep 17 00:00:00 2001 From: Alban Siffer Date: Wed, 19 Apr 2023 15:26:27 +0200 Subject: [PATCH 06/22] use master branch --- .github/workflows/docker.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index dfc49ab8..d4af2833 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -3,7 +3,7 @@ name: docker on: push: branches: - - "main" + - "master" jobs: docker: From ef08395556a4d45a2292a56b8e342ae042192923 Mon Sep 17 00:00:00 2001 From: Alban Siffer Date: Wed, 19 Apr 2023 15:28:32 +0200 Subject: [PATCH 07/22] now push --- .github/workflows/docker.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index d4af2833..a4e5034a 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -26,6 +26,6 @@ jobs: with: context: . platforms: linux/amd64 - push: false + push: true tags: | ghcr.io/${{ github.repository }}:latest From 73b0dc34101c21bf8825191d265944dd73169813 Mon Sep 17 00:00:00 2001 From: Alban Siffer Date: Wed, 19 Apr 2023 15:33:17 +0200 Subject: [PATCH 08/22] use github actor to login --- .github/workflows/docker.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index a4e5034a..562270cc 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -19,7 +19,7 @@ jobs: uses: docker/login-action@v2 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push uses: docker/build-push-action@v4 From 1241dd82b662457dfaa06d87b0879344f3ea5267 Mon Sep 17 00:00:00 2001 From: Alban Siffer Date: Wed, 19 Apr 2023 15:58:40 +0200 Subject: [PATCH 09/22] try to fix action --- .github/workflows/docker.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 562270cc..91596400 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -11,16 +11,20 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + - name: Test naming run: echo "ghcr.io/${{ github.repository }}:latest" + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 + - name: Login to GitHub Container Registry uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and push uses: docker/build-push-action@v4 with: From 1d7dc02e7d76b8893b97d9f7e5692e6e2880c418 Mon Sep 17 00:00:00 2001 From: Alban Siffer Date: Thu, 20 Apr 2023 15:18:29 +0200 Subject: [PATCH 10/22] create sqlite file if not provided --- .dockerignore | 2 +- Dockerfile | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.dockerignore b/.dockerignore index 56a50980..4cfeb2bf 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,6 +1,6 @@ .git docker/data -*.Dockerfile +*Dockerfile *.md .dockerignore .env* \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 1c36fc10..e6f90f2c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM php:8.2-alpine3.16 # apparently you cannot pass both env variables # and .env file ENV DB_CONNECTION=sqlite -ENV DB_DATABASE=/var/www/mercator/database/db.sqlite +ENV DB_DATABASE=/var/www/mercator/db.sqlite # system deps RUN apk update && apk add curl ssmtp graphviz ca-certificates sqlite sqlite-dev @@ -31,7 +31,7 @@ COPY . /var/www/mercator WORKDIR /var/www/mercator # the sqlite file must exist -RUN touch ${DB_DATABASE} +# RUN touch ${DB_DATABASE} # add mercator:www user RUN addgroup -S www && \ @@ -40,12 +40,14 @@ RUN addgroup -S www && \ USER mercator:www -# install mercator dependancies +# install mercator deps RUN composer install EXPOSE 8000 # APP_KEY is automcatically generated if not provided -CMD php artisan --no-interaction --force --seed migrate && \ +# we create the database file if it does not exist +CMD if [ "${DB_CONNECTION}" == "sqlite" ] && [ ! -f "${DB_DATABASE}" ]; then touch ${DB_DATABASE}; fi && \ + php artisan --no-interaction --force --seed migrate && \ php artisan passport:install && \ APP_KEY="${APP_KEY:-base64:$(head -c 32 /dev/urandom|base64)}" php artisan serve --host=0.0.0.0 --port=8000 From d7c44812ac3690ee60af4912b62989d73fdac3fa Mon Sep 17 00:00:00 2001 From: Alban Siffer Date: Thu, 27 Apr 2023 12:15:26 +0200 Subject: [PATCH 11/22] split rename and add cols --- .../2021_05_13_180642_add_cidt_criteria.php | 32 ++++++++++++++++++- .../2021_09_22_114706_add_security_ciat.php | 8 ++++- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/database/migrations/2021_05_13_180642_add_cidt_criteria.php b/database/migrations/2021_05_13_180642_add_cidt_criteria.php index 79496962..06350767 100644 --- a/database/migrations/2021_05_13_180642_add_cidt_criteria.php +++ b/database/migrations/2021_05_13_180642_add_cidt_criteria.php @@ -15,30 +15,60 @@ public function up() { Schema::table('macro_processuses', function (Blueprint $table) { $table->renameColumn('security_need', 'security_need_c'); + // $table->integer('security_need_i')->nullable(); + // $table->integer('security_need_a')->nullable(); + // $table->integer('security_need_t')->nullable(); + }); + Schema::table('macro_processuses', function (Blueprint $table) { + // $table->renameColumn('security_need', 'security_need_c'); $table->integer('security_need_i')->nullable(); $table->integer('security_need_a')->nullable(); $table->integer('security_need_t')->nullable(); }); Schema::table('processes', function (Blueprint $table) { $table->renameColumn('security_need', 'security_need_c'); + // $table->integer('security_need_i')->nullable(); + // $table->integer('security_need_a')->nullable(); + // $table->integer('security_need_t')->nullable(); + }); + Schema::table('processes', function (Blueprint $table) { + // $table->renameColumn('security_need', 'security_need_c'); $table->integer('security_need_i')->nullable(); $table->integer('security_need_a')->nullable(); $table->integer('security_need_t')->nullable(); }); Schema::table('information', function (Blueprint $table) { $table->renameColumn('security_need', 'security_need_c'); + // $table->integer('security_need_i')->nullable(); + // $table->integer('security_need_a')->nullable(); + // $table->integer('security_need_t')->nullable(); + }); + Schema::table('information', function (Blueprint $table) { + // $table->renameColumn('security_need', 'security_need_c'); $table->integer('security_need_i')->nullable(); $table->integer('security_need_a')->nullable(); $table->integer('security_need_t')->nullable(); }); Schema::table('m_applications', function (Blueprint $table) { $table->renameColumn('security_need', 'security_need_c'); + // $table->integer('security_need_i')->nullable(); + // $table->integer('security_need_a')->nullable(); + // $table->integer('security_need_t')->nullable(); + }); + Schema::table('m_applications', function (Blueprint $table) { + // $table->renameColumn('security_need', 'security_need_c'); $table->integer('security_need_i')->nullable(); $table->integer('security_need_a')->nullable(); $table->integer('security_need_t')->nullable(); }); Schema::table('databases', function (Blueprint $table) { $table->renameColumn('security_need', 'security_need_c'); + // $table->integer('security_need_i')->nullable(); + // $table->integer('security_need_a')->nullable(); + // $table->integer('security_need_t')->nullable(); + }); + Schema::table('databases', function (Blueprint $table) { + // $table->renameColumn('security_need', 'security_need_c'); $table->integer('security_need_i')->nullable(); $table->integer('security_need_a')->nullable(); $table->integer('security_need_t')->nullable(); @@ -73,4 +103,4 @@ public function down() $table->dropColumn(['security_need_i', 'security_need_a', 'security_need_t']); }); } -} +} \ No newline at end of file diff --git a/database/migrations/2021_09_22_114706_add_security_ciat.php b/database/migrations/2021_09_22_114706_add_security_ciat.php index 6ae30867..5f865cca 100644 --- a/database/migrations/2021_09_22_114706_add_security_ciat.php +++ b/database/migrations/2021_09_22_114706_add_security_ciat.php @@ -15,6 +15,12 @@ public function up() { Schema::table('networks', function (Blueprint $table) { $table->renameColumn('security_need', 'security_need_c'); + // $table->integer('security_need_i')->nullable(); + // $table->integer('security_need_a')->nullable(); + // $table->integer('security_need_t')->nullable(); + }); + Schema::table('networks', function (Blueprint $table) { + // $table->renameColumn('security_need', 'security_need_c'); $table->integer('security_need_i')->nullable(); $table->integer('security_need_a')->nullable(); $table->integer('security_need_t')->nullable(); @@ -33,4 +39,4 @@ public function down() $table->dropColumn(['security_need_i', 'security_need_a', 'security_need_t']); }); } -} +} \ No newline at end of file From 5ebd1a55b1b02616bf3dd3ef5cd78aafec542fe9 Mon Sep 17 00:00:00 2001 From: Alban Siffer Date: Thu, 27 Apr 2023 13:41:45 +0200 Subject: [PATCH 12/22] add iseed to generate demo seeds --- composer.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 8cc00ff8..d405c1bb 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ "oiv", "security tool", "anssi", - "urbanisation" + "urbanisation" ], "license": "GPL-3.0-or-later", "require": { @@ -27,7 +27,8 @@ "phpoffice/phpspreadsheet": "^1.14", "phpoffice/phpword": "^0.18.0", "yajra/laravel-datatables": "^1.5", - "yajra/laravel-datatables-oracle": "^9.11" + "yajra/laravel-datatables-oracle": "^9.11", + "orangehill/iseed": "^3.0.3" }, "require-dev": { "barryvdh/laravel-ide-helper": "^2.10", @@ -76,4 +77,4 @@ "@php artisan key:generate --ansi" ] } -} +} \ No newline at end of file From bd3028b49a7f80d7e302c31ad8563144ad6988ca Mon Sep 17 00:00:00 2001 From: Alban Siffer Date: Thu, 27 Apr 2023 13:42:12 +0200 Subject: [PATCH 13/22] add demo seeds --- database/seeders/DatabaseSeeder.php | 99 +- .../seeders/DemoActivitiesTableSeeder.php | 202 + .../DemoActivityDocumentTableSeeder.php | 24 + .../DemoActivityOperationTableSeeder.php | 71 + .../DemoActivityProcessTableSeeder.php | 91 + .../seeders/DemoActorOperationTableSeeder.php | 56 + database/seeders/DemoActorsTableSeeder.php | 92 + database/seeders/DemoAnnuairesTableSeeder.php | 48 + .../DemoApplicationBlocksTableSeeder.php | 56 + ...ionModuleApplicationServiceTableSeeder.php | 126 + .../DemoApplicationModulesTableSeeder.php | 80 + ...licationServiceMApplicationTableSeeder.php | 136 + .../DemoApplicationServicesTableSeeder.php | 136 + database/seeders/DemoAuditLogsTableSeeder.php | 24 + .../DemoBayWifiTerminalTableSeeder.php | 24 + database/seeders/DemoBaysTableSeeder.php | 86 + database/seeders/DemoBuildingsTableSeeder.php | 158 + ...emoCartographerMApplicationTableSeeder.php | 24 + ...emoCertificateLogicalServerTableSeeder.php | 56 + ...DemoCertificateMApplicationTableSeeder.php | 31 + .../seeders/DemoCertificatesTableSeeder.php | 138 + .../seeders/DemoCpeProductsTableSeeder.php | 24 + .../seeders/DemoCpeVendorsTableSeeder.php | 24 + .../seeders/DemoCpeVersionsTableSeeder.php | 24 + .../seeders/DemoDatabaseEntityTableSeeder.php | 51 + .../DemoDatabaseInformationTableSeeder.php | 76 + .../DemoDatabaseLogicalServerTableSeeder.php | 24 + .../DemoDatabaseMApplicationTableSeeder.php | 66 + database/seeders/DemoDatabasesTableSeeder.php | 111 + .../seeders/DemoDhcpServersTableSeeder.php | 24 + .../seeders/DemoDnsserversTableSeeder.php | 24 + database/seeders/DemoDocumentsTableSeeder.php | 24 + .../DemoDomaineAdForestAdTableSeeder.php | 51 + .../seeders/DemoDomaineAdsTableSeeder.php | 91 + database/seeders/DemoEntitiesTableSeeder.php | 299 ++ .../seeders/DemoEntityDocumentTableSeeder.php | 24 + .../DemoEntityMApplicationTableSeeder.php | 91 + .../seeders/DemoEntityProcessTableSeeder.php | 131 + ...moExternalConnectedEntitiesTableSeeder.php | 24 + database/seeders/DemoFluxesTableSeeder.php | 24 + database/seeders/DemoForestAdsTableSeeder.php | 46 + database/seeders/DemoGatewaysTableSeeder.php | 24 + .../DemoInformationProcessTableSeeder.php | 24 + .../seeders/DemoInformationTableSeeder.php | 121 + database/seeders/DemoLanManTableSeeder.php | 24 + database/seeders/DemoLanWanTableSeeder.php | 24 + database/seeders/DemoLansTableSeeder.php | 24 + ...moLogicalServerMApplicationTableSeeder.php | 24 + ...LogicalServerPhysicalServerTableSeeder.php | 24 + .../seeders/DemoLogicalServersTableSeeder.php | 121 + .../DemoMApplicationEventsTableSeeder.php | 24 + .../DemoMApplicationProcessTableSeeder.php | 86 + ...DemoMApplicationWorkstationTableSeeder.php | 24 + .../seeders/DemoMApplicationsTableSeeder.php | 566 +++ .../DemoMacroProcessusesTableSeeder.php | 191 + database/seeders/DemoManWanTableSeeder.php | 24 + database/seeders/DemoMansTableSeeder.php | 24 + database/seeders/DemoMediaTableSeeder.php | 24 + .../seeders/DemoMigrationsTableSeeder.php | 1004 +++++ .../DemoNetworkSwitchesTableSeeder.php | 24 + database/seeders/DemoNetworksTableSeeder.php | 24 + .../DemoOauthAccessTokensTableSeeder.php | 24 + .../seeders/DemoOauthAuthCodesTableSeeder.php | 24 + .../seeders/DemoOauthClientsTableSeeder.php | 24 + ...oOauthPersonalAccessClientsTableSeeder.php | 24 + .../DemoOauthRefreshTokensTableSeeder.php | 24 + .../seeders/DemoOperationTaskTableSeeder.php | 66 + .../seeders/DemoOperationsTableSeeder.php | 76 + .../seeders/DemoPasswordResetsTableSeeder.php | 24 + .../seeders/DemoPeripheralsTableSeeder.php | 77 + .../seeders/DemoPermissionRoleTableSeeder.php | 3298 +++++++++++++++++ .../seeders/DemoPermissionsTableSeeder.php | 2162 +++++++++++ database/seeders/DemoPhonesTableSeeder.php | 74 + .../seeders/DemoPhysicalLinksTableSeeder.php | 24 + .../DemoPhysicalRouterVlanTableSeeder.php | 41 + .../DemoPhysicalRoutersTableSeeder.php | 58 + ...DemoPhysicalSecurityDevicesTableSeeder.php | 65 + .../DemoPhysicalServersTableSeeder.php | 24 + .../DemoPhysicalSwitchesTableSeeder.php | 24 + database/seeders/DemoProcessesTableSeeder.php | 196 + database/seeders/DemoRelationsTableSeeder.php | 195 + database/seeders/DemoRoleUserTableSeeder.php | 31 + database/seeders/DemoRolesTableSeeder.php | 58 + database/seeders/DemoRoutersTableSeeder.php | 24 + .../DemoSecurityDevicesTableSeeder.php | 24 + database/seeders/DemoSitesTableSeeder.php | 89 + .../seeders/DemoStorageDevicesTableSeeder.php | 58 + .../seeders/DemoSubnetworksTableSeeder.php | 24 + database/seeders/DemoTasksTableSeeder.php | 53 + database/seeders/DemoUsersTableSeeder.php | 40 + database/seeders/DemoVlansTableSeeder.php | 98 + database/seeders/DemoWansTableSeeder.php | 24 + .../seeders/DemoWifiTerminalsTableSeeder.php | 71 + .../seeders/DemoWorkstationsTableSeeder.php | 89 + .../seeders/DemoZoneAdminsTableSeeder.php | 35 + 95 files changed, 12677 insertions(+), 1 deletion(-) create mode 100644 database/seeders/DemoActivitiesTableSeeder.php create mode 100644 database/seeders/DemoActivityDocumentTableSeeder.php create mode 100644 database/seeders/DemoActivityOperationTableSeeder.php create mode 100644 database/seeders/DemoActivityProcessTableSeeder.php create mode 100644 database/seeders/DemoActorOperationTableSeeder.php create mode 100644 database/seeders/DemoActorsTableSeeder.php create mode 100644 database/seeders/DemoAnnuairesTableSeeder.php create mode 100644 database/seeders/DemoApplicationBlocksTableSeeder.php create mode 100644 database/seeders/DemoApplicationModuleApplicationServiceTableSeeder.php create mode 100644 database/seeders/DemoApplicationModulesTableSeeder.php create mode 100644 database/seeders/DemoApplicationServiceMApplicationTableSeeder.php create mode 100644 database/seeders/DemoApplicationServicesTableSeeder.php create mode 100644 database/seeders/DemoAuditLogsTableSeeder.php create mode 100644 database/seeders/DemoBayWifiTerminalTableSeeder.php create mode 100644 database/seeders/DemoBaysTableSeeder.php create mode 100644 database/seeders/DemoBuildingsTableSeeder.php create mode 100644 database/seeders/DemoCartographerMApplicationTableSeeder.php create mode 100644 database/seeders/DemoCertificateLogicalServerTableSeeder.php create mode 100644 database/seeders/DemoCertificateMApplicationTableSeeder.php create mode 100644 database/seeders/DemoCertificatesTableSeeder.php create mode 100644 database/seeders/DemoCpeProductsTableSeeder.php create mode 100644 database/seeders/DemoCpeVendorsTableSeeder.php create mode 100644 database/seeders/DemoCpeVersionsTableSeeder.php create mode 100644 database/seeders/DemoDatabaseEntityTableSeeder.php create mode 100644 database/seeders/DemoDatabaseInformationTableSeeder.php create mode 100644 database/seeders/DemoDatabaseLogicalServerTableSeeder.php create mode 100644 database/seeders/DemoDatabaseMApplicationTableSeeder.php create mode 100644 database/seeders/DemoDatabasesTableSeeder.php create mode 100644 database/seeders/DemoDhcpServersTableSeeder.php create mode 100644 database/seeders/DemoDnsserversTableSeeder.php create mode 100644 database/seeders/DemoDocumentsTableSeeder.php create mode 100644 database/seeders/DemoDomaineAdForestAdTableSeeder.php create mode 100644 database/seeders/DemoDomaineAdsTableSeeder.php create mode 100644 database/seeders/DemoEntitiesTableSeeder.php create mode 100644 database/seeders/DemoEntityDocumentTableSeeder.php create mode 100644 database/seeders/DemoEntityMApplicationTableSeeder.php create mode 100644 database/seeders/DemoEntityProcessTableSeeder.php create mode 100644 database/seeders/DemoExternalConnectedEntitiesTableSeeder.php create mode 100644 database/seeders/DemoFluxesTableSeeder.php create mode 100644 database/seeders/DemoForestAdsTableSeeder.php create mode 100644 database/seeders/DemoGatewaysTableSeeder.php create mode 100644 database/seeders/DemoInformationProcessTableSeeder.php create mode 100644 database/seeders/DemoInformationTableSeeder.php create mode 100644 database/seeders/DemoLanManTableSeeder.php create mode 100644 database/seeders/DemoLanWanTableSeeder.php create mode 100644 database/seeders/DemoLansTableSeeder.php create mode 100644 database/seeders/DemoLogicalServerMApplicationTableSeeder.php create mode 100644 database/seeders/DemoLogicalServerPhysicalServerTableSeeder.php create mode 100644 database/seeders/DemoLogicalServersTableSeeder.php create mode 100644 database/seeders/DemoMApplicationEventsTableSeeder.php create mode 100644 database/seeders/DemoMApplicationProcessTableSeeder.php create mode 100644 database/seeders/DemoMApplicationWorkstationTableSeeder.php create mode 100644 database/seeders/DemoMApplicationsTableSeeder.php create mode 100644 database/seeders/DemoMacroProcessusesTableSeeder.php create mode 100644 database/seeders/DemoManWanTableSeeder.php create mode 100644 database/seeders/DemoMansTableSeeder.php create mode 100644 database/seeders/DemoMediaTableSeeder.php create mode 100644 database/seeders/DemoMigrationsTableSeeder.php create mode 100644 database/seeders/DemoNetworkSwitchesTableSeeder.php create mode 100644 database/seeders/DemoNetworksTableSeeder.php create mode 100644 database/seeders/DemoOauthAccessTokensTableSeeder.php create mode 100644 database/seeders/DemoOauthAuthCodesTableSeeder.php create mode 100644 database/seeders/DemoOauthClientsTableSeeder.php create mode 100644 database/seeders/DemoOauthPersonalAccessClientsTableSeeder.php create mode 100644 database/seeders/DemoOauthRefreshTokensTableSeeder.php create mode 100644 database/seeders/DemoOperationTaskTableSeeder.php create mode 100644 database/seeders/DemoOperationsTableSeeder.php create mode 100644 database/seeders/DemoPasswordResetsTableSeeder.php create mode 100644 database/seeders/DemoPeripheralsTableSeeder.php create mode 100644 database/seeders/DemoPermissionRoleTableSeeder.php create mode 100644 database/seeders/DemoPermissionsTableSeeder.php create mode 100644 database/seeders/DemoPhonesTableSeeder.php create mode 100644 database/seeders/DemoPhysicalLinksTableSeeder.php create mode 100644 database/seeders/DemoPhysicalRouterVlanTableSeeder.php create mode 100644 database/seeders/DemoPhysicalRoutersTableSeeder.php create mode 100644 database/seeders/DemoPhysicalSecurityDevicesTableSeeder.php create mode 100644 database/seeders/DemoPhysicalServersTableSeeder.php create mode 100644 database/seeders/DemoPhysicalSwitchesTableSeeder.php create mode 100644 database/seeders/DemoProcessesTableSeeder.php create mode 100644 database/seeders/DemoRelationsTableSeeder.php create mode 100644 database/seeders/DemoRoleUserTableSeeder.php create mode 100644 database/seeders/DemoRolesTableSeeder.php create mode 100644 database/seeders/DemoRoutersTableSeeder.php create mode 100644 database/seeders/DemoSecurityDevicesTableSeeder.php create mode 100644 database/seeders/DemoSitesTableSeeder.php create mode 100644 database/seeders/DemoStorageDevicesTableSeeder.php create mode 100644 database/seeders/DemoSubnetworksTableSeeder.php create mode 100644 database/seeders/DemoTasksTableSeeder.php create mode 100644 database/seeders/DemoUsersTableSeeder.php create mode 100644 database/seeders/DemoVlansTableSeeder.php create mode 100644 database/seeders/DemoWansTableSeeder.php create mode 100644 database/seeders/DemoWifiTerminalsTableSeeder.php create mode 100644 database/seeders/DemoWorkstationsTableSeeder.php create mode 100644 database/seeders/DemoZoneAdminsTableSeeder.php diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php index 22d07618..2d854083 100644 --- a/database/seeders/DatabaseSeeder.php +++ b/database/seeders/DatabaseSeeder.php @@ -8,6 +8,7 @@ class DatabaseSeeder extends Seeder { public function run() { + // default seeder $this->call([ PermissionsTableSeeder::class, RolesTableSeeder::class, @@ -15,5 +16,101 @@ public function run() UsersTableSeeder::class, RoleUserTableSeeder::class, ]); + if (env("USE_DEMO_DATA", false)) { + $this->call(DemoMigrationsTableSeeder::class); + $this->call(DemoOauthAuthCodesTableSeeder::class); + $this->call(DemoOauthAccessTokensTableSeeder::class); + $this->call(DemoOauthRefreshTokensTableSeeder::class); + $this->call(DemoOauthClientsTableSeeder::class); + $this->call(DemoOauthPersonalAccessClientsTableSeeder::class); + $this->call(DemoActivityProcessTableSeeder::class); + $this->call(DemoActorOperationTableSeeder::class); + $this->call(DemoApplicationBlocksTableSeeder::class); + $this->call(DemoActorsTableSeeder::class); + $this->call(DemoAnnuairesTableSeeder::class); + $this->call(DemoApplicationModuleApplicationServiceTableSeeder::class); + $this->call(DemoApplicationServiceMApplicationTableSeeder::class); + $this->call(DemoAuditLogsTableSeeder::class); + $this->call(DemoBuildingsTableSeeder::class); + $this->call(DemoApplicationModulesTableSeeder::class); + $this->call(DemoBaysTableSeeder::class); + $this->call(DemoBayWifiTerminalTableSeeder::class); + $this->call(DemoDatabaseInformationTableSeeder::class); + $this->call(DemoDhcpServersTableSeeder::class); + $this->call(DemoDatabaseMApplicationTableSeeder::class); + $this->call(DemoEntityMApplicationTableSeeder::class); + $this->call(DemoDomaineAdsTableSeeder::class); + $this->call(DemoEntityProcessTableSeeder::class); + $this->call(DemoInformationProcessTableSeeder::class); + $this->call(DemoFluxesTableSeeder::class); + $this->call(DemoForestAdsTableSeeder::class); + $this->call(DemoLanWanTableSeeder::class); + $this->call(DemoLansTableSeeder::class); + $this->call(DemoGatewaysTableSeeder::class); + $this->call(DemoLogicalServerPhysicalServerTableSeeder::class); + $this->call(DemoMansTableSeeder::class); + $this->call(DemoMediaTableSeeder::class); + $this->call(DemoLogicalServersTableSeeder::class); + $this->call(DemoMApplicationProcessTableSeeder::class); + $this->call(DemoManWanTableSeeder::class); + $this->call(DemoOperationsTableSeeder::class); + $this->call(DemoNetworkSwitchesTableSeeder::class); + $this->call(DemoPasswordResetsTableSeeder::class); + $this->call(DemoPermissionsTableSeeder::class); + $this->call(DemoOperationTaskTableSeeder::class); + $this->call(DemoPeripheralsTableSeeder::class); + $this->call(DemoNetworksTableSeeder::class); + $this->call(DemoPhysicalSecurityDevicesTableSeeder::class); + $this->call(DemoPhysicalRouterVlanTableSeeder::class); + $this->call(DemoSitesTableSeeder::class); + $this->call(DemoRoleUserTableSeeder::class); + $this->call(DemoRoutersTableSeeder::class); + $this->call(DemoRolesTableSeeder::class); + $this->call(DemoRelationsTableSeeder::class); + $this->call(DemoTasksTableSeeder::class); + $this->call(DemoVlansTableSeeder::class); + $this->call(DemoUsersTableSeeder::class); + $this->call(DemoWansTableSeeder::class); + $this->call(DemoActivityOperationTableSeeder::class); + $this->call(DemoZoneAdminsTableSeeder::class); + $this->call(DemoApplicationServicesTableSeeder::class); + $this->call(DemoDatabaseEntityTableSeeder::class); + $this->call(DemoDomaineAdForestAdTableSeeder::class); + $this->call(DemoLanManTableSeeder::class); + $this->call(DemoLogicalServerMApplicationTableSeeder::class); + $this->call(DemoPermissionRoleTableSeeder::class); + $this->call(DemoMacroProcessusesTableSeeder::class); + $this->call(DemoProcessesTableSeeder::class); + $this->call(DemoCertificatesTableSeeder::class); + $this->call(DemoMApplicationsTableSeeder::class); + $this->call(DemoCertificateMApplicationTableSeeder::class); + $this->call(DemoInformationTableSeeder::class); + $this->call(DemoDatabasesTableSeeder::class); + $this->call(DemoCertificateLogicalServerTableSeeder::class); + $this->call(DemoEntitiesTableSeeder::class); + $this->call(DemoSubnetworksTableSeeder::class); + $this->call(DemoDnsserversTableSeeder::class); + $this->call(DemoCartographerMApplicationTableSeeder::class); + $this->call(DemoMApplicationEventsTableSeeder::class); + $this->call(DemoMApplicationWorkstationTableSeeder::class); + $this->call(DemoExternalConnectedEntitiesTableSeeder::class); + $this->call(DemoDatabaseLogicalServerTableSeeder::class); + $this->call(DemoWorkstationsTableSeeder::class); + $this->call(DemoPhysicalLinksTableSeeder::class); + $this->call(DemoCpeVendorsTableSeeder::class); + $this->call(DemoCpeProductsTableSeeder::class); + $this->call(DemoActivitiesTableSeeder::class); + $this->call(DemoActivityDocumentTableSeeder::class); + $this->call(DemoDocumentsTableSeeder::class); + $this->call(DemoEntityDocumentTableSeeder::class); + $this->call(DemoCpeVersionsTableSeeder::class); + $this->call(DemoPhysicalSwitchesTableSeeder::class); + $this->call(DemoPhysicalRoutersTableSeeder::class); + $this->call(DemoWifiTerminalsTableSeeder::class); + $this->call(DemoPhonesTableSeeder::class); + $this->call(DemoSecurityDevicesTableSeeder::class); + $this->call(DemoPhysicalServersTableSeeder::class); + $this->call(DemoStorageDevicesTableSeeder::class); + } } -} +} \ No newline at end of file diff --git a/database/seeders/DemoActivitiesTableSeeder.php b/database/seeders/DemoActivitiesTableSeeder.php new file mode 100644 index 00000000..a53ded9e --- /dev/null +++ b/database/seeders/DemoActivitiesTableSeeder.php @@ -0,0 +1,202 @@ +delete(); + + \DB::table('activities')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => 'Activité 1', + 'description' => '

Description de l\'activité 1

', + 'created_at' => '2020-06-10 15:20:42', + 'updated_at' => '2020-06-10 15:20:42', + 'deleted_at' => NULL, + 'responsible' => NULL, + 'purpose' => NULL, + 'categories' => NULL, + 'recipients' => NULL, + 'transfert' => NULL, + 'retention' => NULL, + 'controls' => NULL, + ), + 1 => + array ( + 'id' => 2, + 'name' => 'Activité 2', + 'description' => '

Description de l\'activité de test

', + 'created_at' => '2020-06-10 17:44:26', + 'updated_at' => '2020-06-13 06:03:26', + 'deleted_at' => NULL, + 'responsible' => NULL, + 'purpose' => NULL, + 'categories' => NULL, + 'recipients' => NULL, + 'transfert' => NULL, + 'retention' => NULL, + 'controls' => NULL, + ), + 2 => + array ( + 'id' => 3, + 'name' => 'Activité 3', + 'description' => '

Description de l\'activité 3

', + 'created_at' => '2020-06-13 06:57:08', + 'updated_at' => '2020-06-13 06:57:08', + 'deleted_at' => NULL, + 'responsible' => NULL, + 'purpose' => NULL, + 'categories' => NULL, + 'recipients' => NULL, + 'transfert' => NULL, + 'retention' => NULL, + 'controls' => NULL, + ), + 3 => + array ( + 'id' => 4, + 'name' => 'Activité 4', + 'description' => '

Description de l\'acivité 4

', + 'created_at' => '2020-06-13 06:57:24', + 'updated_at' => '2020-06-13 06:57:24', + 'deleted_at' => NULL, + 'responsible' => NULL, + 'purpose' => NULL, + 'categories' => NULL, + 'recipients' => NULL, + 'transfert' => NULL, + 'retention' => NULL, + 'controls' => NULL, + ), + 4 => + array ( + 'id' => 5, + 'name' => 'Activité principale', + 'description' => '

Description de l\'activité principale

', + 'created_at' => '2020-08-15 06:19:53', + 'updated_at' => '2020-08-15 06:19:53', + 'deleted_at' => NULL, + 'responsible' => NULL, + 'purpose' => NULL, + 'categories' => NULL, + 'recipients' => NULL, + 'transfert' => NULL, + 'retention' => NULL, + 'controls' => NULL, + ), + 5 => + array ( + 'id' => 6, + 'name' => 'AAA', + 'description' => 'test a1', + 'created_at' => '2021-03-22 20:06:55', + 'updated_at' => '2021-03-22 20:07:00', + 'deleted_at' => '2021-03-22 20:07:00', + 'responsible' => NULL, + 'purpose' => NULL, + 'categories' => NULL, + 'recipients' => NULL, + 'transfert' => NULL, + 'retention' => NULL, + 'controls' => NULL, + ), + 6 => + array ( + 'id' => 7, + 'name' => 'AAA', + 'description' => 'test AAA', + 'created_at' => '2021-03-22 20:13:43', + 'updated_at' => '2021-03-22 20:14:05', + 'deleted_at' => '2021-03-22 20:14:05', + 'responsible' => NULL, + 'purpose' => NULL, + 'categories' => NULL, + 'recipients' => NULL, + 'transfert' => NULL, + 'retention' => NULL, + 'controls' => NULL, + ), + 7 => + array ( + 'id' => 8, + 'name' => 'AAA', + 'description' => 'test 2 aaa', + 'created_at' => '2021-03-22 20:14:16', + 'updated_at' => '2021-03-22 20:14:45', + 'deleted_at' => '2021-03-22 20:14:45', + 'responsible' => NULL, + 'purpose' => NULL, + 'categories' => NULL, + 'recipients' => NULL, + 'transfert' => NULL, + 'retention' => NULL, + 'controls' => NULL, + ), + 8 => + array ( + 'id' => 9, + 'name' => 'AAA1', + 'description' => 'test 3 AAA', + 'created_at' => '2021-03-22 20:14:40', + 'updated_at' => '2021-03-22 20:19:09', + 'deleted_at' => '2021-03-22 20:19:09', + 'responsible' => NULL, + 'purpose' => NULL, + 'categories' => NULL, + 'recipients' => NULL, + 'transfert' => NULL, + 'retention' => NULL, + 'controls' => NULL, + ), + 9 => + array ( + 'id' => 10, + 'name' => 'Activité 0', + 'description' => '

Description de l\'activité zéro

', + 'created_at' => NULL, + 'updated_at' => '2021-05-15 09:40:16', + 'deleted_at' => NULL, + 'responsible' => NULL, + 'purpose' => NULL, + 'categories' => NULL, + 'recipients' => NULL, + 'transfert' => NULL, + 'retention' => NULL, + 'controls' => NULL, + ), + 10 => + array ( + 'id' => 11, + 'name' => 'test', + 'description' => 'dqqsd', + 'created_at' => '2021-08-02 22:03:46', + 'updated_at' => '2021-09-22 12:59:48', + 'deleted_at' => '2021-09-22 12:59:48', + 'responsible' => NULL, + 'purpose' => NULL, + 'categories' => NULL, + 'recipients' => NULL, + 'transfert' => NULL, + 'retention' => NULL, + 'controls' => NULL, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoActivityDocumentTableSeeder.php b/database/seeders/DemoActivityDocumentTableSeeder.php new file mode 100644 index 00000000..0e42c670 --- /dev/null +++ b/database/seeders/DemoActivityDocumentTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoActivityOperationTableSeeder.php b/database/seeders/DemoActivityOperationTableSeeder.php new file mode 100644 index 00000000..8ce89322 --- /dev/null +++ b/database/seeders/DemoActivityOperationTableSeeder.php @@ -0,0 +1,71 @@ +delete(); + + \DB::table('activity_operation')->insert(array ( + 0 => + array ( + 'activity_id' => 2, + 'operation_id' => 3, + ), + 1 => + array ( + 'activity_id' => 1, + 'operation_id' => 1, + ), + 2 => + array ( + 'activity_id' => 1, + 'operation_id' => 2, + ), + 3 => + array ( + 'activity_id' => 4, + 'operation_id' => 3, + ), + 4 => + array ( + 'activity_id' => 3, + 'operation_id' => 1, + ), + 5 => + array ( + 'activity_id' => 1, + 'operation_id' => 5, + ), + 6 => + array ( + 'activity_id' => 5, + 'operation_id' => 1, + ), + 7 => + array ( + 'activity_id' => 6, + 'operation_id' => 1, + ), + 8 => + array ( + 'activity_id' => 10, + 'operation_id' => 1, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoActivityProcessTableSeeder.php b/database/seeders/DemoActivityProcessTableSeeder.php new file mode 100644 index 00000000..b253d519 --- /dev/null +++ b/database/seeders/DemoActivityProcessTableSeeder.php @@ -0,0 +1,91 @@ +delete(); + + \DB::table('activity_process')->insert(array ( + 0 => + array ( + 'process_id' => 1, + 'activity_id' => 1, + ), + 1 => + array ( + 'process_id' => 1, + 'activity_id' => 2, + ), + 2 => + array ( + 'process_id' => 2, + 'activity_id' => 3, + ), + 3 => + array ( + 'process_id' => 2, + 'activity_id' => 4, + ), + 4 => + array ( + 'process_id' => 3, + 'activity_id' => 2, + ), + 5 => + array ( + 'process_id' => 3, + 'activity_id' => 5, + ), + 6 => + array ( + 'process_id' => 4, + 'activity_id' => 5, + ), + 7 => + array ( + 'process_id' => 5, + 'activity_id' => 4, + ), + 8 => + array ( + 'process_id' => 6, + 'activity_id' => 4, + ), + 9 => + array ( + 'process_id' => 7, + 'activity_id' => 3, + ), + 10 => + array ( + 'process_id' => 8, + 'activity_id' => 4, + ), + 11 => + array ( + 'process_id' => 9, + 'activity_id' => 3, + ), + 12 => + array ( + 'process_id' => 1, + 'activity_id' => 10, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoActorOperationTableSeeder.php b/database/seeders/DemoActorOperationTableSeeder.php new file mode 100644 index 00000000..8948effe --- /dev/null +++ b/database/seeders/DemoActorOperationTableSeeder.php @@ -0,0 +1,56 @@ +delete(); + + \DB::table('actor_operation')->insert(array ( + 0 => + array ( + 'operation_id' => 2, + 'actor_id' => 1, + ), + 1 => + array ( + 'operation_id' => 1, + 'actor_id' => 1, + ), + 2 => + array ( + 'operation_id' => 1, + 'actor_id' => 4, + ), + 3 => + array ( + 'operation_id' => 2, + 'actor_id' => 5, + ), + 4 => + array ( + 'operation_id' => 3, + 'actor_id' => 6, + ), + 5 => + array ( + 'operation_id' => 5, + 'actor_id' => 4, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoActorsTableSeeder.php b/database/seeders/DemoActorsTableSeeder.php new file mode 100644 index 00000000..96c8c05d --- /dev/null +++ b/database/seeders/DemoActorsTableSeeder.php @@ -0,0 +1,92 @@ +delete(); + + \DB::table('actors')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => 'Jean', + 'nature' => 'Personne', + 'type' => 'interne', + 'contact' => 'jean@testdomain.org', + 'created_at' => '2020-06-14 13:02:22', + 'updated_at' => '2021-05-16 19:37:49', + 'deleted_at' => NULL, + ), + 1 => + array ( + 'id' => 2, + 'name' => 'Service 1', + 'nature' => 'Groupe', + 'type' => 'interne', + 'contact' => NULL, + 'created_at' => '2020-06-14 13:02:39', + 'updated_at' => '2020-06-17 16:43:42', + 'deleted_at' => '2020-06-17 16:43:42', + ), + 2 => + array ( + 'id' => 3, + 'name' => 'Service 2', + 'nature' => 'Groupe', + 'type' => 'Interne', + 'contact' => NULL, + 'created_at' => '2020-06-14 13:02:54', + 'updated_at' => '2020-06-17 16:43:46', + 'deleted_at' => '2020-06-17 16:43:46', + ), + 3 => + array ( + 'id' => 4, + 'name' => 'Pierre', + 'nature' => 'Personne', + 'type' => 'interne', + 'contact' => 'email : pierre@testdomain.com', + 'created_at' => '2020-06-17 16:44:01', + 'updated_at' => '2021-05-16 19:38:19', + 'deleted_at' => NULL, + ), + 4 => + array ( + 'id' => 5, + 'name' => 'Jacques', + 'nature' => 'personne', + 'type' => 'interne', + 'contact' => 'Téléphone 1234543423', + 'created_at' => '2020-06-17 16:44:23', + 'updated_at' => '2020-06-17 16:44:23', + 'deleted_at' => NULL, + ), + 5 => + array ( + 'id' => 6, + 'name' => 'Fournisseur 1', + 'nature' => 'entité', + 'type' => 'externe', + 'contact' => 'Tel : 1232 32312', + 'created_at' => '2020-06-17 16:44:50', + 'updated_at' => '2020-06-17 16:44:50', + 'deleted_at' => NULL, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoAnnuairesTableSeeder.php b/database/seeders/DemoAnnuairesTableSeeder.php new file mode 100644 index 00000000..dc95cfb8 --- /dev/null +++ b/database/seeders/DemoAnnuairesTableSeeder.php @@ -0,0 +1,48 @@ +delete(); + + \DB::table('annuaires')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => 'AD01', + 'description' => '

Annuaire principal 

', + 'solution' => 'Acive Directory', + 'created_at' => '2020-07-03 09:49:37', + 'updated_at' => '2022-03-22 20:33:39', + 'deleted_at' => NULL, + 'zone_admin_id' => 1, + ), + 1 => + array ( + 'id' => 2, + 'name' => 'Mercator', + 'description' => '

Cartographie du système d\'information

', + 'solution' => 'Logiciel développé maison', + 'created_at' => '2020-07-03 12:24:48', + 'updated_at' => '2020-07-13 17:12:59', + 'deleted_at' => NULL, + 'zone_admin_id' => 1, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoApplicationBlocksTableSeeder.php b/database/seeders/DemoApplicationBlocksTableSeeder.php new file mode 100644 index 00000000..59960e1c --- /dev/null +++ b/database/seeders/DemoApplicationBlocksTableSeeder.php @@ -0,0 +1,56 @@ +delete(); + + \DB::table('application_blocks')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => 'Bloc applicatif 1', + 'description' => '

Description du bloc applicatif

', + 'responsible' => 'Jean Pierre', + 'created_at' => '2020-06-13 06:09:01', + 'updated_at' => '2020-06-13 06:09:01', + 'deleted_at' => NULL, + ), + 1 => + array ( + 'id' => 2, + 'name' => 'Bloc applicatif 2', + 'description' => '

Second bloc applicatif.

', + 'responsible' => 'Marcel pierre', + 'created_at' => '2020-06-13 06:10:52', + 'updated_at' => '2020-06-17 18:13:33', + 'deleted_at' => NULL, + ), + 2 => + array ( + 'id' => 3, + 'name' => 'Bloc applicatif 3', + 'description' => '

Description du block applicatif 3

', + 'responsible' => 'Nestor', + 'created_at' => '2020-08-29 14:00:10', + 'updated_at' => '2022-03-20 18:53:29', + 'deleted_at' => NULL, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoApplicationModuleApplicationServiceTableSeeder.php b/database/seeders/DemoApplicationModuleApplicationServiceTableSeeder.php new file mode 100644 index 00000000..37d8f27c --- /dev/null +++ b/database/seeders/DemoApplicationModuleApplicationServiceTableSeeder.php @@ -0,0 +1,126 @@ +delete(); + + \DB::table('application_module_application_service')->insert(array ( + 0 => + array ( + 'application_service_id' => 4, + 'application_module_id' => 1, + ), + 1 => + array ( + 'application_service_id' => 4, + 'application_module_id' => 2, + ), + 2 => + array ( + 'application_service_id' => 3, + 'application_module_id' => 3, + ), + 3 => + array ( + 'application_service_id' => 2, + 'application_module_id' => 4, + ), + 4 => + array ( + 'application_service_id' => 1, + 'application_module_id' => 5, + ), + 5 => + array ( + 'application_service_id' => 1, + 'application_module_id' => 6, + ), + 6 => + array ( + 'application_service_id' => 5, + 'application_module_id' => 2, + ), + 7 => + array ( + 'application_service_id' => 5, + 'application_module_id' => 3, + ), + 8 => + array ( + 'application_service_id' => 6, + 'application_module_id' => 2, + ), + 9 => + array ( + 'application_service_id' => 6, + 'application_module_id' => 3, + ), + 10 => + array ( + 'application_service_id' => 7, + 'application_module_id' => 2, + ), + 11 => + array ( + 'application_service_id' => 7, + 'application_module_id' => 3, + ), + 12 => + array ( + 'application_service_id' => 8, + 'application_module_id' => 2, + ), + 13 => + array ( + 'application_service_id' => 8, + 'application_module_id' => 3, + ), + 14 => + array ( + 'application_service_id' => 9, + 'application_module_id' => 2, + ), + 15 => + array ( + 'application_service_id' => 9, + 'application_module_id' => 3, + ), + 16 => + array ( + 'application_service_id' => 10, + 'application_module_id' => 2, + ), + 17 => + array ( + 'application_service_id' => 10, + 'application_module_id' => 3, + ), + 18 => + array ( + 'application_service_id' => 11, + 'application_module_id' => 2, + ), + 19 => + array ( + 'application_service_id' => 11, + 'application_module_id' => 3, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoApplicationModulesTableSeeder.php b/database/seeders/DemoApplicationModulesTableSeeder.php new file mode 100644 index 00000000..fdb3ea2b --- /dev/null +++ b/database/seeders/DemoApplicationModulesTableSeeder.php @@ -0,0 +1,80 @@ +delete(); + + \DB::table('application_modules')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => 'Module 1', + 'description' => '

Description du module 1

', + 'created_at' => '2020-06-13 11:55:34', + 'updated_at' => '2020-06-13 11:55:34', + 'deleted_at' => NULL, + ), + 1 => + array ( + 'id' => 2, + 'name' => 'Module 2', + 'description' => '

Description du module 2

', + 'created_at' => '2020-06-13 11:55:45', + 'updated_at' => '2020-06-13 11:55:45', + 'deleted_at' => NULL, + ), + 2 => + array ( + 'id' => 3, + 'name' => 'Module 3', + 'description' => '

Description du module 3

', + 'created_at' => '2020-06-13 11:56:00', + 'updated_at' => '2020-06-13 11:56:00', + 'deleted_at' => NULL, + ), + 3 => + array ( + 'id' => 4, + 'name' => 'Module 4', + 'description' => '

Description du module 4

', + 'created_at' => '2020-06-13 11:56:10', + 'updated_at' => '2020-06-13 11:56:10', + 'deleted_at' => NULL, + ), + 4 => + array ( + 'id' => 5, + 'name' => 'Module 5', + 'description' => '

Description du module 5

', + 'created_at' => '2020-06-13 11:56:20', + 'updated_at' => '2020-06-13 11:56:20', + 'deleted_at' => NULL, + ), + 5 => + array ( + 'id' => 6, + 'name' => 'Module 6', + 'description' => '

Description du module 6

', + 'created_at' => '2020-06-13 11:56:32', + 'updated_at' => '2020-06-13 11:56:32', + 'deleted_at' => NULL, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoApplicationServiceMApplicationTableSeeder.php b/database/seeders/DemoApplicationServiceMApplicationTableSeeder.php new file mode 100644 index 00000000..c3267b19 --- /dev/null +++ b/database/seeders/DemoApplicationServiceMApplicationTableSeeder.php @@ -0,0 +1,136 @@ +delete(); + + \DB::table('application_service_m_application')->insert(array ( + 0 => + array ( + 'm_application_id' => 2, + 'application_service_id' => 3, + ), + 1 => + array ( + 'm_application_id' => 2, + 'application_service_id' => 4, + ), + 2 => + array ( + 'm_application_id' => 1, + 'application_service_id' => 3, + ), + 3 => + array ( + 'm_application_id' => 15, + 'application_service_id' => 2, + ), + 4 => + array ( + 'm_application_id' => 15, + 'application_service_id' => 3, + ), + 5 => + array ( + 'm_application_id' => 1, + 'application_service_id' => 1, + ), + 6 => + array ( + 'm_application_id' => 4, + 'application_service_id' => 11, + ), + 7 => + array ( + 'm_application_id' => 4, + 'application_service_id' => 5, + ), + 8 => + array ( + 'm_application_id' => 2, + 'application_service_id' => 7, + ), + 9 => + array ( + 'm_application_id' => 4, + 'application_service_id' => 7, + ), + 10 => + array ( + 'm_application_id' => 1, + 'application_service_id' => 10, + ), + 11 => + array ( + 'm_application_id' => 16, + 'application_service_id' => 10, + ), + 12 => + array ( + 'm_application_id' => 16, + 'application_service_id' => 11, + ), + 13 => + array ( + 'm_application_id' => 16, + 'application_service_id' => 5, + ), + 14 => + array ( + 'm_application_id' => 16, + 'application_service_id' => 6, + ), + 15 => + array ( + 'm_application_id' => 16, + 'application_service_id' => 7, + ), + 16 => + array ( + 'm_application_id' => 16, + 'application_service_id' => 9, + ), + 17 => + array ( + 'm_application_id' => 16, + 'application_service_id' => 1, + ), + 18 => + array ( + 'm_application_id' => 16, + 'application_service_id' => 2, + ), + 19 => + array ( + 'm_application_id' => 16, + 'application_service_id' => 3, + ), + 20 => + array ( + 'm_application_id' => 16, + 'application_service_id' => 4, + ), + 21 => + array ( + 'm_application_id' => 16, + 'application_service_id' => 8, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoApplicationServicesTableSeeder.php b/database/seeders/DemoApplicationServicesTableSeeder.php new file mode 100644 index 00000000..c34af62f --- /dev/null +++ b/database/seeders/DemoApplicationServicesTableSeeder.php @@ -0,0 +1,136 @@ +delete(); + + \DB::table('application_services')->insert(array ( + 0 => + array ( + 'id' => 1, + 'description' => '

Descrition du service applicatif 1

', + 'exposition' => 'cloud', + 'name' => 'SRV-1', + 'created_at' => '2020-06-13 11:35:31', + 'updated_at' => '2021-08-03 20:50:33', + 'deleted_at' => NULL, + ), + 1 => + array ( + 'id' => 2, + 'description' => '

Description du service 2

', + 'exposition' => 'local', + 'name' => 'Service 2', + 'created_at' => '2020-06-13 11:35:48', + 'updated_at' => '2020-06-13 11:35:48', + 'deleted_at' => NULL, + ), + 2 => + array ( + 'id' => 3, + 'description' => '

Description du service 3

', + 'exposition' => 'local', + 'name' => 'Service 3', + 'created_at' => '2020-06-13 11:36:04', + 'updated_at' => '2020-06-13 11:43:05', + 'deleted_at' => NULL, + ), + 3 => + array ( + 'id' => 4, + 'description' => '

Description du service 4

', + 'exposition' => 'local', + 'name' => 'Service 4', + 'created_at' => '2020-06-13 11:36:17', + 'updated_at' => '2020-06-13 11:36:17', + 'deleted_at' => NULL, + ), + 4 => + array ( + 'id' => 5, + 'description' => '

Service applicatif 4

', + 'exposition' => 'Extranet', + 'name' => 'SRV-4', + 'created_at' => '2021-08-02 16:11:43', + 'updated_at' => '2021-08-17 10:24:10', + 'deleted_at' => NULL, + ), + 5 => + array ( + 'id' => 6, + 'description' => '

Service applicatif 4

', + 'exposition' => NULL, + 'name' => 'SRV-5', + 'created_at' => '2021-08-02 16:12:19', + 'updated_at' => '2021-08-02 16:12:19', + 'deleted_at' => NULL, + ), + 6 => + array ( + 'id' => 7, + 'description' => '

Service applicatif 4

', + 'exposition' => NULL, + 'name' => 'SRV-6', + 'created_at' => '2021-08-02 16:12:56', + 'updated_at' => '2021-08-02 16:12:56', + 'deleted_at' => NULL, + ), + 7 => + array ( + 'id' => 8, + 'description' => '

The service 99

', + 'exposition' => 'local', + 'name' => 'SRV-99', + 'created_at' => '2021-08-02 16:13:39', + 'updated_at' => '2021-09-07 18:53:36', + 'deleted_at' => NULL, + ), + 8 => + array ( + 'id' => 9, + 'description' => '

Service applicatif 4

', + 'exposition' => NULL, + 'name' => 'SRV-9', + 'created_at' => '2021-08-02 16:14:27', + 'updated_at' => '2021-08-02 16:14:27', + 'deleted_at' => NULL, + ), + 9 => + array ( + 'id' => 10, + 'description' => '

Service applicatif 4

', + 'exposition' => 'Extranet', + 'name' => 'SRV-10', + 'created_at' => '2021-08-02 16:15:21', + 'updated_at' => '2021-08-17 10:24:20', + 'deleted_at' => NULL, + ), + 10 => + array ( + 'id' => 11, + 'description' => '

Service applicatif 4

', + 'exposition' => 'Extranet', + 'name' => 'SRV-11', + 'created_at' => '2021-08-02 16:16:34', + 'updated_at' => '2021-08-17 10:24:28', + 'deleted_at' => NULL, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoAuditLogsTableSeeder.php b/database/seeders/DemoAuditLogsTableSeeder.php new file mode 100644 index 00000000..8188f4a1 --- /dev/null +++ b/database/seeders/DemoAuditLogsTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoBayWifiTerminalTableSeeder.php b/database/seeders/DemoBayWifiTerminalTableSeeder.php new file mode 100644 index 00000000..f9655630 --- /dev/null +++ b/database/seeders/DemoBayWifiTerminalTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoBaysTableSeeder.php b/database/seeders/DemoBaysTableSeeder.php new file mode 100644 index 00000000..a902fa4e --- /dev/null +++ b/database/seeders/DemoBaysTableSeeder.php @@ -0,0 +1,86 @@ +delete(); + + \DB::table('bays')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => 'BAIE 101', + 'description' => '

Description de la baie 101

', + 'created_at' => '2020-06-21 06:56:01', + 'updated_at' => '2021-10-19 18:45:21', + 'deleted_at' => NULL, + 'room_id' => 7, + ), + 1 => + array ( + 'id' => 2, + 'name' => 'BAIE 102', + 'description' => '

Desciption baie 102

', + 'created_at' => '2020-06-21 06:56:20', + 'updated_at' => '2020-06-21 06:56:20', + 'deleted_at' => NULL, + 'room_id' => 1, + ), + 2 => + array ( + 'id' => 3, + 'name' => 'BAIE 103', + 'description' => '

Descripton baid 103

', + 'created_at' => '2020-06-21 06:56:38', + 'updated_at' => '2020-06-21 06:56:38', + 'deleted_at' => NULL, + 'room_id' => 1, + ), + 3 => + array ( + 'id' => 4, + 'name' => 'BAIE 201', + 'description' => '

Description baie 201

', + 'created_at' => '2020-06-21 06:56:55', + 'updated_at' => '2020-06-21 06:56:55', + 'deleted_at' => NULL, + 'room_id' => 2, + ), + 4 => + array ( + 'id' => 5, + 'name' => 'BAIE 301', + 'description' => '

Baie 301

', + 'created_at' => '2020-07-15 20:03:07', + 'updated_at' => '2020-07-15 20:03:07', + 'deleted_at' => NULL, + 'room_id' => 3, + ), + 5 => + array ( + 'id' => 6, + 'name' => 'BAIE 501', + 'description' => '

Baie 501

', + 'created_at' => '2020-07-15 20:10:23', + 'updated_at' => '2020-07-15 20:10:23', + 'deleted_at' => NULL, + 'room_id' => 5, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoBuildingsTableSeeder.php b/database/seeders/DemoBuildingsTableSeeder.php new file mode 100644 index 00000000..e6cca35f --- /dev/null +++ b/database/seeders/DemoBuildingsTableSeeder.php @@ -0,0 +1,158 @@ +delete(); + + \DB::table('buildings')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => 'Building 1', + 'description' => '

Description du building 1

', + 'created_at' => '2020-06-21 06:37:21', + 'updated_at' => '2020-06-21 06:47:41', + 'deleted_at' => NULL, + 'site_id' => 1, + 'camera' => NULL, + 'badge' => NULL, + ), + 1 => + array ( + 'id' => 2, + 'name' => 'Building 2', + 'description' => '

Description du building 2

', + 'created_at' => '2020-06-21 06:37:36', + 'updated_at' => '2020-07-25 08:26:13', + 'deleted_at' => NULL, + 'site_id' => 1, + 'camera' => NULL, + 'badge' => NULL, + ), + 2 => + array ( + 'id' => 3, + 'name' => 'Building 3', + 'description' => '

Description du building 3

', + 'created_at' => '2020-06-21 06:37:48', + 'updated_at' => '2020-07-25 08:26:03', + 'deleted_at' => NULL, + 'site_id' => 2, + 'camera' => NULL, + 'badge' => NULL, + ), + 3 => + array ( + 'id' => 4, + 'name' => 'Building 4', + 'description' => '

Description du building 4

', + 'created_at' => '2020-06-21 06:38:03', + 'updated_at' => '2020-07-25 08:25:54', + 'deleted_at' => NULL, + 'site_id' => 2, + 'camera' => NULL, + 'badge' => NULL, + ), + 4 => + array ( + 'id' => 5, + 'name' => 'Building 5', + 'description' => '

Descripion du building 5

', + 'created_at' => '2020-06-21 06:38:16', + 'updated_at' => '2020-07-25 08:26:26', + 'deleted_at' => NULL, + 'site_id' => 3, + 'camera' => NULL, + 'badge' => NULL, + ), + 5 => + array ( + 'id' => 6, + 'name' => 'Test building', + 'description' => '

Description

', + 'created_at' => '2020-07-24 21:12:48', + 'updated_at' => '2020-07-24 21:14:08', + 'deleted_at' => '2020-07-24 21:14:08', + 'site_id' => 4, + 'camera' => NULL, + 'badge' => NULL, + ), + 6 => + array ( + 'id' => 7, + 'name' => 'Building 0', + 'description' => '

Le building zéro

', + 'created_at' => '2020-08-21 15:10:15', + 'updated_at' => '2020-10-02 09:38:55', + 'deleted_at' => NULL, + 'site_id' => 1, + 'camera' => NULL, + 'badge' => NULL, + ), + 7 => + array ( + 'id' => 8, + 'name' => 'test', + 'description' => '

test

', + 'created_at' => '2020-11-06 14:44:22', + 'updated_at' => '2020-11-06 15:26:18', + 'deleted_at' => '2020-11-06 15:26:18', + 'site_id' => NULL, + 'camera' => true, + 'badge' => false, + ), + 8 => + array ( + 'id' => 9, + 'name' => 'test2', + 'description' => '

test2

', + 'created_at' => '2020-11-06 14:59:45', + 'updated_at' => '2020-11-06 15:06:50', + 'deleted_at' => '2020-11-06 15:06:50', + 'site_id' => NULL, + 'camera' => NULL, + 'badge' => NULL, + ), + 9 => + array ( + 'id' => 10, + 'name' => 'test3', + 'description' => '

fdfsdfsd

', + 'created_at' => '2020-11-06 15:07:07', + 'updated_at' => '2020-11-06 15:26:18', + 'deleted_at' => '2020-11-06 15:26:18', + 'site_id' => NULL, + 'camera' => NULL, + 'badge' => NULL, + ), + 10 => + array ( + 'id' => 11, + 'name' => 'test4', + 'description' => NULL, + 'created_at' => '2020-11-06 15:25:52', + 'updated_at' => '2020-11-06 15:26:18', + 'deleted_at' => '2020-11-06 15:26:18', + 'site_id' => NULL, + 'camera' => false, + 'badge' => false, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoCartographerMApplicationTableSeeder.php b/database/seeders/DemoCartographerMApplicationTableSeeder.php new file mode 100644 index 00000000..51352106 --- /dev/null +++ b/database/seeders/DemoCartographerMApplicationTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoCertificateLogicalServerTableSeeder.php b/database/seeders/DemoCertificateLogicalServerTableSeeder.php new file mode 100644 index 00000000..45e3dab2 --- /dev/null +++ b/database/seeders/DemoCertificateLogicalServerTableSeeder.php @@ -0,0 +1,56 @@ +delete(); + + \DB::table('certificate_logical_server')->insert(array ( + 0 => + array ( + 'certificate_id' => 4, + 'logical_server_id' => 1, + ), + 1 => + array ( + 'certificate_id' => 5, + 'logical_server_id' => 2, + ), + 2 => + array ( + 'certificate_id' => 1, + 'logical_server_id' => 1, + ), + 3 => + array ( + 'certificate_id' => 2, + 'logical_server_id' => 1, + ), + 4 => + array ( + 'certificate_id' => 3, + 'logical_server_id' => 1, + ), + 5 => + array ( + 'certificate_id' => 7, + 'logical_server_id' => 1, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoCertificateMApplicationTableSeeder.php b/database/seeders/DemoCertificateMApplicationTableSeeder.php new file mode 100644 index 00000000..5187f5b1 --- /dev/null +++ b/database/seeders/DemoCertificateMApplicationTableSeeder.php @@ -0,0 +1,31 @@ +delete(); + + \DB::table('certificate_m_application')->insert(array ( + 0 => + array ( + 'certificate_id' => 8, + 'm_application_id' => 4, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoCertificatesTableSeeder.php b/database/seeders/DemoCertificatesTableSeeder.php new file mode 100644 index 00000000..c7c25942 --- /dev/null +++ b/database/seeders/DemoCertificatesTableSeeder.php @@ -0,0 +1,138 @@ +delete(); + + \DB::table('certificates')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => 'CERT01', + 'type' => 'DES3', + 'description' => '

Certificat 01

', + 'start_validity' => '2020-10-27', + 'end_validity' => '2022-01-01', + 'created_at' => '2021-07-14 10:28:47', + 'updated_at' => '2022-02-08 16:25:10', + 'deleted_at' => NULL, + 'status' => 0, + 'last_notification' => NULL, + ), + 1 => + array ( + 'id' => 2, + 'name' => 'CERT02', + 'type' => 'AES 256', + 'description' => '

Certificat numéro 02

', + 'start_validity' => '2021-07-14', + 'end_validity' => '2021-07-17', + 'created_at' => '2021-07-14 10:33:33', + 'updated_at' => '2021-07-14 16:14:12', + 'deleted_at' => NULL, + 'status' => NULL, + 'last_notification' => NULL, + ), + 2 => + array ( + 'id' => 3, + 'name' => 'CERT03', + 'type' => 'AES 256', + 'description' => '

Certificat numéro 3

', + 'start_validity' => '2021-09-23', + 'end_validity' => '2021-11-11', + 'created_at' => '2021-07-14 12:35:41', + 'updated_at' => '2021-09-23 16:11:34', + 'deleted_at' => NULL, + 'status' => NULL, + 'last_notification' => NULL, + ), + 3 => + array ( + 'id' => 4, + 'name' => 'CERT04', + 'type' => 'DES3', + 'description' => '

Certificat interne DES 3

', + 'start_validity' => NULL, + 'end_validity' => NULL, + 'created_at' => '2021-07-14 12:40:15', + 'updated_at' => '2021-07-14 12:40:15', + 'deleted_at' => NULL, + 'status' => NULL, + 'last_notification' => NULL, + ), + 4 => + array ( + 'id' => 5, + 'name' => 'CERT05', + 'type' => 'RSA 128', + 'description' => '

Clé 05 avec RSA

', + 'start_validity' => NULL, + 'end_validity' => NULL, + 'created_at' => '2021-07-14 12:45:00', + 'updated_at' => '2021-07-14 12:45:00', + 'deleted_at' => NULL, + 'status' => NULL, + 'last_notification' => NULL, + ), + 5 => + array ( + 'id' => 6, + 'name' => 'CERT07', + 'type' => 'DES3', + 'description' => '

cert 7

', + 'start_validity' => NULL, + 'end_validity' => NULL, + 'created_at' => '2021-07-14 14:44:12', + 'updated_at' => '2021-07-14 14:44:12', + 'deleted_at' => NULL, + 'status' => NULL, + 'last_notification' => NULL, + ), + 6 => + array ( + 'id' => 7, + 'name' => 'CERT08', + 'type' => 'DES3', + 'description' => '

Master cert 08

', + 'start_validity' => '2021-06-15', + 'end_validity' => '2022-08-11', + 'created_at' => '2021-08-11 20:33:42', + 'updated_at' => '2021-08-11 20:33:42', + 'deleted_at' => NULL, + 'status' => NULL, + 'last_notification' => NULL, + ), + 7 => + array ( + 'id' => 8, + 'name' => 'CERT09', + 'type' => 'DES3', + 'description' => '

Test cert nine

', + 'start_validity' => '2021-09-25', + 'end_validity' => '2021-09-26', + 'created_at' => '2021-09-23 16:17:20', + 'updated_at' => '2021-09-23 16:17:20', + 'deleted_at' => NULL, + 'status' => NULL, + 'last_notification' => NULL, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoCpeProductsTableSeeder.php b/database/seeders/DemoCpeProductsTableSeeder.php new file mode 100644 index 00000000..3cf99062 --- /dev/null +++ b/database/seeders/DemoCpeProductsTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoCpeVendorsTableSeeder.php b/database/seeders/DemoCpeVendorsTableSeeder.php new file mode 100644 index 00000000..0025a1e1 --- /dev/null +++ b/database/seeders/DemoCpeVendorsTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoCpeVersionsTableSeeder.php b/database/seeders/DemoCpeVersionsTableSeeder.php new file mode 100644 index 00000000..1a761945 --- /dev/null +++ b/database/seeders/DemoCpeVersionsTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoDatabaseEntityTableSeeder.php b/database/seeders/DemoDatabaseEntityTableSeeder.php new file mode 100644 index 00000000..715cabb9 --- /dev/null +++ b/database/seeders/DemoDatabaseEntityTableSeeder.php @@ -0,0 +1,51 @@ +delete(); + + \DB::table('database_entity')->insert(array ( + 0 => + array ( + 'database_id' => 1, + 'entity_id' => 1, + ), + 1 => + array ( + 'database_id' => 3, + 'entity_id' => 1, + ), + 2 => + array ( + 'database_id' => 4, + 'entity_id' => 1, + ), + 3 => + array ( + 'database_id' => 5, + 'entity_id' => 1, + ), + 4 => + array ( + 'database_id' => 6, + 'entity_id' => 1, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoDatabaseInformationTableSeeder.php b/database/seeders/DemoDatabaseInformationTableSeeder.php new file mode 100644 index 00000000..77eeb015 --- /dev/null +++ b/database/seeders/DemoDatabaseInformationTableSeeder.php @@ -0,0 +1,76 @@ +delete(); + + \DB::table('database_information')->insert(array ( + 0 => + array ( + 'database_id' => 1, + 'information_id' => 1, + ), + 1 => + array ( + 'database_id' => 1, + 'information_id' => 2, + ), + 2 => + array ( + 'database_id' => 1, + 'information_id' => 3, + ), + 3 => + array ( + 'database_id' => 3, + 'information_id' => 2, + ), + 4 => + array ( + 'database_id' => 3, + 'information_id' => 3, + ), + 5 => + array ( + 'database_id' => 5, + 'information_id' => 1, + ), + 6 => + array ( + 'database_id' => 4, + 'information_id' => 2, + ), + 7 => + array ( + 'database_id' => 6, + 'information_id' => 2, + ), + 8 => + array ( + 'database_id' => 6, + 'information_id' => 3, + ), + 9 => + array ( + 'database_id' => 5, + 'information_id' => 5, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoDatabaseLogicalServerTableSeeder.php b/database/seeders/DemoDatabaseLogicalServerTableSeeder.php new file mode 100644 index 00000000..7eb2812b --- /dev/null +++ b/database/seeders/DemoDatabaseLogicalServerTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoDatabaseMApplicationTableSeeder.php b/database/seeders/DemoDatabaseMApplicationTableSeeder.php new file mode 100644 index 00000000..cf69653d --- /dev/null +++ b/database/seeders/DemoDatabaseMApplicationTableSeeder.php @@ -0,0 +1,66 @@ +delete(); + + \DB::table('database_m_application')->insert(array ( + 0 => + array ( + 'm_application_id' => 2, + 'database_id' => 3, + ), + 1 => + array ( + 'm_application_id' => 3, + 'database_id' => 4, + ), + 2 => + array ( + 'm_application_id' => 3, + 'database_id' => 1, + ), + 3 => + array ( + 'm_application_id' => 4, + 'database_id' => 5, + ), + 4 => + array ( + 'm_application_id' => 4, + 'database_id' => 6, + ), + 5 => + array ( + 'm_application_id' => 15, + 'database_id' => 5, + ), + 6 => + array ( + 'm_application_id' => 15, + 'database_id' => 4, + ), + 7 => + array ( + 'm_application_id' => 16, + 'database_id' => 1, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoDatabasesTableSeeder.php b/database/seeders/DemoDatabasesTableSeeder.php new file mode 100644 index 00000000..669a64a0 --- /dev/null +++ b/database/seeders/DemoDatabasesTableSeeder.php @@ -0,0 +1,111 @@ +delete(); + + \DB::table('databases')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => 'Database 1', + 'description' => '

Description Database 1

', + 'responsible' => 'Paul', + 'type' => 'MySQL', + 'security_need_c' => 1, + 'external' => 'Interne', + 'created_at' => '2020-06-17 16:18:48', + 'updated_at' => '2021-05-14 12:19:45', + 'deleted_at' => NULL, + 'entity_resp_id' => 2, + 'security_need_i' => 2, + 'security_need_a' => 3, + 'security_need_t' => 4, + ), + 1 => + array ( + 'id' => 3, + 'name' => 'Database 2', + 'description' => '

Description database 2

', + 'responsible' => 'Paul', + 'type' => 'MySQL', + 'security_need_c' => 1, + 'external' => 'Interne', + 'created_at' => '2020-06-17 16:19:24', + 'updated_at' => '2021-05-14 12:29:47', + 'deleted_at' => NULL, + 'entity_resp_id' => 1, + 'security_need_i' => 1, + 'security_need_a' => 1, + 'security_need_t' => 1, + ), + 2 => + array ( + 'id' => 4, + 'name' => 'MainDB', + 'description' => '

description de la base de données

', + 'responsible' => 'Paul', + 'type' => 'Oracle', + 'security_need_c' => 2, + 'external' => 'Interne', + 'created_at' => '2020-07-01 17:08:57', + 'updated_at' => '2021-08-20 03:52:23', + 'deleted_at' => NULL, + 'entity_resp_id' => 1, + 'security_need_i' => 2, + 'security_need_a' => 2, + 'security_need_t' => 2, + ), + 3 => + array ( + 'id' => 5, + 'name' => 'DB Compta', + 'description' => '

Base de donnée de la compta

', + 'responsible' => 'Paul', + 'type' => 'MariaDB', + 'security_need_c' => 2, + 'external' => 'Interne', + 'created_at' => '2020-08-24 17:58:23', + 'updated_at' => '2022-03-21 18:13:10', + 'deleted_at' => NULL, + 'entity_resp_id' => 18, + 'security_need_i' => 2, + 'security_need_a' => 2, + 'security_need_t' => 2, + ), + 4 => + array ( + 'id' => 6, + 'name' => 'Data Warehouse', + 'description' => '

Base de données du datawarehouse

', + 'responsible' => 'Jean', + 'type' => 'Oracle', + 'security_need_c' => 2, + 'external' => 'Interne', + 'created_at' => '2021-05-14 12:24:02', + 'updated_at' => '2022-03-21 18:13:24', + 'deleted_at' => NULL, + 'entity_resp_id' => 1, + 'security_need_i' => 2, + 'security_need_a' => 2, + 'security_need_t' => 2, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoDhcpServersTableSeeder.php b/database/seeders/DemoDhcpServersTableSeeder.php new file mode 100644 index 00000000..0e102e7c --- /dev/null +++ b/database/seeders/DemoDhcpServersTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoDnsserversTableSeeder.php b/database/seeders/DemoDnsserversTableSeeder.php new file mode 100644 index 00000000..d95944e3 --- /dev/null +++ b/database/seeders/DemoDnsserversTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoDocumentsTableSeeder.php b/database/seeders/DemoDocumentsTableSeeder.php new file mode 100644 index 00000000..fade8694 --- /dev/null +++ b/database/seeders/DemoDocumentsTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoDomaineAdForestAdTableSeeder.php b/database/seeders/DemoDomaineAdForestAdTableSeeder.php new file mode 100644 index 00000000..472e07d5 --- /dev/null +++ b/database/seeders/DemoDomaineAdForestAdTableSeeder.php @@ -0,0 +1,51 @@ +delete(); + + \DB::table('domaine_ad_forest_ad')->insert(array ( + 0 => + array ( + 'forest_ad_id' => 1, + 'domaine_ad_id' => 1, + ), + 1 => + array ( + 'forest_ad_id' => 2, + 'domaine_ad_id' => 1, + ), + 2 => + array ( + 'forest_ad_id' => 1, + 'domaine_ad_id' => 3, + ), + 3 => + array ( + 'forest_ad_id' => 2, + 'domaine_ad_id' => 5, + ), + 4 => + array ( + 'forest_ad_id' => 1, + 'domaine_ad_id' => 4, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoDomaineAdsTableSeeder.php b/database/seeders/DemoDomaineAdsTableSeeder.php new file mode 100644 index 00000000..0966dfb9 --- /dev/null +++ b/database/seeders/DemoDomaineAdsTableSeeder.php @@ -0,0 +1,91 @@ +delete(); + + \DB::table('domaine_ads')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => 'Dom1', + 'description' => '

Domaine AD1

', + 'domain_ctrl_cnt' => 3, + 'user_count' => 2000, + 'machine_count' => 800, + 'relation_inter_domaine' => 'Non', + 'created_at' => '2020-07-03 09:51:06', + 'updated_at' => '2020-07-03 09:51:06', + 'deleted_at' => NULL, + ), + 1 => + array ( + 'id' => 2, + 'name' => 'test domain', + 'description' => '

this is a test

', + 'domain_ctrl_cnt' => NULL, + 'user_count' => NULL, + 'machine_count' => NULL, + 'relation_inter_domaine' => NULL, + 'created_at' => '2021-05-27 15:24:52', + 'updated_at' => '2021-05-27 15:29:15', + 'deleted_at' => '2021-05-27 15:29:15', + ), + 2 => + array ( + 'id' => 3, + 'name' => 'Dom2', + 'description' => '

Second domaine active directory

', + 'domain_ctrl_cnt' => 2, + 'user_count' => 100, + 'machine_count' => 1, + 'relation_inter_domaine' => 'Néant', + 'created_at' => '2021-05-27 15:29:43', + 'updated_at' => '2021-05-27 15:29:43', + 'deleted_at' => NULL, + ), + 3 => + array ( + 'id' => 4, + 'name' => 'Dom5', + 'description' => '

Domaine cinq

', + 'domain_ctrl_cnt' => NULL, + 'user_count' => NULL, + 'machine_count' => NULL, + 'relation_inter_domaine' => NULL, + 'created_at' => '2021-05-27 15:39:08', + 'updated_at' => '2021-05-27 15:39:08', + 'deleted_at' => NULL, + ), + 4 => + array ( + 'id' => 5, + 'name' => 'Dom4', + 'description' => '

Domaine quatre

', + 'domain_ctrl_cnt' => NULL, + 'user_count' => NULL, + 'machine_count' => NULL, + 'relation_inter_domaine' => NULL, + 'created_at' => '2021-05-27 15:39:20', + 'updated_at' => '2021-05-27 15:39:20', + 'deleted_at' => NULL, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoEntitiesTableSeeder.php b/database/seeders/DemoEntitiesTableSeeder.php new file mode 100644 index 00000000..cd51b7ef --- /dev/null +++ b/database/seeders/DemoEntitiesTableSeeder.php @@ -0,0 +1,299 @@ +delete(); + + \DB::table('entities')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => 'MegaNet System', + 'security_level' => '

ISO 27001

', + 'contact_point' => '

Helpdek
27, Rue des poire 
12043 Mire-en-Mare le Bains

helpdes@menetsys.org

', + 'description' => '

Fournisseur équipement réseau

', + 'created_at' => '2020-05-21 04:30:59', + 'updated_at' => '2022-05-20 17:30:00', + 'deleted_at' => NULL, + 'is_external' => true, + 'entity_type' => NULL, + ), + 1 => + array ( + 'id' => 2, + 'name' => 'Entité1', + 'security_level' => '

Néant

', + 'contact_point' => '
  • Commercial
  • Service Delivery
  • Helpdesk
', + 'description' => '

Entité de tests1

', + 'created_at' => '2020-05-21 04:31:17', + 'updated_at' => '2021-05-23 14:59:11', + 'deleted_at' => NULL, + 'is_external' => false, + 'entity_type' => NULL, + ), + 2 => + array ( + 'id' => 3, + 'name' => 'CHdN', + 'security_level' => '3', + 'contact_point' => 'RSSI du CHdN', + 'description' => '

Centre Hospitalier du Nord

', + 'created_at' => '2020-05-21 04:43:41', + 'updated_at' => '2021-05-13 10:20:32', + 'deleted_at' => '2021-05-13 10:20:32', + 'is_external' => false, + 'entity_type' => NULL, + ), + 3 => + array ( + 'id' => 4, + 'name' => 'Entité3', + 'security_level' => '

ISO 9001

', + 'contact_point' => '

Point de contact de la troisième entité

', + 'description' => '

Description de la troisième entité.

', + 'created_at' => '2020-05-21 04:44:03', + 'updated_at' => '2021-07-20 21:20:37', + 'deleted_at' => NULL, + 'is_external' => false, + 'entity_type' => NULL, + ), + 4 => + array ( + 'id' => 5, + 'name' => 'entité6', + 'security_level' => '

Néant

', + 'contact_point' => '

support_informatque@entite6.fr

', + 'description' => '

Description de l\'entité six

', + 'created_at' => '2020-05-21 04:44:18', + 'updated_at' => '2021-05-23 15:03:15', + 'deleted_at' => NULL, + 'is_external' => false, + 'entity_type' => NULL, + ), + 5 => + array ( + 'id' => 6, + 'name' => 'Entité4', + 'security_level' => '

ISO 27001

', + 'contact_point' => '

Pierre Pinon
Tel: 00 34 392 484 22

', + 'description' => '

Description de l\'entté quatre

', + 'created_at' => '2020-05-21 04:45:14', + 'updated_at' => '2021-05-23 15:01:17', + 'deleted_at' => NULL, + 'is_external' => false, + 'entity_type' => NULL, + ), + 6 => + array ( + 'id' => 7, + 'name' => 'Entité5', + 'security_level' => '

Néant

', + 'contact_point' => '

Servicdesk@entite5.fr

', + 'description' => '

Description de l\'entité 5

', + 'created_at' => '2020-05-21 05:38:41', + 'updated_at' => '2021-05-23 15:02:16', + 'deleted_at' => NULL, + 'is_external' => false, + 'entity_type' => NULL, + ), + 7 => + array ( + 'id' => 8, + 'name' => 'Entité2', + 'security_level' => '

ISO 27001

', + 'contact_point' => '

Point de contact de l\'entité 2

', + 'description' => '

Description de l\'entité 2

', + 'created_at' => '2020-05-21 05:54:22', + 'updated_at' => '2021-05-23 15:00:03', + 'deleted_at' => NULL, + 'is_external' => false, + 'entity_type' => NULL, + ), + 8 => + array ( + 'id' => 9, + 'name' => 'NetworkSys', + 'security_level' => '

ISO 27001

', + 'contact_point' => '

support@networksys.fr

', + 'description' => '

Description de l’entité NetworkSys

', + 'created_at' => '2020-05-21 08:25:15', + 'updated_at' => '2022-05-20 17:30:00', + 'deleted_at' => NULL, + 'is_external' => true, + 'entity_type' => NULL, + ), + 9 => + array ( + 'id' => 10, + 'name' => 'Agence eSanté', + 'security_level' => '

Néant

', + 'contact_point' => '

helpdesk@esante.lu

', + 'description' => '

Agence Nationale des information partagées dans le domaine de la santé

  • a
  • b
  • c

+-------+
+ TOTO +
+-------+

<<<<<< >>>>>>>>>>>>

', + 'created_at' => '2020-05-21 08:25:26', + 'updated_at' => '2021-05-13 10:20:32', + 'deleted_at' => '2021-05-13 10:20:32', + 'is_external' => false, + 'entity_type' => NULL, + ), + 10 => + array ( + 'id' => 11, + 'name' => 'Test', + 'security_level' => '4', + 'contact_point' => NULL, + 'description' => '

Test

', + 'created_at' => '2020-07-02 17:37:29', + 'updated_at' => '2020-07-02 17:37:44', + 'deleted_at' => '2020-07-02 17:37:44', + 'is_external' => false, + 'entity_type' => NULL, + ), + 11 => + array ( + 'id' => 12, + 'name' => 'Pierre et fils', + 'security_level' => '

Certifications : 
- ISO 9001
- ISO 27001
- ISO 31000

', + 'contact_point' => '

Paul Pierre
Gérant
00 33 4943 432 423

', + 'description' => '

Description de l\'entité de test

', + 'created_at' => '2020-07-06 15:37:54', + 'updated_at' => '2022-05-20 17:30:00', + 'deleted_at' => NULL, + 'is_external' => true, + 'entity_type' => NULL, + ), + 12 => + array ( + 'id' => 13, + 'name' => 'Nestor', + 'security_level' => '

Haut niveau

', + 'contact_point' => '

Paul, Pierre et Jean

', + 'description' => '

Description de Nestor

', + 'created_at' => '2020-08-12 18:11:31', + 'updated_at' => '2020-08-12 18:12:13', + 'deleted_at' => NULL, + 'is_external' => false, + 'entity_type' => NULL, + ), + 13 => + array ( + 'id' => 14, + 'name' => '0001', + 'security_level' => NULL, + 'contact_point' => NULL, + 'description' => '

rrzerze

', + 'created_at' => '2021-06-15 17:16:31', + 'updated_at' => '2021-06-15 17:17:08', + 'deleted_at' => '2021-06-15 17:17:08', + 'is_external' => false, + 'entity_type' => NULL, + ), + 14 => + array ( + 'id' => 15, + 'name' => '002', + 'security_level' => NULL, + 'contact_point' => NULL, + 'description' => '

sdqsfsd

', + 'created_at' => '2021-06-15 17:16:41', + 'updated_at' => '2021-06-15 17:17:08', + 'deleted_at' => '2021-06-15 17:17:08', + 'is_external' => false, + 'entity_type' => NULL, + ), + 15 => + array ( + 'id' => 16, + 'name' => '003', + 'security_level' => NULL, + 'contact_point' => NULL, + 'description' => '

dsqdsq

', + 'created_at' => '2021-06-15 17:16:51', + 'updated_at' => '2021-06-15 17:17:08', + 'deleted_at' => '2021-06-15 17:17:08', + 'is_external' => false, + 'entity_type' => NULL, + ), + 16 => + array ( + 'id' => 17, + 'name' => '004', + 'security_level' => NULL, + 'contact_point' => NULL, + 'description' => '

dqqqsdqs

', + 'created_at' => '2021-06-15 17:17:01', + 'updated_at' => '2021-06-15 17:17:08', + 'deleted_at' => '2021-06-15 17:17:08', + 'is_external' => false, + 'entity_type' => NULL, + ), + 17 => + array ( + 'id' => 18, + 'name' => 'Acme corp.', + 'security_level' => '

None sorry...

', + 'contact_point' => '

Do not call me, I will call you back.

', + 'description' => '

Looney tunes academy

', + 'created_at' => '2021-09-07 20:07:16', + 'updated_at' => '2022-05-20 17:30:00', + 'deleted_at' => NULL, + 'is_external' => true, + 'entity_type' => NULL, + ), + 18 => + array ( + 'id' => 19, + 'name' => 'HAL', + 'security_level' => '

Top security certification

', + 'contact_point' => '

hal@corp.com

', + 'description' => '

Very big HAL corporation

', + 'created_at' => '2021-09-07 20:08:56', + 'updated_at' => '2021-09-07 20:09:17', + 'deleted_at' => NULL, + 'is_external' => false, + 'entity_type' => NULL, + ), + 19 => + array ( + 'id' => 20, + 'name' => 'ATest1', + 'security_level' => NULL, + 'contact_point' => NULL, + 'description' => NULL, + 'created_at' => '2022-04-25 14:43:46', + 'updated_at' => '2022-04-25 14:44:02', + 'deleted_at' => '2022-04-25 14:44:02', + 'is_external' => false, + 'entity_type' => NULL, + ), + 20 => + array ( + 'id' => 21, + 'name' => 'ATest2', + 'security_level' => NULL, + 'contact_point' => NULL, + 'description' => NULL, + 'created_at' => '2022-04-25 14:43:56', + 'updated_at' => '2022-04-25 14:44:02', + 'deleted_at' => '2022-04-25 14:44:02', + 'is_external' => false, + 'entity_type' => NULL, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoEntityDocumentTableSeeder.php b/database/seeders/DemoEntityDocumentTableSeeder.php new file mode 100644 index 00000000..6f536b27 --- /dev/null +++ b/database/seeders/DemoEntityDocumentTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoEntityMApplicationTableSeeder.php b/database/seeders/DemoEntityMApplicationTableSeeder.php new file mode 100644 index 00000000..f28f5434 --- /dev/null +++ b/database/seeders/DemoEntityMApplicationTableSeeder.php @@ -0,0 +1,91 @@ +delete(); + + \DB::table('entity_m_application')->insert(array ( + 0 => + array ( + 'm_application_id' => 2, + 'entity_id' => 1, + ), + 1 => + array ( + 'm_application_id' => 5, + 'entity_id' => 1, + ), + 2 => + array ( + 'm_application_id' => 7, + 'entity_id' => 2, + ), + 3 => + array ( + 'm_application_id' => 9, + 'entity_id' => 1, + ), + 4 => + array ( + 'm_application_id' => 10, + 'entity_id' => 1, + ), + 5 => + array ( + 'm_application_id' => 2, + 'entity_id' => 2, + ), + 6 => + array ( + 'm_application_id' => 11, + 'entity_id' => 1, + ), + 7 => + array ( + 'm_application_id' => 1, + 'entity_id' => 2, + ), + 8 => + array ( + 'm_application_id' => 1, + 'entity_id' => 8, + ), + 9 => + array ( + 'm_application_id' => 3, + 'entity_id' => 8, + ), + 10 => + array ( + 'm_application_id' => 4, + 'entity_id' => 8, + ), + 11 => + array ( + 'm_application_id' => 4, + 'entity_id' => 4, + ), + 12 => + array ( + 'm_application_id' => 16, + 'entity_id' => 2, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoEntityProcessTableSeeder.php b/database/seeders/DemoEntityProcessTableSeeder.php new file mode 100644 index 00000000..e795da1f --- /dev/null +++ b/database/seeders/DemoEntityProcessTableSeeder.php @@ -0,0 +1,131 @@ +delete(); + + \DB::table('entity_process')->insert(array ( + 0 => + array ( + 'process_id' => 1, + 'entity_id' => 1, + ), + 1 => + array ( + 'process_id' => 2, + 'entity_id' => 1, + ), + 2 => + array ( + 'process_id' => 3, + 'entity_id' => 1, + ), + 3 => + array ( + 'process_id' => 1, + 'entity_id' => 13, + ), + 4 => + array ( + 'process_id' => 3, + 'entity_id' => 13, + ), + 5 => + array ( + 'process_id' => 4, + 'entity_id' => 1, + ), + 6 => + array ( + 'process_id' => 7, + 'entity_id' => 3, + ), + 7 => + array ( + 'process_id' => 9, + 'entity_id' => 4, + ), + 8 => + array ( + 'process_id' => 2, + 'entity_id' => 8, + ), + 9 => + array ( + 'process_id' => 4, + 'entity_id' => 6, + ), + 10 => + array ( + 'process_id' => 4, + 'entity_id' => 7, + ), + 11 => + array ( + 'process_id' => 9, + 'entity_id' => 5, + ), + 12 => + array ( + 'process_id' => 1, + 'entity_id' => 9, + ), + 13 => + array ( + 'process_id' => 2, + 'entity_id' => 9, + ), + 14 => + array ( + 'process_id' => 3, + 'entity_id' => 9, + ), + 15 => + array ( + 'process_id' => 4, + 'entity_id' => 9, + ), + 16 => + array ( + 'process_id' => 9, + 'entity_id' => 9, + ), + 17 => + array ( + 'process_id' => 1, + 'entity_id' => 12, + ), + 18 => + array ( + 'process_id' => 1, + 'entity_id' => 2, + ), + 19 => + array ( + 'process_id' => 4, + 'entity_id' => 18, + ), + 20 => + array ( + 'process_id' => 3, + 'entity_id' => 19, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoExternalConnectedEntitiesTableSeeder.php b/database/seeders/DemoExternalConnectedEntitiesTableSeeder.php new file mode 100644 index 00000000..77e693f7 --- /dev/null +++ b/database/seeders/DemoExternalConnectedEntitiesTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoFluxesTableSeeder.php b/database/seeders/DemoFluxesTableSeeder.php new file mode 100644 index 00000000..0360ea39 --- /dev/null +++ b/database/seeders/DemoFluxesTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoForestAdsTableSeeder.php b/database/seeders/DemoForestAdsTableSeeder.php new file mode 100644 index 00000000..b4098e86 --- /dev/null +++ b/database/seeders/DemoForestAdsTableSeeder.php @@ -0,0 +1,46 @@ +delete(); + + \DB::table('forest_ads')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => 'AD1', + 'description' => '

Foret de l\'AD 1

', + 'created_at' => '2020-07-03 09:50:07', + 'updated_at' => '2020-07-03 09:50:29', + 'deleted_at' => NULL, + 'zone_admin_id' => 1, + ), + 1 => + array ( + 'id' => 2, + 'name' => 'AD2', + 'description' => '

Foret de l\'AD2

', + 'created_at' => '2020-07-03 09:50:19', + 'updated_at' => '2020-07-03 09:50:19', + 'deleted_at' => NULL, + 'zone_admin_id' => 1, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoGatewaysTableSeeder.php b/database/seeders/DemoGatewaysTableSeeder.php new file mode 100644 index 00000000..bc70be6c --- /dev/null +++ b/database/seeders/DemoGatewaysTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoInformationProcessTableSeeder.php b/database/seeders/DemoInformationProcessTableSeeder.php new file mode 100644 index 00000000..eba30779 --- /dev/null +++ b/database/seeders/DemoInformationProcessTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoInformationTableSeeder.php b/database/seeders/DemoInformationTableSeeder.php new file mode 100644 index 00000000..edc8302e --- /dev/null +++ b/database/seeders/DemoInformationTableSeeder.php @@ -0,0 +1,121 @@ +delete(); + + \DB::table('information')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => 'Information 1', + 'description' => '

Description de l\'information 1

', + 'owner' => 'Luc', + 'administrator' => NULL, + 'storage' => 'externe', + 'security_need_c' => 1, + 'sensitivity' => 'Donnée à caractère personnel', + 'constraints' => '

Description des contraintes règlementaires et normatives

', + 'created_at' => '2020-06-13 02:06:43', + 'updated_at' => '2021-11-04 08:43:27', + 'deleted_at' => NULL, + 'security_need_i' => 3, + 'security_need_a' => 2, + 'security_need_t' => 2, + 'retention' => NULL, + ), + 1 => + array ( + 'id' => 2, + 'name' => 'information 2', + 'description' => '

Description de l\'information

', + 'owner' => 'Nestor', + 'administrator' => 'Nom de l\'administrateur', + 'storage' => 'externe', + 'security_need_c' => 2, + 'sensitivity' => 'Donnée à caractère personnel', + 'constraints' => NULL, + 'created_at' => '2020-06-13 02:09:13', + 'updated_at' => '2021-08-19 18:42:53', + 'deleted_at' => NULL, + 'security_need_i' => 1, + 'security_need_a' => 1, + 'security_need_t' => 1, + 'retention' => NULL, + ), + 2 => + array ( + 'id' => 3, + 'name' => 'information 3', + 'description' => '

Descripton de l\'information 3

', + 'owner' => 'Paul', + 'administrator' => 'Jean', + 'storage' => 'Local', + 'security_need_c' => 4, + 'sensitivity' => 'Donnée à caractère personnel', + 'constraints' => NULL, + 'created_at' => '2020-06-13 02:10:07', + 'updated_at' => '2021-09-28 19:42:07', + 'deleted_at' => NULL, + 'security_need_i' => 4, + 'security_need_a' => 3, + 'security_need_t' => 4, + 'retention' => NULL, + ), + 3 => + array ( + 'id' => 4, + 'name' => 'Information de test', + 'description' => '

decription du test

', + 'owner' => 'RSSI', + 'administrator' => 'Paul', + 'storage' => 'Local', + 'security_need_c' => 1, + 'sensitivity' => 'Technical', + 'constraints' => NULL, + 'created_at' => '2020-07-01 17:00:37', + 'updated_at' => '2021-08-19 18:45:52', + 'deleted_at' => NULL, + 'security_need_i' => 1, + 'security_need_a' => 1, + 'security_need_t' => 1, + 'retention' => NULL, + ), + 4 => + array ( + 'id' => 5, + 'name' => 'Données du client', + 'description' => '

Données d\'identification du client

', + 'owner' => 'Nestor', + 'administrator' => 'Paul', + 'storage' => 'Local', + 'security_need_c' => 2, + 'sensitivity' => 'Donnée à caractère personnel', + 'constraints' => '

RGPD

', + 'created_at' => '2021-05-14 12:50:09', + 'updated_at' => '2022-03-21 18:12:30', + 'deleted_at' => NULL, + 'security_need_i' => 2, + 'security_need_a' => 2, + 'security_need_t' => 2, + 'retention' => NULL, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoLanManTableSeeder.php b/database/seeders/DemoLanManTableSeeder.php new file mode 100644 index 00000000..325892bb --- /dev/null +++ b/database/seeders/DemoLanManTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoLanWanTableSeeder.php b/database/seeders/DemoLanWanTableSeeder.php new file mode 100644 index 00000000..ec174048 --- /dev/null +++ b/database/seeders/DemoLanWanTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoLansTableSeeder.php b/database/seeders/DemoLansTableSeeder.php new file mode 100644 index 00000000..970da44b --- /dev/null +++ b/database/seeders/DemoLansTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoLogicalServerMApplicationTableSeeder.php b/database/seeders/DemoLogicalServerMApplicationTableSeeder.php new file mode 100644 index 00000000..8369fe88 --- /dev/null +++ b/database/seeders/DemoLogicalServerMApplicationTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoLogicalServerPhysicalServerTableSeeder.php b/database/seeders/DemoLogicalServerPhysicalServerTableSeeder.php new file mode 100644 index 00000000..860f8ed0 --- /dev/null +++ b/database/seeders/DemoLogicalServerPhysicalServerTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoLogicalServersTableSeeder.php b/database/seeders/DemoLogicalServersTableSeeder.php new file mode 100644 index 00000000..3c5fb8ad --- /dev/null +++ b/database/seeders/DemoLogicalServersTableSeeder.php @@ -0,0 +1,121 @@ +delete(); + + \DB::table('logical_servers')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => 'SRV-1', + 'description' => '

Description du serveur 1

', + 'net_services' => 'DNS, HTTP, HTTPS', + 'configuration' => '

Configuration du serveur 1

', + 'created_at' => '2020-07-12 18:57:42', + 'updated_at' => '2021-08-17 15:13:21', + 'deleted_at' => NULL, + 'operating_system' => 'Windows 3.1', + 'address_ip' => '10.10.1.1, 10.10.10.1', + 'cpu' => '2', + 'memory' => '8', + 'environment' => 'PROD', + 'disk' => 60, + 'install_date' => NULL, + 'update_date' => NULL, + ), + 1 => + array ( + 'id' => 2, + 'name' => 'SRV-2', + 'description' => '

Description du serveur 2

', + 'net_services' => 'HTTPS, SSH', + 'configuration' => '

Configuration par défaut

', + 'created_at' => '2020-07-30 12:00:16', + 'updated_at' => '2021-08-17 20:17:41', + 'deleted_at' => NULL, + 'operating_system' => 'Windows 10', + 'address_ip' => '10.50.1.2', + 'cpu' => '2', + 'memory' => '5', + 'environment' => 'PROD', + 'disk' => 100, + 'install_date' => NULL, + 'update_date' => NULL, + ), + 2 => + array ( + 'id' => 3, + 'name' => 'SRV-3', + 'description' => '

Description du serveur 3

', + 'net_services' => 'HTTP, HTTPS', + 'configuration' => NULL, + 'created_at' => '2021-08-26 16:33:03', + 'updated_at' => '2021-08-26 16:33:38', + 'deleted_at' => NULL, + 'operating_system' => 'Ubuntu 20.04', + 'address_ip' => '10.70.8.3', + 'cpu' => '4', + 'memory' => '16', + 'environment' => 'PROD', + 'disk' => 80, + 'install_date' => NULL, + 'update_date' => NULL, + ), + 3 => + array ( + 'id' => 4, + 'name' => 'SRV-42', + 'description' => '

The Ultimate Question of Life, the Universe and Everything

', + 'net_services' => NULL, + 'configuration' => '

Full configuration

', + 'created_at' => '2021-11-15 17:03:59', + 'updated_at' => '2022-03-20 12:39:54', + 'deleted_at' => NULL, + 'operating_system' => 'OS 42', + 'address_ip' => '10.0.0.42', + 'cpu' => '42', + 'memory' => '42 G', + 'environment' => 'PROD', + 'disk' => 42, + 'install_date' => NULL, + 'update_date' => NULL, + ), + 4 => + array ( + 'id' => 5, + 'name' => 'SRV-4', + 'description' => '

Description du serveur 4

', + 'net_services' => NULL, + 'configuration' => NULL, + 'created_at' => '2022-05-02 18:43:02', + 'updated_at' => '2022-05-02 18:49:34', + 'deleted_at' => NULL, + 'operating_system' => 'Ubunti 22.04 LTS', + 'address_ip' => '10.10.3.2', + 'cpu' => '4', + 'memory' => '2', + 'environment' => 'Dev', + 'disk' => NULL, + 'install_date' => '2022-05-01 20:47:41', + 'update_date' => '2022-05-02 20:47:47', + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoMApplicationEventsTableSeeder.php b/database/seeders/DemoMApplicationEventsTableSeeder.php new file mode 100644 index 00000000..62f244d0 --- /dev/null +++ b/database/seeders/DemoMApplicationEventsTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoMApplicationProcessTableSeeder.php b/database/seeders/DemoMApplicationProcessTableSeeder.php new file mode 100644 index 00000000..f13fd539 --- /dev/null +++ b/database/seeders/DemoMApplicationProcessTableSeeder.php @@ -0,0 +1,86 @@ +delete(); + + \DB::table('m_application_process')->insert(array ( + 0 => + array ( + 'm_application_id' => 2, + 'process_id' => 1, + ), + 1 => + array ( + 'm_application_id' => 2, + 'process_id' => 2, + ), + 2 => + array ( + 'm_application_id' => 3, + 'process_id' => 2, + ), + 3 => + array ( + 'm_application_id' => 1, + 'process_id' => 1, + ), + 4 => + array ( + 'm_application_id' => 14, + 'process_id' => 2, + ), + 5 => + array ( + 'm_application_id' => 4, + 'process_id' => 3, + ), + 6 => + array ( + 'm_application_id' => 12, + 'process_id' => 4, + ), + 7 => + array ( + 'm_application_id' => 16, + 'process_id' => 1, + ), + 8 => + array ( + 'm_application_id' => 16, + 'process_id' => 2, + ), + 9 => + array ( + 'm_application_id' => 16, + 'process_id' => 3, + ), + 10 => + array ( + 'm_application_id' => 16, + 'process_id' => 4, + ), + 11 => + array ( + 'm_application_id' => 16, + 'process_id' => 9, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoMApplicationWorkstationTableSeeder.php b/database/seeders/DemoMApplicationWorkstationTableSeeder.php new file mode 100644 index 00000000..575e2e79 --- /dev/null +++ b/database/seeders/DemoMApplicationWorkstationTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoMApplicationsTableSeeder.php b/database/seeders/DemoMApplicationsTableSeeder.php new file mode 100644 index 00000000..6892852f --- /dev/null +++ b/database/seeders/DemoMApplicationsTableSeeder.php @@ -0,0 +1,566 @@ +delete(); + + \DB::table('m_applications')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => 'Application 1', + 'description' => '

Description de l\'application 1

', + 'security_need_c' => 1, + 'responsible' => 'RSSI', + 'type' => 'logiciel', + 'technology' => 'Microsoft', + 'external' => NULL, + 'users' => '> 20', + 'created_at' => '2020-06-14 11:20:15', + 'updated_at' => '2022-03-20 18:53:29', + 'deleted_at' => NULL, + 'entity_resp_id' => 2, + 'application_block_id' => 3, + 'documentation' => '//Documentation/application1.docx', + 'security_need_i' => 1, + 'security_need_a' => 1, + 'security_need_t' => 1, + 'version' => '1.2', + 'functional_referent' => NULL, + 'editor' => NULL, + 'install_date' => NULL, + 'update_date' => NULL, + 'rto' => NULL, + 'rpo' => NULL, + 'vendor' => NULL, + 'product' => NULL, + ), + 1 => + array ( + 'id' => 2, + 'name' => 'Application 2', + 'description' => '

Description de l\'application 2

', + 'security_need_c' => 2, + 'responsible' => 'RSSI', + 'type' => 'progiciel', + 'technology' => 'martian', + 'external' => 'SaaS', + 'users' => '>100', + 'created_at' => '2020-06-14 11:31:16', + 'updated_at' => '2022-02-06 16:52:36', + 'deleted_at' => NULL, + 'entity_resp_id' => 18, + 'application_block_id' => 1, + 'documentation' => 'None', + 'security_need_i' => 2, + 'security_need_a' => 2, + 'security_need_t' => 2, + 'version' => '1.0', + 'functional_referent' => NULL, + 'editor' => NULL, + 'install_date' => NULL, + 'update_date' => NULL, + 'rto' => NULL, + 'rpo' => NULL, + 'vendor' => NULL, + 'product' => NULL, + ), + 2 => + array ( + 'id' => 3, + 'name' => 'Application 3', + 'description' => '

Test application 3

', + 'security_need_c' => 1, + 'responsible' => 'RSSI', + 'type' => 'progiciel', + 'technology' => 'Microsoft', + 'external' => 'Interne', + 'users' => '>100', + 'created_at' => '2020-06-17 19:33:41', + 'updated_at' => '2021-05-15 10:06:53', + 'deleted_at' => NULL, + 'entity_resp_id' => 12, + 'application_block_id' => 2, + 'documentation' => 'Aucune', + 'security_need_i' => 2, + 'security_need_a' => 3, + 'security_need_t' => 3, + 'version' => NULL, + 'functional_referent' => NULL, + 'editor' => NULL, + 'install_date' => NULL, + 'update_date' => NULL, + 'rto' => NULL, + 'rpo' => NULL, + 'vendor' => NULL, + 'product' => NULL, + ), + 3 => + array ( + 'id' => 4, + 'name' => 'Application 4', + 'description' => '

Description app4

', + 'security_need_c' => 2, + 'responsible' => 'RSSI', + 'type' => 'logiciel', + 'technology' => 'Microsoft', + 'external' => 'Internl', + 'users' => '>100', + 'created_at' => '2020-08-11 16:13:02', + 'updated_at' => '2021-07-11 10:59:57', + 'deleted_at' => NULL, + 'entity_resp_id' => 1, + 'application_block_id' => 2, + 'documentation' => 'None', + 'security_need_i' => 2, + 'security_need_a' => 3, + 'security_need_t' => 2, + 'version' => NULL, + 'functional_referent' => NULL, + 'editor' => NULL, + 'install_date' => NULL, + 'update_date' => NULL, + 'rto' => NULL, + 'rpo' => NULL, + 'vendor' => NULL, + 'product' => NULL, + ), + 4 => + array ( + 'id' => 5, + 'name' => 'CUST AP01', + 'description' => '

Customer appication

', + 'security_need_c' => 0, + 'responsible' => NULL, + 'type' => NULL, + 'technology' => 'web', + 'external' => NULL, + 'users' => NULL, + 'created_at' => '2020-08-22 06:58:18', + 'updated_at' => '2020-08-26 16:56:20', + 'deleted_at' => '2020-08-26 16:56:20', + 'entity_resp_id' => NULL, + 'application_block_id' => NULL, + 'documentation' => NULL, + 'security_need_i' => NULL, + 'security_need_a' => NULL, + 'security_need_t' => NULL, + 'version' => NULL, + 'functional_referent' => NULL, + 'editor' => NULL, + 'install_date' => NULL, + 'update_date' => NULL, + 'rto' => NULL, + 'rpo' => NULL, + 'vendor' => NULL, + 'product' => NULL, + ), + 5 => + array ( + 'id' => 6, + 'name' => 'totototo', + 'description' => NULL, + 'security_need_c' => 0, + 'responsible' => NULL, + 'type' => NULL, + 'technology' => 'totottoo', + 'external' => NULL, + 'users' => NULL, + 'created_at' => '2020-08-22 06:59:26', + 'updated_at' => '2020-08-22 06:59:43', + 'deleted_at' => '2020-08-22 06:59:43', + 'entity_resp_id' => NULL, + 'application_block_id' => NULL, + 'documentation' => NULL, + 'security_need_i' => NULL, + 'security_need_a' => NULL, + 'security_need_t' => NULL, + 'version' => NULL, + 'functional_referent' => NULL, + 'editor' => NULL, + 'install_date' => NULL, + 'update_date' => NULL, + 'rto' => NULL, + 'rpo' => NULL, + 'vendor' => NULL, + 'product' => NULL, + ), + 6 => + array ( + 'id' => 7, + 'name' => 'Windows Word', + 'description' => '

Description de l\'application

', + 'security_need_c' => 3, + 'responsible' => 'Nestor', + 'type' => 'artificiel', + 'technology' => 'client lourd', + 'external' => NULL, + 'users' => '>100', + 'created_at' => '2020-08-23 10:20:34', + 'updated_at' => '2020-08-26 16:56:23', + 'deleted_at' => '2020-08-26 16:56:23', + 'entity_resp_id' => 10, + 'application_block_id' => 2, + 'documentation' => NULL, + 'security_need_i' => NULL, + 'security_need_a' => NULL, + 'security_need_t' => NULL, + 'version' => NULL, + 'functional_referent' => NULL, + 'editor' => NULL, + 'install_date' => NULL, + 'update_date' => NULL, + 'rto' => NULL, + 'rpo' => NULL, + 'vendor' => NULL, + 'product' => NULL, + ), + 7 => + array ( + 'id' => 8, + 'name' => 'Application 99', + 'description' => NULL, + 'security_need_c' => 1, + 'responsible' => 'André', + 'type' => 'progiciel', + 'technology' => 'client lourd', + 'external' => 'SaaS', + 'users' => '>100', + 'created_at' => '2020-08-23 12:08:02', + 'updated_at' => '2020-08-26 16:56:13', + 'deleted_at' => '2020-08-26 16:56:13', + 'entity_resp_id' => NULL, + 'application_block_id' => NULL, + 'documentation' => NULL, + 'security_need_i' => NULL, + 'security_need_a' => NULL, + 'security_need_t' => NULL, + 'version' => NULL, + 'functional_referent' => NULL, + 'editor' => NULL, + 'install_date' => NULL, + 'update_date' => NULL, + 'rto' => NULL, + 'rpo' => NULL, + 'vendor' => NULL, + 'product' => NULL, + ), + 8 => + array ( + 'id' => 9, + 'name' => 'Test33', + 'description' => '

fsfsdfsd

', + 'security_need_c' => 0, + 'responsible' => 'Nestor', + 'type' => 'progiciel', + 'technology' => 'martian', + 'external' => NULL, + 'users' => NULL, + 'created_at' => '2020-08-26 16:54:05', + 'updated_at' => '2020-08-26 16:54:35', + 'deleted_at' => '2020-08-26 16:54:35', + 'entity_resp_id' => 10, + 'application_block_id' => NULL, + 'documentation' => NULL, + 'security_need_i' => NULL, + 'security_need_a' => NULL, + 'security_need_t' => NULL, + 'version' => NULL, + 'functional_referent' => NULL, + 'editor' => NULL, + 'install_date' => NULL, + 'update_date' => NULL, + 'rto' => NULL, + 'rpo' => NULL, + 'vendor' => NULL, + 'product' => NULL, + ), + 9 => + array ( + 'id' => 10, + 'name' => 'Test33R', + 'description' => '

fsfsdfsd

', + 'security_need_c' => 0, + 'responsible' => 'Nestor', + 'type' => 'progiciel', + 'technology' => 'martian', + 'external' => NULL, + 'users' => NULL, + 'created_at' => '2020-08-26 16:54:28', + 'updated_at' => '2020-08-26 16:54:39', + 'deleted_at' => '2020-08-26 16:54:39', + 'entity_resp_id' => 10, + 'application_block_id' => NULL, + 'documentation' => NULL, + 'security_need_i' => NULL, + 'security_need_a' => NULL, + 'security_need_t' => NULL, + 'version' => NULL, + 'functional_referent' => NULL, + 'editor' => NULL, + 'install_date' => NULL, + 'update_date' => NULL, + 'rto' => NULL, + 'rpo' => NULL, + 'vendor' => NULL, + 'product' => NULL, + ), + 10 => + array ( + 'id' => 11, + 'name' => 'SuperApp', + 'description' => '

Supper application

', + 'security_need_c' => 0, + 'responsible' => 'RSSI', + 'type' => 'logiciel', + 'technology' => 'martian', + 'external' => NULL, + 'users' => NULL, + 'created_at' => '2021-04-12 16:54:57', + 'updated_at' => '2021-04-12 19:10:44', + 'deleted_at' => '2021-04-12 19:10:44', + 'entity_resp_id' => NULL, + 'application_block_id' => NULL, + 'documentation' => NULL, + 'security_need_i' => NULL, + 'security_need_a' => NULL, + 'security_need_t' => NULL, + 'version' => NULL, + 'functional_referent' => NULL, + 'editor' => NULL, + 'install_date' => NULL, + 'update_date' => NULL, + 'rto' => NULL, + 'rpo' => NULL, + 'vendor' => NULL, + 'product' => NULL, + ), + 11 => + array ( + 'id' => 12, + 'name' => 'SuperApp', + 'description' => '

Super super application !

', + 'security_need_c' => 1, + 'responsible' => 'RSSI', + 'type' => 'Web', + 'technology' => 'Oracle', + 'external' => 'Interne', + 'users' => NULL, + 'created_at' => '2021-04-12 19:10:59', + 'updated_at' => '2021-06-23 21:33:15', + 'deleted_at' => NULL, + 'entity_resp_id' => 1, + 'application_block_id' => 2, + 'documentation' => NULL, + 'security_need_i' => 1, + 'security_need_a' => 1, + 'security_need_t' => 1, + 'version' => NULL, + 'functional_referent' => NULL, + 'editor' => NULL, + 'install_date' => NULL, + 'update_date' => NULL, + 'rto' => NULL, + 'rpo' => NULL, + 'vendor' => NULL, + 'product' => NULL, + ), + 12 => + array ( + 'id' => 13, + 'name' => 'test application', + 'description' => NULL, + 'security_need_c' => 0, + 'responsible' => NULL, + 'type' => NULL, + 'technology' => NULL, + 'external' => NULL, + 'users' => NULL, + 'created_at' => '2021-05-07 10:23:59', + 'updated_at' => '2021-05-07 10:24:03', + 'deleted_at' => '2021-05-07 10:24:03', + 'entity_resp_id' => NULL, + 'application_block_id' => NULL, + 'documentation' => NULL, + 'security_need_i' => NULL, + 'security_need_a' => NULL, + 'security_need_t' => NULL, + 'version' => NULL, + 'functional_referent' => NULL, + 'editor' => NULL, + 'install_date' => NULL, + 'update_date' => NULL, + 'rto' => NULL, + 'rpo' => NULL, + 'vendor' => NULL, + 'product' => NULL, + ), + 13 => + array ( + 'id' => 14, + 'name' => 'Windows Calc', + 'description' => '

Calculatrice windows

', + 'security_need_c' => 2, + 'responsible' => 'RSSI', + 'type' => 'logiciel', + 'technology' => 'Microsoft', + 'external' => 'Internl', + 'users' => NULL, + 'created_at' => '2021-05-13 10:15:27', + 'updated_at' => '2022-03-20 18:53:29', + 'deleted_at' => NULL, + 'entity_resp_id' => 1, + 'application_block_id' => 3, + 'documentation' => NULL, + 'security_need_i' => 0, + 'security_need_a' => 0, + 'security_need_t' => 0, + 'version' => NULL, + 'functional_referent' => NULL, + 'editor' => NULL, + 'install_date' => NULL, + 'update_date' => NULL, + 'rto' => NULL, + 'rpo' => NULL, + 'vendor' => NULL, + 'product' => NULL, + ), + 14 => + array ( + 'id' => 15, + 'name' => 'Compta', + 'description' => '

Application de comptabilité

', + 'security_need_c' => 3, + 'responsible' => 'RSSI', + 'type' => 'progiciel', + 'technology' => 'Microsoft', + 'external' => 'Interne', + 'users' => '>100', + 'created_at' => '2021-05-15 09:53:15', + 'updated_at' => '2021-05-15 09:53:15', + 'deleted_at' => NULL, + 'entity_resp_id' => 1, + 'application_block_id' => 2, + 'documentation' => NULL, + 'security_need_i' => 4, + 'security_need_a' => 2, + 'security_need_t' => 3, + 'version' => NULL, + 'functional_referent' => NULL, + 'editor' => NULL, + 'install_date' => NULL, + 'update_date' => NULL, + 'rto' => NULL, + 'rpo' => NULL, + 'vendor' => NULL, + 'product' => NULL, + ), + 15 => + array ( + 'id' => 16, + 'name' => 'Queue Manager', + 'description' => '

Queue manager

', + 'security_need_c' => 4, + 'responsible' => 'RSSI', + 'type' => 'logiciel', + 'technology' => 'Internal Dev', + 'external' => 'Interne', + 'users' => '>100', + 'created_at' => '2021-08-02 17:17:11', + 'updated_at' => '2021-08-02 17:18:32', + 'deleted_at' => NULL, + 'entity_resp_id' => 1, + 'application_block_id' => 1, + 'documentation' => '//Portal/QueueManager.doc', + 'security_need_i' => 4, + 'security_need_a' => 4, + 'security_need_t' => 4, + 'version' => NULL, + 'functional_referent' => NULL, + 'editor' => NULL, + 'install_date' => NULL, + 'update_date' => NULL, + 'rto' => NULL, + 'rpo' => NULL, + 'vendor' => NULL, + 'product' => NULL, + ), + 16 => + array ( + 'id' => 17, + 'name' => 'test', + 'description' => NULL, + 'security_need_c' => 0, + 'responsible' => NULL, + 'type' => NULL, + 'technology' => NULL, + 'external' => NULL, + 'users' => NULL, + 'created_at' => '2021-10-10 13:03:24', + 'updated_at' => '2021-10-10 13:03:24', + 'deleted_at' => NULL, + 'entity_resp_id' => NULL, + 'application_block_id' => NULL, + 'documentation' => NULL, + 'security_need_i' => 0, + 'security_need_a' => 0, + 'security_need_t' => 0, + 'version' => NULL, + 'functional_referent' => NULL, + 'editor' => NULL, + 'install_date' => NULL, + 'update_date' => NULL, + 'rto' => NULL, + 'rpo' => NULL, + 'vendor' => NULL, + 'product' => NULL, + ), + 17 => + array ( + 'id' => 18, + 'name' => 'Application 42', + 'description' => '

The Ultimate Question of Life, the Universe and Everything

', + 'security_need_c' => -1, + 'responsible' => 'Nestor', + 'type' => NULL, + 'technology' => NULL, + 'external' => NULL, + 'users' => NULL, + 'created_at' => '2021-11-15 17:03:20', + 'updated_at' => '2021-12-11 11:06:18', + 'deleted_at' => NULL, + 'entity_resp_id' => NULL, + 'application_block_id' => NULL, + 'documentation' => NULL, + 'security_need_i' => -1, + 'security_need_a' => -1, + 'security_need_t' => 0, + 'version' => NULL, + 'functional_referent' => NULL, + 'editor' => NULL, + 'install_date' => NULL, + 'update_date' => NULL, + 'rto' => NULL, + 'rpo' => NULL, + 'vendor' => NULL, + 'product' => NULL, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoMacroProcessusesTableSeeder.php b/database/seeders/DemoMacroProcessusesTableSeeder.php new file mode 100644 index 00000000..bca3be2b --- /dev/null +++ b/database/seeders/DemoMacroProcessusesTableSeeder.php @@ -0,0 +1,191 @@ +delete(); + + \DB::table('macro_processuses')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => 'Macro-Processus 1', + 'description' => '

Description du macro-processus de test.

', + 'io_elements' => '

Entrant :

  • donnée 1
  • donnée 2
  • donnée 3

Sortant :

  • donnée 4
  • donnée 5
', + 'security_need_c' => 4, + 'owner' => 'Nestor', + 'created_at' => '2020-06-10 09:02:16', + 'updated_at' => '2021-05-14 15:29:36', + 'deleted_at' => NULL, + 'security_need_i' => 3, + 'security_need_a' => 2, + 'security_need_t' => 1, + ), + 1 => + array ( + 'id' => 2, + 'name' => 'Macro-Processus 2', + 'description' => '

Description du macro-processus

', + 'io_elements' => '

Valeur de test

', + 'security_need_c' => 1, + 'owner' => 'Simon', + 'created_at' => '2020-06-13 03:03:42', + 'updated_at' => '2021-05-14 09:21:10', + 'deleted_at' => NULL, + 'security_need_i' => 2, + 'security_need_a' => 3, + 'security_need_t' => 4, + ), + 2 => + array ( + 'id' => 3, + 'name' => 'Valeur de test', + 'description' => '

Valeur de test

', + 'io_elements' => '

Valeur de test

', + 'security_need_c' => 3, + 'owner' => 'All', + 'created_at' => '2020-08-09 07:32:37', + 'updated_at' => '2020-08-24 16:45:57', + 'deleted_at' => '2020-08-24 16:45:57', + 'security_need_i' => NULL, + 'security_need_a' => NULL, + 'security_need_t' => NULL, + ), + 3 => + array ( + 'id' => 4, + 'name' => 'Proc3', + 'description' => '

dfsdf

', + 'io_elements' => '

dsfsdf

', + 'security_need_c' => 0, + 'owner' => NULL, + 'created_at' => '2020-08-31 16:13:55', + 'updated_at' => '2020-08-31 16:31:29', + 'deleted_at' => '2020-08-31 16:31:29', + 'security_need_i' => NULL, + 'security_need_a' => NULL, + 'security_need_t' => NULL, + ), + 4 => + array ( + 'id' => 5, + 'name' => 'Proc4', + 'description' => '

dfsdf

', + 'io_elements' => '

dsfsdf

', + 'security_need_c' => 0, + 'owner' => NULL, + 'created_at' => '2020-08-31 16:19:32', + 'updated_at' => '2020-08-31 16:31:29', + 'deleted_at' => '2020-08-31 16:31:29', + 'security_need_i' => NULL, + 'security_need_a' => NULL, + 'security_need_t' => NULL, + ), + 5 => + array ( + 'id' => 6, + 'name' => 'Proc5', + 'description' => '

dfsdf

', + 'io_elements' => '

dsfsdf

', + 'security_need_c' => 0, + 'owner' => NULL, + 'created_at' => '2020-08-31 16:29:20', + 'updated_at' => '2020-08-31 16:31:29', + 'deleted_at' => '2020-08-31 16:31:29', + 'security_need_i' => NULL, + 'security_need_a' => NULL, + 'security_need_t' => NULL, + ), + 6 => + array ( + 'id' => 7, + 'name' => 'MP1', + 'description' => '

sdfsdfs

', + 'io_elements' => NULL, + 'security_need_c' => 0, + 'owner' => NULL, + 'created_at' => '2020-08-31 16:31:40', + 'updated_at' => '2020-08-31 16:38:31', + 'deleted_at' => '2020-08-31 16:38:31', + 'security_need_i' => NULL, + 'security_need_a' => NULL, + 'security_need_t' => NULL, + ), + 7 => + array ( + 'id' => 8, + 'name' => 'MP2', + 'description' => '

sdfsdfs

', + 'io_elements' => NULL, + 'security_need_c' => 0, + 'owner' => NULL, + 'created_at' => '2020-08-31 16:37:39', + 'updated_at' => '2020-08-31 16:38:31', + 'deleted_at' => '2020-08-31 16:38:31', + 'security_need_i' => NULL, + 'security_need_a' => NULL, + 'security_need_t' => NULL, + ), + 8 => + array ( + 'id' => 9, + 'name' => 'MP3', + 'description' => '

sdfsdfs

', + 'io_elements' => NULL, + 'security_need_c' => 0, + 'owner' => NULL, + 'created_at' => '2020-08-31 16:38:06', + 'updated_at' => '2020-08-31 16:38:31', + 'deleted_at' => '2020-08-31 16:38:31', + 'security_need_i' => NULL, + 'security_need_a' => NULL, + 'security_need_t' => NULL, + ), + 9 => + array ( + 'id' => 10, + 'name' => 'Macro-Processus 3', + 'description' => '

Description du troisième macro-processus

', + 'io_elements' => '
  • un
  • deux
  • trois
  • quatre
', + 'security_need_c' => 2, + 'owner' => 'Nestor', + 'created_at' => '2020-11-24 09:21:38', + 'updated_at' => '2021-05-14 09:20:55', + 'deleted_at' => NULL, + 'security_need_i' => 2, + 'security_need_a' => 2, + 'security_need_t' => 2, + ), + 10 => + array ( + 'id' => 11, + 'name' => 'Macro-Processus 4', + 'description' => '

Description du macro processus quatre

', + 'io_elements' => '
  • crayon
  • stylos
  • gommes
', + 'security_need_c' => 1, + 'owner' => 'Pirre', + 'created_at' => '2021-05-14 09:19:51', + 'updated_at' => '2021-09-22 13:00:08', + 'deleted_at' => '2021-09-22 13:00:08', + 'security_need_i' => 1, + 'security_need_a' => 1, + 'security_need_t' => 1, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoManWanTableSeeder.php b/database/seeders/DemoManWanTableSeeder.php new file mode 100644 index 00000000..37788e49 --- /dev/null +++ b/database/seeders/DemoManWanTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoMansTableSeeder.php b/database/seeders/DemoMansTableSeeder.php new file mode 100644 index 00000000..27185382 --- /dev/null +++ b/database/seeders/DemoMansTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoMediaTableSeeder.php b/database/seeders/DemoMediaTableSeeder.php new file mode 100644 index 00000000..1a6c8eea --- /dev/null +++ b/database/seeders/DemoMediaTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoMigrationsTableSeeder.php b/database/seeders/DemoMigrationsTableSeeder.php new file mode 100644 index 00000000..022041f5 --- /dev/null +++ b/database/seeders/DemoMigrationsTableSeeder.php @@ -0,0 +1,1004 @@ +delete(); + + \DB::table('migrations')->insert(array ( + 0 => + array ( + 'id' => 1, + 'migration' => '2016_06_01_000001_create_oauth_auth_codes_table', + 'batch' => 1, + ), + 1 => + array ( + 'id' => 2, + 'migration' => '2016_06_01_000002_create_oauth_access_tokens_table', + 'batch' => 1, + ), + 2 => + array ( + 'id' => 3, + 'migration' => '2016_06_01_000003_create_oauth_refresh_tokens_table', + 'batch' => 1, + ), + 3 => + array ( + 'id' => 4, + 'migration' => '2016_06_01_000004_create_oauth_clients_table', + 'batch' => 1, + ), + 4 => + array ( + 'id' => 5, + 'migration' => '2016_06_01_000005_create_oauth_personal_access_clients_table', + 'batch' => 1, + ), + 5 => + array ( + 'id' => 6, + 'migration' => '2021_05_08_191249_create_activities_table', + 'batch' => 1, + ), + 6 => + array ( + 'id' => 7, + 'migration' => '2021_05_08_191249_create_activity_operation_table', + 'batch' => 1, + ), + 7 => + array ( + 'id' => 8, + 'migration' => '2021_05_08_191249_create_activity_process_table', + 'batch' => 1, + ), + 8 => + array ( + 'id' => 9, + 'migration' => '2021_05_08_191249_create_actor_operation_table', + 'batch' => 1, + ), + 9 => + array ( + 'id' => 10, + 'migration' => '2021_05_08_191249_create_actors_table', + 'batch' => 1, + ), + 10 => + array ( + 'id' => 11, + 'migration' => '2021_05_08_191249_create_annuaires_table', + 'batch' => 1, + ), + 11 => + array ( + 'id' => 12, + 'migration' => '2021_05_08_191249_create_application_blocks_table', + 'batch' => 1, + ), + 12 => + array ( + 'id' => 13, + 'migration' => '2021_05_08_191249_create_application_module_application_service_table', + 'batch' => 1, + ), + 13 => + array ( + 'id' => 14, + 'migration' => '2021_05_08_191249_create_application_modules_table', + 'batch' => 1, + ), + 14 => + array ( + 'id' => 15, + 'migration' => '2021_05_08_191249_create_application_service_m_application_table', + 'batch' => 1, + ), + 15 => + array ( + 'id' => 16, + 'migration' => '2021_05_08_191249_create_application_services_table', + 'batch' => 1, + ), + 16 => + array ( + 'id' => 17, + 'migration' => '2021_05_08_191249_create_audit_logs_table', + 'batch' => 1, + ), + 17 => + array ( + 'id' => 18, + 'migration' => '2021_05_08_191249_create_bay_wifi_terminal_table', + 'batch' => 1, + ), + 18 => + array ( + 'id' => 19, + 'migration' => '2021_05_08_191249_create_bays_table', + 'batch' => 1, + ), + 19 => + array ( + 'id' => 20, + 'migration' => '2021_05_08_191249_create_buildings_table', + 'batch' => 1, + ), + 20 => + array ( + 'id' => 21, + 'migration' => '2021_05_08_191249_create_database_entity_table', + 'batch' => 1, + ), + 21 => + array ( + 'id' => 22, + 'migration' => '2021_05_08_191249_create_database_information_table', + 'batch' => 1, + ), + 22 => + array ( + 'id' => 23, + 'migration' => '2021_05_08_191249_create_database_m_application_table', + 'batch' => 1, + ), + 23 => + array ( + 'id' => 24, + 'migration' => '2021_05_08_191249_create_databases_table', + 'batch' => 1, + ), + 24 => + array ( + 'id' => 25, + 'migration' => '2021_05_08_191249_create_dhcp_servers_table', + 'batch' => 1, + ), + 25 => + array ( + 'id' => 26, + 'migration' => '2021_05_08_191249_create_dnsservers_table', + 'batch' => 1, + ), + 26 => + array ( + 'id' => 27, + 'migration' => '2021_05_08_191249_create_domaine_ad_forest_ad_table', + 'batch' => 1, + ), + 27 => + array ( + 'id' => 28, + 'migration' => '2021_05_08_191249_create_domaine_ads_table', + 'batch' => 1, + ), + 28 => + array ( + 'id' => 29, + 'migration' => '2021_05_08_191249_create_entities_table', + 'batch' => 1, + ), + 29 => + array ( + 'id' => 30, + 'migration' => '2021_05_08_191249_create_entity_m_application_table', + 'batch' => 1, + ), + 30 => + array ( + 'id' => 31, + 'migration' => '2021_05_08_191249_create_entity_process_table', + 'batch' => 1, + ), + 31 => + array ( + 'id' => 32, + 'migration' => '2021_05_08_191249_create_external_connected_entities_table', + 'batch' => 1, + ), + 32 => + array ( + 'id' => 33, + 'migration' => '2021_05_08_191249_create_external_connected_entity_network_table', + 'batch' => 1, + ), + 33 => + array ( + 'id' => 34, + 'migration' => '2021_05_08_191249_create_fluxes_table', + 'batch' => 1, + ), + 34 => + array ( + 'id' => 35, + 'migration' => '2021_05_08_191249_create_forest_ads_table', + 'batch' => 1, + ), + 35 => + array ( + 'id' => 36, + 'migration' => '2021_05_08_191249_create_gateways_table', + 'batch' => 1, + ), + 36 => + array ( + 'id' => 37, + 'migration' => '2021_05_08_191249_create_information_process_table', + 'batch' => 1, + ), + 37 => + array ( + 'id' => 38, + 'migration' => '2021_05_08_191249_create_information_table', + 'batch' => 1, + ), + 38 => + array ( + 'id' => 39, + 'migration' => '2021_05_08_191249_create_lan_man_table', + 'batch' => 1, + ), + 39 => + array ( + 'id' => 40, + 'migration' => '2021_05_08_191249_create_lan_wan_table', + 'batch' => 1, + ), + 40 => + array ( + 'id' => 41, + 'migration' => '2021_05_08_191249_create_lans_table', + 'batch' => 1, + ), + 41 => + array ( + 'id' => 42, + 'migration' => '2021_05_08_191249_create_logical_server_m_application_table', + 'batch' => 1, + ), + 42 => + array ( + 'id' => 43, + 'migration' => '2021_05_08_191249_create_logical_server_physical_server_table', + 'batch' => 1, + ), + 43 => + array ( + 'id' => 44, + 'migration' => '2021_05_08_191249_create_logical_servers_table', + 'batch' => 1, + ), + 44 => + array ( + 'id' => 45, + 'migration' => '2021_05_08_191249_create_m_application_process_table', + 'batch' => 1, + ), + 45 => + array ( + 'id' => 46, + 'migration' => '2021_05_08_191249_create_m_applications_table', + 'batch' => 1, + ), + 46 => + array ( + 'id' => 47, + 'migration' => '2021_05_08_191249_create_macro_processuses_table', + 'batch' => 1, + ), + 47 => + array ( + 'id' => 48, + 'migration' => '2021_05_08_191249_create_man_wan_table', + 'batch' => 1, + ), + 48 => + array ( + 'id' => 49, + 'migration' => '2021_05_08_191249_create_mans_table', + 'batch' => 1, + ), + 49 => + array ( + 'id' => 50, + 'migration' => '2021_05_08_191249_create_media_table', + 'batch' => 1, + ), + 50 => + array ( + 'id' => 51, + 'migration' => '2021_05_08_191249_create_network_subnetword_table', + 'batch' => 1, + ), + 51 => + array ( + 'id' => 52, + 'migration' => '2021_05_08_191249_create_network_switches_table', + 'batch' => 1, + ), + 52 => + array ( + 'id' => 53, + 'migration' => '2021_05_08_191249_create_networks_table', + 'batch' => 1, + ), + 53 => + array ( + 'id' => 54, + 'migration' => '2021_05_08_191249_create_operation_task_table', + 'batch' => 1, + ), + 54 => + array ( + 'id' => 55, + 'migration' => '2021_05_08_191249_create_operations_table', + 'batch' => 1, + ), + 55 => + array ( + 'id' => 56, + 'migration' => '2021_05_08_191249_create_password_resets_table', + 'batch' => 1, + ), + 56 => + array ( + 'id' => 57, + 'migration' => '2021_05_08_191249_create_peripherals_table', + 'batch' => 1, + ), + 57 => + array ( + 'id' => 58, + 'migration' => '2021_05_08_191249_create_permission_role_table', + 'batch' => 1, + ), + 58 => + array ( + 'id' => 59, + 'migration' => '2021_05_08_191249_create_permissions_table', + 'batch' => 1, + ), + 59 => + array ( + 'id' => 60, + 'migration' => '2021_05_08_191249_create_phones_table', + 'batch' => 1, + ), + 60 => + array ( + 'id' => 61, + 'migration' => '2021_05_08_191249_create_physical_router_vlan_table', + 'batch' => 1, + ), + 61 => + array ( + 'id' => 62, + 'migration' => '2021_05_08_191249_create_physical_routers_table', + 'batch' => 1, + ), + 62 => + array ( + 'id' => 63, + 'migration' => '2021_05_08_191249_create_physical_security_devices_table', + 'batch' => 1, + ), + 63 => + array ( + 'id' => 64, + 'migration' => '2021_05_08_191249_create_physical_servers_table', + 'batch' => 1, + ), + 64 => + array ( + 'id' => 65, + 'migration' => '2021_05_08_191249_create_physical_switches_table', + 'batch' => 1, + ), + 65 => + array ( + 'id' => 66, + 'migration' => '2021_05_08_191249_create_processes_table', + 'batch' => 1, + ), + 66 => + array ( + 'id' => 67, + 'migration' => '2021_05_08_191249_create_relations_table', + 'batch' => 1, + ), + 67 => + array ( + 'id' => 68, + 'migration' => '2021_05_08_191249_create_role_user_table', + 'batch' => 1, + ), + 68 => + array ( + 'id' => 69, + 'migration' => '2021_05_08_191249_create_roles_table', + 'batch' => 1, + ), + 69 => + array ( + 'id' => 70, + 'migration' => '2021_05_08_191249_create_routers_table', + 'batch' => 1, + ), + 70 => + array ( + 'id' => 71, + 'migration' => '2021_05_08_191249_create_security_devices_table', + 'batch' => 1, + ), + 71 => + array ( + 'id' => 72, + 'migration' => '2021_05_08_191249_create_sites_table', + 'batch' => 1, + ), + 72 => + array ( + 'id' => 73, + 'migration' => '2021_05_08_191249_create_storage_devices_table', + 'batch' => 1, + ), + 73 => + array ( + 'id' => 74, + 'migration' => '2021_05_08_191249_create_subnetworks_table', + 'batch' => 1, + ), + 74 => + array ( + 'id' => 75, + 'migration' => '2021_05_08_191249_create_tasks_table', + 'batch' => 1, + ), + 75 => + array ( + 'id' => 76, + 'migration' => '2021_05_08_191249_create_users_table', + 'batch' => 1, + ), + 76 => + array ( + 'id' => 77, + 'migration' => '2021_05_08_191249_create_vlans_table', + 'batch' => 1, + ), + 77 => + array ( + 'id' => 78, + 'migration' => '2021_05_08_191249_create_wans_table', + 'batch' => 1, + ), + 78 => + array ( + 'id' => 79, + 'migration' => '2021_05_08_191249_create_wifi_terminals_table', + 'batch' => 1, + ), + 79 => + array ( + 'id' => 80, + 'migration' => '2021_05_08_191249_create_workstations_table', + 'batch' => 1, + ), + 80 => + array ( + 'id' => 81, + 'migration' => '2021_05_08_191249_create_zone_admins_table', + 'batch' => 1, + ), + 81 => + array ( + 'id' => 82, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_activity_operation_table', + 'batch' => 1, + ), + 82 => + array ( + 'id' => 83, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_activity_process_table', + 'batch' => 1, + ), + 83 => + array ( + 'id' => 84, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_actor_operation_table', + 'batch' => 1, + ), + 84 => + array ( + 'id' => 85, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_annuaires_table', + 'batch' => 1, + ), + 85 => + array ( + 'id' => 86, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_application_module_application_service_table', + 'batch' => 1, + ), + 86 => + array ( + 'id' => 87, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_application_service_m_application_table', + 'batch' => 1, + ), + 87 => + array ( + 'id' => 88, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_bay_wifi_terminal_table', + 'batch' => 1, + ), + 88 => + array ( + 'id' => 89, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_bays_table', + 'batch' => 1, + ), + 89 => + array ( + 'id' => 90, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_buildings_table', + 'batch' => 1, + ), + 90 => + array ( + 'id' => 91, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_database_entity_table', + 'batch' => 1, + ), + 91 => + array ( + 'id' => 92, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_database_information_table', + 'batch' => 1, + ), + 92 => + array ( + 'id' => 93, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_database_m_application_table', + 'batch' => 1, + ), + 93 => + array ( + 'id' => 94, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_databases_table', + 'batch' => 1, + ), + 94 => + array ( + 'id' => 95, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_domaine_ad_forest_ad_table', + 'batch' => 1, + ), + 95 => + array ( + 'id' => 96, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_entity_m_application_table', + 'batch' => 1, + ), + 96 => + array ( + 'id' => 97, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_entity_process_table', + 'batch' => 1, + ), + 97 => + array ( + 'id' => 98, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_external_connected_entity_network_table', + 'batch' => 1, + ), + 98 => + array ( + 'id' => 99, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_fluxes_table', + 'batch' => 1, + ), + 99 => + array ( + 'id' => 100, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_forest_ads_table', + 'batch' => 1, + ), + 100 => + array ( + 'id' => 101, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_information_process_table', + 'batch' => 1, + ), + 101 => + array ( + 'id' => 102, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_lan_man_table', + 'batch' => 1, + ), + 102 => + array ( + 'id' => 103, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_lan_wan_table', + 'batch' => 1, + ), + 103 => + array ( + 'id' => 104, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_logical_server_m_application_table', + 'batch' => 1, + ), + 104 => + array ( + 'id' => 105, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_logical_server_physical_server_table', + 'batch' => 1, + ), + 105 => + array ( + 'id' => 106, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_m_application_process_table', + 'batch' => 1, + ), + 106 => + array ( + 'id' => 107, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_m_applications_table', + 'batch' => 1, + ), + 107 => + array ( + 'id' => 108, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_man_wan_table', + 'batch' => 1, + ), + 108 => + array ( + 'id' => 109, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_network_subnetword_table', + 'batch' => 1, + ), + 109 => + array ( + 'id' => 110, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_operation_task_table', + 'batch' => 1, + ), + 110 => + array ( + 'id' => 111, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_peripherals_table', + 'batch' => 1, + ), + 111 => + array ( + 'id' => 112, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_permission_role_table', + 'batch' => 1, + ), + 112 => + array ( + 'id' => 113, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_phones_table', + 'batch' => 1, + ), + 113 => + array ( + 'id' => 114, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_physical_router_vlan_table', + 'batch' => 1, + ), + 114 => + array ( + 'id' => 115, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_physical_routers_table', + 'batch' => 1, + ), + 115 => + array ( + 'id' => 116, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_physical_security_devices_table', + 'batch' => 1, + ), + 116 => + array ( + 'id' => 117, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_physical_servers_table', + 'batch' => 1, + ), + 117 => + array ( + 'id' => 118, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_physical_switches_table', + 'batch' => 1, + ), + 118 => + array ( + 'id' => 119, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_processes_table', + 'batch' => 1, + ), + 119 => + array ( + 'id' => 120, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_relations_table', + 'batch' => 1, + ), + 120 => + array ( + 'id' => 121, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_role_user_table', + 'batch' => 1, + ), + 121 => + array ( + 'id' => 122, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_storage_devices_table', + 'batch' => 1, + ), + 122 => + array ( + 'id' => 123, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_subnetworks_table', + 'batch' => 1, + ), + 123 => + array ( + 'id' => 124, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_wifi_terminals_table', + 'batch' => 1, + ), + 124 => + array ( + 'id' => 125, + 'migration' => '2021_05_08_191251_add_foreign_keys_to_workstations_table', + 'batch' => 1, + ), + 125 => + array ( + 'id' => 126, + 'migration' => '2021_05_13_180642_add_cidt_criteria', + 'batch' => 1, + ), + 126 => + array ( + 'id' => 127, + 'migration' => '2021_05_19_161123_rename_subnetwork', + 'batch' => 1, + ), + 127 => + array ( + 'id' => 128, + 'migration' => '2021_06_22_170555_add_type', + 'batch' => 1, + ), + 128 => + array ( + 'id' => 129, + 'migration' => '2021_07_14_071311_create_certificates_table', + 'batch' => 1, + ), + 129 => + array ( + 'id' => 130, + 'migration' => '2021_08_08_125856_config_right', + 'batch' => 1, + ), + 130 => + array ( + 'id' => 131, + 'migration' => '2021_08_11_201624_certificate_application_link', + 'batch' => 1, + ), + 131 => + array ( + 'id' => 132, + 'migration' => '2021_08_18_171048_network_redesign', + 'batch' => 1, + ), + 132 => + array ( + 'id' => 133, + 'migration' => '2021_08_20_034757_default_gateway', + 'batch' => 1, + ), + 133 => + array ( + 'id' => 134, + 'migration' => '2021_08_28_152910_cleanup', + 'batch' => 1, + ), + 134 => + array ( + 'id' => 135, + 'migration' => '2021_09_19_125048_relation-inportance', + 'batch' => 1, + ), + 135 => + array ( + 'id' => 136, + 'migration' => '2021_09_21_161028_add_router_ip', + 'batch' => 1, + ), + 136 => + array ( + 'id' => 137, + 'migration' => '2021_09_22_114706_add_security_ciat', + 'batch' => 1, + ), + 137 => + array ( + 'id' => 138, + 'migration' => '2021_09_23_192127_rename_descrition', + 'batch' => 1, + ), + 138 => + array ( + 'id' => 139, + 'migration' => '2021_09_28_205405_add_direction_to_flows', + 'batch' => 1, + ), + 139 => + array ( + 'id' => 140, + 'migration' => '2021_10_12_210233_physical_router_name_type', + 'batch' => 1, + ), + 140 => + array ( + 'id' => 141, + 'migration' => '2021_10_19_102610_add_address_ip', + 'batch' => 1, + ), + 141 => + array ( + 'id' => 142, + 'migration' => '2021_11_23_204551_add_app_version', + 'batch' => 1, + ), + 142 => + array ( + 'id' => 143, + 'migration' => '2022_02_08_210603_create_cartographer_m_application_table', + 'batch' => 1, + ), + 143 => + array ( + 'id' => 144, + 'migration' => '2022_02_22_32654_add_cert_status', + 'batch' => 1, + ), + 144 => + array ( + 'id' => 145, + 'migration' => '2022_02_27_162738_add_functional_referent_to_m_application', + 'batch' => 1, + ), + 145 => + array ( + 'id' => 146, + 'migration' => '2022_02_27_163129_add_editor_to_m_application', + 'batch' => 1, + ), + 146 => + array ( + 'id' => 147, + 'migration' => '2022_02_27_192155_add_date_fields_to_m_application', + 'batch' => 1, + ), + 147 => + array ( + 'id' => 148, + 'migration' => '2022_02_28_205630_create_m_application_event_table', + 'batch' => 1, + ), + 148 => + array ( + 'id' => 149, + 'migration' => '2022_05_02_123756_add_update_to_logical_servers', + 'batch' => 1, + ), + 149 => + array ( + 'id' => 150, + 'migration' => '2022_05_18_140331_add_is_external_column_to_entities', + 'batch' => 1, + ), + 150 => + array ( + 'id' => 151, + 'migration' => '2022_05_21_103208_add_type_property_to_entities', + 'batch' => 1, + ), + 151 => + array ( + 'id' => 152, + 'migration' => '2022_06_27_061444_application_workstation', + 'batch' => 1, + ), + 152 => + array ( + 'id' => 153, + 'migration' => '2022_07_28_105153_add_link_operation_process', + 'batch' => 1, + ), + 153 => + array ( + 'id' => 154, + 'migration' => '2022_08_11_165441_add_vpn_fields', + 'batch' => 1, + ), + 154 => + array ( + 'id' => 155, + 'migration' => '2022_09_13_204845_cert_last_notification', + 'batch' => 1, + ), + 155 => + array ( + 'id' => 156, + 'migration' => '2022_12_17_115624_rto_rpo', + 'batch' => 1, + ), + 156 => + array ( + 'id' => 157, + 'migration' => '2023_01_03_205224_database_logical_server', + 'batch' => 1, + ), + 157 => + array ( + 'id' => 158, + 'migration' => '2023_01_08_123726_add_physical_link', + 'batch' => 1, + ), + 158 => + array ( + 'id' => 159, + 'migration' => '2023_01_27_165009_add_flux_nature', + 'batch' => 1, + ), + 159 => + array ( + 'id' => 160, + 'migration' => '2023_01_28_145242_add_logical_devices_link', + 'batch' => 1, + ), + 160 => + array ( + 'id' => 161, + 'migration' => '2023_02_09_164940_gdpr', + 'batch' => 1, + ), + 161 => + array ( + 'id' => 162, + 'migration' => '2023_03_16_123031_create_documents_table', + 'batch' => 1, + ), + 162 => + array ( + 'id' => 163, + 'migration' => '2023_03_22_185812_create_cpe', + 'batch' => 1, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoNetworkSwitchesTableSeeder.php b/database/seeders/DemoNetworkSwitchesTableSeeder.php new file mode 100644 index 00000000..122c935f --- /dev/null +++ b/database/seeders/DemoNetworkSwitchesTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoNetworksTableSeeder.php b/database/seeders/DemoNetworksTableSeeder.php new file mode 100644 index 00000000..5c6a8666 --- /dev/null +++ b/database/seeders/DemoNetworksTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoOauthAccessTokensTableSeeder.php b/database/seeders/DemoOauthAccessTokensTableSeeder.php new file mode 100644 index 00000000..0371c0e3 --- /dev/null +++ b/database/seeders/DemoOauthAccessTokensTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoOauthAuthCodesTableSeeder.php b/database/seeders/DemoOauthAuthCodesTableSeeder.php new file mode 100644 index 00000000..aed74b7a --- /dev/null +++ b/database/seeders/DemoOauthAuthCodesTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoOauthClientsTableSeeder.php b/database/seeders/DemoOauthClientsTableSeeder.php new file mode 100644 index 00000000..cde8d24b --- /dev/null +++ b/database/seeders/DemoOauthClientsTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoOauthPersonalAccessClientsTableSeeder.php b/database/seeders/DemoOauthPersonalAccessClientsTableSeeder.php new file mode 100644 index 00000000..23f5ecc6 --- /dev/null +++ b/database/seeders/DemoOauthPersonalAccessClientsTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoOauthRefreshTokensTableSeeder.php b/database/seeders/DemoOauthRefreshTokensTableSeeder.php new file mode 100644 index 00000000..6560be5c --- /dev/null +++ b/database/seeders/DemoOauthRefreshTokensTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoOperationTaskTableSeeder.php b/database/seeders/DemoOperationTaskTableSeeder.php new file mode 100644 index 00000000..1fd96782 --- /dev/null +++ b/database/seeders/DemoOperationTaskTableSeeder.php @@ -0,0 +1,66 @@ +delete(); + + \DB::table('operation_task')->insert(array ( + 0 => + array ( + 'operation_id' => 1, + 'task_id' => 1, + ), + 1 => + array ( + 'operation_id' => 1, + 'task_id' => 2, + ), + 2 => + array ( + 'operation_id' => 2, + 'task_id' => 1, + ), + 3 => + array ( + 'operation_id' => 3, + 'task_id' => 3, + ), + 4 => + array ( + 'operation_id' => 4, + 'task_id' => 2, + ), + 5 => + array ( + 'operation_id' => 5, + 'task_id' => 1, + ), + 6 => + array ( + 'operation_id' => 5, + 'task_id' => 2, + ), + 7 => + array ( + 'operation_id' => 5, + 'task_id' => 3, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoOperationsTableSeeder.php b/database/seeders/DemoOperationsTableSeeder.php new file mode 100644 index 00000000..ec8e03e8 --- /dev/null +++ b/database/seeders/DemoOperationsTableSeeder.php @@ -0,0 +1,76 @@ +delete(); + + \DB::table('operations')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => 'Operation 1', + 'description' => '

Description de l\'opération

', + 'created_at' => '2020-06-13 02:02:42', + 'updated_at' => '2020-06-13 02:02:42', + 'deleted_at' => NULL, + 'process_id' => NULL, + ), + 1 => + array ( + 'id' => 2, + 'name' => 'Operation 2', + 'description' => '

Description de l\'opération

', + 'created_at' => '2020-06-13 02:02:58', + 'updated_at' => '2020-06-13 02:02:58', + 'deleted_at' => NULL, + 'process_id' => NULL, + ), + 2 => + array ( + 'id' => 3, + 'name' => 'Operation 3', + 'description' => '

Desciption de l\'opération

', + 'created_at' => '2020-06-13 02:03:11', + 'updated_at' => '2020-07-15 16:34:52', + 'deleted_at' => NULL, + 'process_id' => NULL, + ), + 3 => + array ( + 'id' => 4, + 'name' => 'Operation 4', + 'description' => NULL, + 'created_at' => '2020-07-15 16:34:02', + 'updated_at' => '2020-07-15 16:34:02', + 'deleted_at' => NULL, + 'process_id' => NULL, + ), + 4 => + array ( + 'id' => 5, + 'name' => 'Master operation', + 'description' => '

Opération maitre

', + 'created_at' => '2020-08-15 06:01:40', + 'updated_at' => '2020-08-15 06:01:40', + 'deleted_at' => NULL, + 'process_id' => NULL, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoPasswordResetsTableSeeder.php b/database/seeders/DemoPasswordResetsTableSeeder.php new file mode 100644 index 00000000..7ee39d2b --- /dev/null +++ b/database/seeders/DemoPasswordResetsTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoPeripheralsTableSeeder.php b/database/seeders/DemoPeripheralsTableSeeder.php new file mode 100644 index 00000000..2a651eb4 --- /dev/null +++ b/database/seeders/DemoPeripheralsTableSeeder.php @@ -0,0 +1,77 @@ +delete(); + + \DB::table('peripherals')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => 'PER_01', + 'type' => 'IBM 3400', + 'description' => '

important peripheral

', + 'responsible' => 'Marcel', + 'created_at' => '2020-07-25 08:18:40', + 'updated_at' => '2020-07-25 08:19:46', + 'deleted_at' => NULL, + 'site_id' => 1, + 'building_id' => 2, + 'bay_id' => NULL, + 'vendor' => NULL, + 'product' => NULL, + 'version' => NULL, + ), + 1 => + array ( + 'id' => 2, + 'name' => 'PER_02', + 'type' => 'IBM 5600', + 'description' => '

Description

', + 'responsible' => 'Nestor', + 'created_at' => '2020-07-25 08:19:18', + 'updated_at' => '2020-07-25 08:19:18', + 'deleted_at' => NULL, + 'site_id' => 3, + 'building_id' => 5, + 'bay_id' => NULL, + 'vendor' => NULL, + 'product' => NULL, + 'version' => NULL, + ), + 2 => + array ( + 'id' => 3, + 'name' => 'PER_03', + 'type' => 'HAL 8100', + 'description' => '

Space device

', + 'responsible' => 'Niel', + 'created_at' => '2020-07-25 08:19:58', + 'updated_at' => '2020-07-25 08:20:18', + 'deleted_at' => NULL, + 'site_id' => 3, + 'building_id' => 4, + 'bay_id' => NULL, + 'vendor' => NULL, + 'product' => NULL, + 'version' => NULL, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoPermissionRoleTableSeeder.php b/database/seeders/DemoPermissionRoleTableSeeder.php new file mode 100644 index 00000000..fd2971c2 --- /dev/null +++ b/database/seeders/DemoPermissionRoleTableSeeder.php @@ -0,0 +1,3298 @@ +delete(); + + \DB::table('permission_role')->insert(array ( + 0 => + array ( + 'role_id' => 1, + 'permission_id' => 1, + ), + 1 => + array ( + 'role_id' => 1, + 'permission_id' => 2, + ), + 2 => + array ( + 'role_id' => 1, + 'permission_id' => 3, + ), + 3 => + array ( + 'role_id' => 1, + 'permission_id' => 4, + ), + 4 => + array ( + 'role_id' => 1, + 'permission_id' => 5, + ), + 5 => + array ( + 'role_id' => 1, + 'permission_id' => 6, + ), + 6 => + array ( + 'role_id' => 1, + 'permission_id' => 7, + ), + 7 => + array ( + 'role_id' => 1, + 'permission_id' => 8, + ), + 8 => + array ( + 'role_id' => 1, + 'permission_id' => 9, + ), + 9 => + array ( + 'role_id' => 1, + 'permission_id' => 10, + ), + 10 => + array ( + 'role_id' => 1, + 'permission_id' => 11, + ), + 11 => + array ( + 'role_id' => 1, + 'permission_id' => 12, + ), + 12 => + array ( + 'role_id' => 1, + 'permission_id' => 13, + ), + 13 => + array ( + 'role_id' => 1, + 'permission_id' => 14, + ), + 14 => + array ( + 'role_id' => 1, + 'permission_id' => 15, + ), + 15 => + array ( + 'role_id' => 1, + 'permission_id' => 16, + ), + 16 => + array ( + 'role_id' => 1, + 'permission_id' => 17, + ), + 17 => + array ( + 'role_id' => 1, + 'permission_id' => 18, + ), + 18 => + array ( + 'role_id' => 1, + 'permission_id' => 19, + ), + 19 => + array ( + 'role_id' => 1, + 'permission_id' => 20, + ), + 20 => + array ( + 'role_id' => 1, + 'permission_id' => 21, + ), + 21 => + array ( + 'role_id' => 1, + 'permission_id' => 22, + ), + 22 => + array ( + 'role_id' => 1, + 'permission_id' => 23, + ), + 23 => + array ( + 'role_id' => 1, + 'permission_id' => 24, + ), + 24 => + array ( + 'role_id' => 1, + 'permission_id' => 25, + ), + 25 => + array ( + 'role_id' => 1, + 'permission_id' => 26, + ), + 26 => + array ( + 'role_id' => 1, + 'permission_id' => 27, + ), + 27 => + array ( + 'role_id' => 1, + 'permission_id' => 28, + ), + 28 => + array ( + 'role_id' => 1, + 'permission_id' => 29, + ), + 29 => + array ( + 'role_id' => 1, + 'permission_id' => 30, + ), + 30 => + array ( + 'role_id' => 1, + 'permission_id' => 31, + ), + 31 => + array ( + 'role_id' => 1, + 'permission_id' => 32, + ), + 32 => + array ( + 'role_id' => 1, + 'permission_id' => 33, + ), + 33 => + array ( + 'role_id' => 1, + 'permission_id' => 34, + ), + 34 => + array ( + 'role_id' => 1, + 'permission_id' => 35, + ), + 35 => + array ( + 'role_id' => 1, + 'permission_id' => 36, + ), + 36 => + array ( + 'role_id' => 1, + 'permission_id' => 37, + ), + 37 => + array ( + 'role_id' => 1, + 'permission_id' => 38, + ), + 38 => + array ( + 'role_id' => 1, + 'permission_id' => 39, + ), + 39 => + array ( + 'role_id' => 1, + 'permission_id' => 40, + ), + 40 => + array ( + 'role_id' => 1, + 'permission_id' => 41, + ), + 41 => + array ( + 'role_id' => 1, + 'permission_id' => 42, + ), + 42 => + array ( + 'role_id' => 1, + 'permission_id' => 43, + ), + 43 => + array ( + 'role_id' => 1, + 'permission_id' => 44, + ), + 44 => + array ( + 'role_id' => 1, + 'permission_id' => 45, + ), + 45 => + array ( + 'role_id' => 1, + 'permission_id' => 46, + ), + 46 => + array ( + 'role_id' => 1, + 'permission_id' => 47, + ), + 47 => + array ( + 'role_id' => 1, + 'permission_id' => 48, + ), + 48 => + array ( + 'role_id' => 1, + 'permission_id' => 49, + ), + 49 => + array ( + 'role_id' => 1, + 'permission_id' => 50, + ), + 50 => + array ( + 'role_id' => 1, + 'permission_id' => 51, + ), + 51 => + array ( + 'role_id' => 1, + 'permission_id' => 52, + ), + 52 => + array ( + 'role_id' => 1, + 'permission_id' => 53, + ), + 53 => + array ( + 'role_id' => 1, + 'permission_id' => 54, + ), + 54 => + array ( + 'role_id' => 1, + 'permission_id' => 55, + ), + 55 => + array ( + 'role_id' => 1, + 'permission_id' => 56, + ), + 56 => + array ( + 'role_id' => 1, + 'permission_id' => 57, + ), + 57 => + array ( + 'role_id' => 1, + 'permission_id' => 58, + ), + 58 => + array ( + 'role_id' => 1, + 'permission_id' => 59, + ), + 59 => + array ( + 'role_id' => 1, + 'permission_id' => 60, + ), + 60 => + array ( + 'role_id' => 1, + 'permission_id' => 61, + ), + 61 => + array ( + 'role_id' => 1, + 'permission_id' => 62, + ), + 62 => + array ( + 'role_id' => 1, + 'permission_id' => 63, + ), + 63 => + array ( + 'role_id' => 1, + 'permission_id' => 64, + ), + 64 => + array ( + 'role_id' => 1, + 'permission_id' => 65, + ), + 65 => + array ( + 'role_id' => 1, + 'permission_id' => 66, + ), + 66 => + array ( + 'role_id' => 1, + 'permission_id' => 67, + ), + 67 => + array ( + 'role_id' => 1, + 'permission_id' => 68, + ), + 68 => + array ( + 'role_id' => 1, + 'permission_id' => 69, + ), + 69 => + array ( + 'role_id' => 1, + 'permission_id' => 70, + ), + 70 => + array ( + 'role_id' => 1, + 'permission_id' => 71, + ), + 71 => + array ( + 'role_id' => 1, + 'permission_id' => 72, + ), + 72 => + array ( + 'role_id' => 1, + 'permission_id' => 73, + ), + 73 => + array ( + 'role_id' => 1, + 'permission_id' => 74, + ), + 74 => + array ( + 'role_id' => 1, + 'permission_id' => 75, + ), + 75 => + array ( + 'role_id' => 1, + 'permission_id' => 76, + ), + 76 => + array ( + 'role_id' => 1, + 'permission_id' => 77, + ), + 77 => + array ( + 'role_id' => 1, + 'permission_id' => 78, + ), + 78 => + array ( + 'role_id' => 1, + 'permission_id' => 79, + ), + 79 => + array ( + 'role_id' => 1, + 'permission_id' => 80, + ), + 80 => + array ( + 'role_id' => 1, + 'permission_id' => 81, + ), + 81 => + array ( + 'role_id' => 1, + 'permission_id' => 82, + ), + 82 => + array ( + 'role_id' => 1, + 'permission_id' => 83, + ), + 83 => + array ( + 'role_id' => 1, + 'permission_id' => 84, + ), + 84 => + array ( + 'role_id' => 1, + 'permission_id' => 85, + ), + 85 => + array ( + 'role_id' => 1, + 'permission_id' => 86, + ), + 86 => + array ( + 'role_id' => 1, + 'permission_id' => 87, + ), + 87 => + array ( + 'role_id' => 1, + 'permission_id' => 88, + ), + 88 => + array ( + 'role_id' => 1, + 'permission_id' => 89, + ), + 89 => + array ( + 'role_id' => 1, + 'permission_id' => 90, + ), + 90 => + array ( + 'role_id' => 1, + 'permission_id' => 91, + ), + 91 => + array ( + 'role_id' => 1, + 'permission_id' => 92, + ), + 92 => + array ( + 'role_id' => 1, + 'permission_id' => 93, + ), + 93 => + array ( + 'role_id' => 1, + 'permission_id' => 94, + ), + 94 => + array ( + 'role_id' => 1, + 'permission_id' => 95, + ), + 95 => + array ( + 'role_id' => 1, + 'permission_id' => 96, + ), + 96 => + array ( + 'role_id' => 1, + 'permission_id' => 97, + ), + 97 => + array ( + 'role_id' => 1, + 'permission_id' => 98, + ), + 98 => + array ( + 'role_id' => 1, + 'permission_id' => 99, + ), + 99 => + array ( + 'role_id' => 1, + 'permission_id' => 100, + ), + 100 => + array ( + 'role_id' => 1, + 'permission_id' => 101, + ), + 101 => + array ( + 'role_id' => 1, + 'permission_id' => 102, + ), + 102 => + array ( + 'role_id' => 1, + 'permission_id' => 103, + ), + 103 => + array ( + 'role_id' => 1, + 'permission_id' => 104, + ), + 104 => + array ( + 'role_id' => 1, + 'permission_id' => 105, + ), + 105 => + array ( + 'role_id' => 1, + 'permission_id' => 106, + ), + 106 => + array ( + 'role_id' => 1, + 'permission_id' => 107, + ), + 107 => + array ( + 'role_id' => 1, + 'permission_id' => 108, + ), + 108 => + array ( + 'role_id' => 1, + 'permission_id' => 109, + ), + 109 => + array ( + 'role_id' => 1, + 'permission_id' => 110, + ), + 110 => + array ( + 'role_id' => 1, + 'permission_id' => 111, + ), + 111 => + array ( + 'role_id' => 1, + 'permission_id' => 112, + ), + 112 => + array ( + 'role_id' => 1, + 'permission_id' => 113, + ), + 113 => + array ( + 'role_id' => 1, + 'permission_id' => 114, + ), + 114 => + array ( + 'role_id' => 1, + 'permission_id' => 115, + ), + 115 => + array ( + 'role_id' => 1, + 'permission_id' => 116, + ), + 116 => + array ( + 'role_id' => 1, + 'permission_id' => 117, + ), + 117 => + array ( + 'role_id' => 1, + 'permission_id' => 118, + ), + 118 => + array ( + 'role_id' => 1, + 'permission_id' => 119, + ), + 119 => + array ( + 'role_id' => 1, + 'permission_id' => 120, + ), + 120 => + array ( + 'role_id' => 1, + 'permission_id' => 121, + ), + 121 => + array ( + 'role_id' => 1, + 'permission_id' => 122, + ), + 122 => + array ( + 'role_id' => 1, + 'permission_id' => 123, + ), + 123 => + array ( + 'role_id' => 1, + 'permission_id' => 124, + ), + 124 => + array ( + 'role_id' => 1, + 'permission_id' => 125, + ), + 125 => + array ( + 'role_id' => 1, + 'permission_id' => 126, + ), + 126 => + array ( + 'role_id' => 1, + 'permission_id' => 127, + ), + 127 => + array ( + 'role_id' => 1, + 'permission_id' => 128, + ), + 128 => + array ( + 'role_id' => 1, + 'permission_id' => 129, + ), + 129 => + array ( + 'role_id' => 1, + 'permission_id' => 130, + ), + 130 => + array ( + 'role_id' => 1, + 'permission_id' => 131, + ), + 131 => + array ( + 'role_id' => 1, + 'permission_id' => 132, + ), + 132 => + array ( + 'role_id' => 1, + 'permission_id' => 133, + ), + 133 => + array ( + 'role_id' => 1, + 'permission_id' => 134, + ), + 134 => + array ( + 'role_id' => 1, + 'permission_id' => 135, + ), + 135 => + array ( + 'role_id' => 1, + 'permission_id' => 136, + ), + 136 => + array ( + 'role_id' => 1, + 'permission_id' => 137, + ), + 137 => + array ( + 'role_id' => 1, + 'permission_id' => 138, + ), + 138 => + array ( + 'role_id' => 1, + 'permission_id' => 139, + ), + 139 => + array ( + 'role_id' => 1, + 'permission_id' => 140, + ), + 140 => + array ( + 'role_id' => 1, + 'permission_id' => 141, + ), + 141 => + array ( + 'role_id' => 1, + 'permission_id' => 142, + ), + 142 => + array ( + 'role_id' => 1, + 'permission_id' => 143, + ), + 143 => + array ( + 'role_id' => 1, + 'permission_id' => 144, + ), + 144 => + array ( + 'role_id' => 1, + 'permission_id' => 145, + ), + 145 => + array ( + 'role_id' => 1, + 'permission_id' => 146, + ), + 146 => + array ( + 'role_id' => 1, + 'permission_id' => 147, + ), + 147 => + array ( + 'role_id' => 1, + 'permission_id' => 148, + ), + 148 => + array ( + 'role_id' => 1, + 'permission_id' => 149, + ), + 149 => + array ( + 'role_id' => 1, + 'permission_id' => 150, + ), + 150 => + array ( + 'role_id' => 1, + 'permission_id' => 151, + ), + 151 => + array ( + 'role_id' => 1, + 'permission_id' => 152, + ), + 152 => + array ( + 'role_id' => 1, + 'permission_id' => 153, + ), + 153 => + array ( + 'role_id' => 1, + 'permission_id' => 154, + ), + 154 => + array ( + 'role_id' => 1, + 'permission_id' => 155, + ), + 155 => + array ( + 'role_id' => 1, + 'permission_id' => 156, + ), + 156 => + array ( + 'role_id' => 1, + 'permission_id' => 157, + ), + 157 => + array ( + 'role_id' => 1, + 'permission_id' => 158, + ), + 158 => + array ( + 'role_id' => 1, + 'permission_id' => 159, + ), + 159 => + array ( + 'role_id' => 1, + 'permission_id' => 160, + ), + 160 => + array ( + 'role_id' => 1, + 'permission_id' => 161, + ), + 161 => + array ( + 'role_id' => 1, + 'permission_id' => 162, + ), + 162 => + array ( + 'role_id' => 1, + 'permission_id' => 163, + ), + 163 => + array ( + 'role_id' => 1, + 'permission_id' => 164, + ), + 164 => + array ( + 'role_id' => 1, + 'permission_id' => 165, + ), + 165 => + array ( + 'role_id' => 1, + 'permission_id' => 166, + ), + 166 => + array ( + 'role_id' => 1, + 'permission_id' => 167, + ), + 167 => + array ( + 'role_id' => 1, + 'permission_id' => 168, + ), + 168 => + array ( + 'role_id' => 1, + 'permission_id' => 169, + ), + 169 => + array ( + 'role_id' => 1, + 'permission_id' => 170, + ), + 170 => + array ( + 'role_id' => 1, + 'permission_id' => 171, + ), + 171 => + array ( + 'role_id' => 1, + 'permission_id' => 172, + ), + 172 => + array ( + 'role_id' => 1, + 'permission_id' => 173, + ), + 173 => + array ( + 'role_id' => 1, + 'permission_id' => 174, + ), + 174 => + array ( + 'role_id' => 1, + 'permission_id' => 175, + ), + 175 => + array ( + 'role_id' => 1, + 'permission_id' => 176, + ), + 176 => + array ( + 'role_id' => 1, + 'permission_id' => 177, + ), + 177 => + array ( + 'role_id' => 1, + 'permission_id' => 178, + ), + 178 => + array ( + 'role_id' => 1, + 'permission_id' => 179, + ), + 179 => + array ( + 'role_id' => 1, + 'permission_id' => 180, + ), + 180 => + array ( + 'role_id' => 1, + 'permission_id' => 181, + ), + 181 => + array ( + 'role_id' => 1, + 'permission_id' => 182, + ), + 182 => + array ( + 'role_id' => 1, + 'permission_id' => 183, + ), + 183 => + array ( + 'role_id' => 1, + 'permission_id' => 184, + ), + 184 => + array ( + 'role_id' => 1, + 'permission_id' => 185, + ), + 185 => + array ( + 'role_id' => 1, + 'permission_id' => 186, + ), + 186 => + array ( + 'role_id' => 1, + 'permission_id' => 187, + ), + 187 => + array ( + 'role_id' => 1, + 'permission_id' => 188, + ), + 188 => + array ( + 'role_id' => 1, + 'permission_id' => 189, + ), + 189 => + array ( + 'role_id' => 1, + 'permission_id' => 190, + ), + 190 => + array ( + 'role_id' => 1, + 'permission_id' => 191, + ), + 191 => + array ( + 'role_id' => 1, + 'permission_id' => 192, + ), + 192 => + array ( + 'role_id' => 1, + 'permission_id' => 193, + ), + 193 => + array ( + 'role_id' => 1, + 'permission_id' => 194, + ), + 194 => + array ( + 'role_id' => 1, + 'permission_id' => 195, + ), + 195 => + array ( + 'role_id' => 1, + 'permission_id' => 196, + ), + 196 => + array ( + 'role_id' => 1, + 'permission_id' => 197, + ), + 197 => + array ( + 'role_id' => 1, + 'permission_id' => 198, + ), + 198 => + array ( + 'role_id' => 1, + 'permission_id' => 199, + ), + 199 => + array ( + 'role_id' => 1, + 'permission_id' => 200, + ), + 200 => + array ( + 'role_id' => 1, + 'permission_id' => 201, + ), + 201 => + array ( + 'role_id' => 1, + 'permission_id' => 202, + ), + 202 => + array ( + 'role_id' => 1, + 'permission_id' => 203, + ), + 203 => + array ( + 'role_id' => 1, + 'permission_id' => 204, + ), + 204 => + array ( + 'role_id' => 1, + 'permission_id' => 205, + ), + 205 => + array ( + 'role_id' => 1, + 'permission_id' => 206, + ), + 206 => + array ( + 'role_id' => 1, + 'permission_id' => 207, + ), + 207 => + array ( + 'role_id' => 1, + 'permission_id' => 208, + ), + 208 => + array ( + 'role_id' => 1, + 'permission_id' => 209, + ), + 209 => + array ( + 'role_id' => 1, + 'permission_id' => 210, + ), + 210 => + array ( + 'role_id' => 1, + 'permission_id' => 211, + ), + 211 => + array ( + 'role_id' => 1, + 'permission_id' => 212, + ), + 212 => + array ( + 'role_id' => 1, + 'permission_id' => 213, + ), + 213 => + array ( + 'role_id' => 1, + 'permission_id' => 214, + ), + 214 => + array ( + 'role_id' => 1, + 'permission_id' => 215, + ), + 215 => + array ( + 'role_id' => 1, + 'permission_id' => 216, + ), + 216 => + array ( + 'role_id' => 1, + 'permission_id' => 217, + ), + 217 => + array ( + 'role_id' => 1, + 'permission_id' => 218, + ), + 218 => + array ( + 'role_id' => 1, + 'permission_id' => 219, + ), + 219 => + array ( + 'role_id' => 1, + 'permission_id' => 220, + ), + 220 => + array ( + 'role_id' => 1, + 'permission_id' => 221, + ), + 221 => + array ( + 'role_id' => 1, + 'permission_id' => 222, + ), + 222 => + array ( + 'role_id' => 1, + 'permission_id' => 223, + ), + 223 => + array ( + 'role_id' => 1, + 'permission_id' => 224, + ), + 224 => + array ( + 'role_id' => 1, + 'permission_id' => 225, + ), + 225 => + array ( + 'role_id' => 1, + 'permission_id' => 226, + ), + 226 => + array ( + 'role_id' => 1, + 'permission_id' => 227, + ), + 227 => + array ( + 'role_id' => 1, + 'permission_id' => 228, + ), + 228 => + array ( + 'role_id' => 1, + 'permission_id' => 229, + ), + 229 => + array ( + 'role_id' => 1, + 'permission_id' => 230, + ), + 230 => + array ( + 'role_id' => 1, + 'permission_id' => 231, + ), + 231 => + array ( + 'role_id' => 1, + 'permission_id' => 232, + ), + 232 => + array ( + 'role_id' => 1, + 'permission_id' => 233, + ), + 233 => + array ( + 'role_id' => 1, + 'permission_id' => 234, + ), + 234 => + array ( + 'role_id' => 1, + 'permission_id' => 235, + ), + 235 => + array ( + 'role_id' => 1, + 'permission_id' => 236, + ), + 236 => + array ( + 'role_id' => 1, + 'permission_id' => 237, + ), + 237 => + array ( + 'role_id' => 1, + 'permission_id' => 238, + ), + 238 => + array ( + 'role_id' => 1, + 'permission_id' => 239, + ), + 239 => + array ( + 'role_id' => 1, + 'permission_id' => 240, + ), + 240 => + array ( + 'role_id' => 1, + 'permission_id' => 241, + ), + 241 => + array ( + 'role_id' => 1, + 'permission_id' => 242, + ), + 242 => + array ( + 'role_id' => 1, + 'permission_id' => 243, + ), + 243 => + array ( + 'role_id' => 1, + 'permission_id' => 244, + ), + 244 => + array ( + 'role_id' => 1, + 'permission_id' => 245, + ), + 245 => + array ( + 'role_id' => 1, + 'permission_id' => 246, + ), + 246 => + array ( + 'role_id' => 1, + 'permission_id' => 247, + ), + 247 => + array ( + 'role_id' => 1, + 'permission_id' => 248, + ), + 248 => + array ( + 'role_id' => 1, + 'permission_id' => 249, + ), + 249 => + array ( + 'role_id' => 1, + 'permission_id' => 250, + ), + 250 => + array ( + 'role_id' => 1, + 'permission_id' => 251, + ), + 251 => + array ( + 'role_id' => 1, + 'permission_id' => 252, + ), + 252 => + array ( + 'role_id' => 1, + 'permission_id' => 253, + ), + 253 => + array ( + 'role_id' => 1, + 'permission_id' => 254, + ), + 254 => + array ( + 'role_id' => 1, + 'permission_id' => 255, + ), + 255 => + array ( + 'role_id' => 1, + 'permission_id' => 256, + ), + 256 => + array ( + 'role_id' => 1, + 'permission_id' => 257, + ), + 257 => + array ( + 'role_id' => 1, + 'permission_id' => 258, + ), + 258 => + array ( + 'role_id' => 1, + 'permission_id' => 259, + ), + 259 => + array ( + 'role_id' => 1, + 'permission_id' => 260, + ), + 260 => + array ( + 'role_id' => 1, + 'permission_id' => 261, + ), + 261 => + array ( + 'role_id' => 1, + 'permission_id' => 262, + ), + 262 => + array ( + 'role_id' => 1, + 'permission_id' => 263, + ), + 263 => + array ( + 'role_id' => 1, + 'permission_id' => 264, + ), + 264 => + array ( + 'role_id' => 1, + 'permission_id' => 265, + ), + 265 => + array ( + 'role_id' => 1, + 'permission_id' => 266, + ), + 266 => + array ( + 'role_id' => 1, + 'permission_id' => 267, + ), + 267 => + array ( + 'role_id' => 2, + 'permission_id' => 17, + ), + 268 => + array ( + 'role_id' => 2, + 'permission_id' => 18, + ), + 269 => + array ( + 'role_id' => 2, + 'permission_id' => 19, + ), + 270 => + array ( + 'role_id' => 2, + 'permission_id' => 20, + ), + 271 => + array ( + 'role_id' => 2, + 'permission_id' => 21, + ), + 272 => + array ( + 'role_id' => 2, + 'permission_id' => 22, + ), + 273 => + array ( + 'role_id' => 2, + 'permission_id' => 23, + ), + 274 => + array ( + 'role_id' => 2, + 'permission_id' => 24, + ), + 275 => + array ( + 'role_id' => 2, + 'permission_id' => 25, + ), + 276 => + array ( + 'role_id' => 2, + 'permission_id' => 26, + ), + 277 => + array ( + 'role_id' => 2, + 'permission_id' => 27, + ), + 278 => + array ( + 'role_id' => 2, + 'permission_id' => 28, + ), + 279 => + array ( + 'role_id' => 2, + 'permission_id' => 29, + ), + 280 => + array ( + 'role_id' => 2, + 'permission_id' => 30, + ), + 281 => + array ( + 'role_id' => 2, + 'permission_id' => 31, + ), + 282 => + array ( + 'role_id' => 2, + 'permission_id' => 32, + ), + 283 => + array ( + 'role_id' => 2, + 'permission_id' => 33, + ), + 284 => + array ( + 'role_id' => 2, + 'permission_id' => 34, + ), + 285 => + array ( + 'role_id' => 2, + 'permission_id' => 35, + ), + 286 => + array ( + 'role_id' => 2, + 'permission_id' => 36, + ), + 287 => + array ( + 'role_id' => 2, + 'permission_id' => 37, + ), + 288 => + array ( + 'role_id' => 2, + 'permission_id' => 38, + ), + 289 => + array ( + 'role_id' => 2, + 'permission_id' => 39, + ), + 290 => + array ( + 'role_id' => 2, + 'permission_id' => 40, + ), + 291 => + array ( + 'role_id' => 2, + 'permission_id' => 41, + ), + 292 => + array ( + 'role_id' => 2, + 'permission_id' => 42, + ), + 293 => + array ( + 'role_id' => 2, + 'permission_id' => 43, + ), + 294 => + array ( + 'role_id' => 2, + 'permission_id' => 44, + ), + 295 => + array ( + 'role_id' => 2, + 'permission_id' => 45, + ), + 296 => + array ( + 'role_id' => 2, + 'permission_id' => 46, + ), + 297 => + array ( + 'role_id' => 2, + 'permission_id' => 47, + ), + 298 => + array ( + 'role_id' => 2, + 'permission_id' => 48, + ), + 299 => + array ( + 'role_id' => 2, + 'permission_id' => 49, + ), + 300 => + array ( + 'role_id' => 2, + 'permission_id' => 50, + ), + 301 => + array ( + 'role_id' => 2, + 'permission_id' => 51, + ), + 302 => + array ( + 'role_id' => 2, + 'permission_id' => 52, + ), + 303 => + array ( + 'role_id' => 2, + 'permission_id' => 53, + ), + 304 => + array ( + 'role_id' => 2, + 'permission_id' => 54, + ), + 305 => + array ( + 'role_id' => 2, + 'permission_id' => 55, + ), + 306 => + array ( + 'role_id' => 2, + 'permission_id' => 56, + ), + 307 => + array ( + 'role_id' => 2, + 'permission_id' => 57, + ), + 308 => + array ( + 'role_id' => 2, + 'permission_id' => 58, + ), + 309 => + array ( + 'role_id' => 2, + 'permission_id' => 59, + ), + 310 => + array ( + 'role_id' => 2, + 'permission_id' => 60, + ), + 311 => + array ( + 'role_id' => 2, + 'permission_id' => 61, + ), + 312 => + array ( + 'role_id' => 2, + 'permission_id' => 62, + ), + 313 => + array ( + 'role_id' => 2, + 'permission_id' => 63, + ), + 314 => + array ( + 'role_id' => 2, + 'permission_id' => 64, + ), + 315 => + array ( + 'role_id' => 2, + 'permission_id' => 65, + ), + 316 => + array ( + 'role_id' => 2, + 'permission_id' => 66, + ), + 317 => + array ( + 'role_id' => 2, + 'permission_id' => 67, + ), + 318 => + array ( + 'role_id' => 2, + 'permission_id' => 68, + ), + 319 => + array ( + 'role_id' => 2, + 'permission_id' => 69, + ), + 320 => + array ( + 'role_id' => 2, + 'permission_id' => 70, + ), + 321 => + array ( + 'role_id' => 2, + 'permission_id' => 71, + ), + 322 => + array ( + 'role_id' => 2, + 'permission_id' => 72, + ), + 323 => + array ( + 'role_id' => 2, + 'permission_id' => 73, + ), + 324 => + array ( + 'role_id' => 2, + 'permission_id' => 74, + ), + 325 => + array ( + 'role_id' => 2, + 'permission_id' => 75, + ), + 326 => + array ( + 'role_id' => 2, + 'permission_id' => 76, + ), + 327 => + array ( + 'role_id' => 2, + 'permission_id' => 77, + ), + 328 => + array ( + 'role_id' => 2, + 'permission_id' => 78, + ), + 329 => + array ( + 'role_id' => 2, + 'permission_id' => 79, + ), + 330 => + array ( + 'role_id' => 2, + 'permission_id' => 80, + ), + 331 => + array ( + 'role_id' => 2, + 'permission_id' => 81, + ), + 332 => + array ( + 'role_id' => 2, + 'permission_id' => 82, + ), + 333 => + array ( + 'role_id' => 2, + 'permission_id' => 83, + ), + 334 => + array ( + 'role_id' => 2, + 'permission_id' => 84, + ), + 335 => + array ( + 'role_id' => 2, + 'permission_id' => 85, + ), + 336 => + array ( + 'role_id' => 2, + 'permission_id' => 86, + ), + 337 => + array ( + 'role_id' => 2, + 'permission_id' => 87, + ), + 338 => + array ( + 'role_id' => 2, + 'permission_id' => 88, + ), + 339 => + array ( + 'role_id' => 2, + 'permission_id' => 89, + ), + 340 => + array ( + 'role_id' => 2, + 'permission_id' => 90, + ), + 341 => + array ( + 'role_id' => 2, + 'permission_id' => 91, + ), + 342 => + array ( + 'role_id' => 2, + 'permission_id' => 92, + ), + 343 => + array ( + 'role_id' => 2, + 'permission_id' => 93, + ), + 344 => + array ( + 'role_id' => 2, + 'permission_id' => 94, + ), + 345 => + array ( + 'role_id' => 2, + 'permission_id' => 95, + ), + 346 => + array ( + 'role_id' => 2, + 'permission_id' => 96, + ), + 347 => + array ( + 'role_id' => 2, + 'permission_id' => 97, + ), + 348 => + array ( + 'role_id' => 2, + 'permission_id' => 98, + ), + 349 => + array ( + 'role_id' => 2, + 'permission_id' => 99, + ), + 350 => + array ( + 'role_id' => 2, + 'permission_id' => 100, + ), + 351 => + array ( + 'role_id' => 2, + 'permission_id' => 101, + ), + 352 => + array ( + 'role_id' => 2, + 'permission_id' => 102, + ), + 353 => + array ( + 'role_id' => 2, + 'permission_id' => 103, + ), + 354 => + array ( + 'role_id' => 2, + 'permission_id' => 104, + ), + 355 => + array ( + 'role_id' => 2, + 'permission_id' => 105, + ), + 356 => + array ( + 'role_id' => 2, + 'permission_id' => 106, + ), + 357 => + array ( + 'role_id' => 2, + 'permission_id' => 107, + ), + 358 => + array ( + 'role_id' => 2, + 'permission_id' => 108, + ), + 359 => + array ( + 'role_id' => 2, + 'permission_id' => 109, + ), + 360 => + array ( + 'role_id' => 2, + 'permission_id' => 110, + ), + 361 => + array ( + 'role_id' => 2, + 'permission_id' => 111, + ), + 362 => + array ( + 'role_id' => 2, + 'permission_id' => 112, + ), + 363 => + array ( + 'role_id' => 2, + 'permission_id' => 113, + ), + 364 => + array ( + 'role_id' => 2, + 'permission_id' => 114, + ), + 365 => + array ( + 'role_id' => 2, + 'permission_id' => 115, + ), + 366 => + array ( + 'role_id' => 2, + 'permission_id' => 116, + ), + 367 => + array ( + 'role_id' => 2, + 'permission_id' => 117, + ), + 368 => + array ( + 'role_id' => 2, + 'permission_id' => 118, + ), + 369 => + array ( + 'role_id' => 2, + 'permission_id' => 119, + ), + 370 => + array ( + 'role_id' => 2, + 'permission_id' => 120, + ), + 371 => + array ( + 'role_id' => 2, + 'permission_id' => 121, + ), + 372 => + array ( + 'role_id' => 2, + 'permission_id' => 122, + ), + 373 => + array ( + 'role_id' => 2, + 'permission_id' => 123, + ), + 374 => + array ( + 'role_id' => 2, + 'permission_id' => 124, + ), + 375 => + array ( + 'role_id' => 2, + 'permission_id' => 125, + ), + 376 => + array ( + 'role_id' => 2, + 'permission_id' => 126, + ), + 377 => + array ( + 'role_id' => 2, + 'permission_id' => 127, + ), + 378 => + array ( + 'role_id' => 2, + 'permission_id' => 128, + ), + 379 => + array ( + 'role_id' => 2, + 'permission_id' => 129, + ), + 380 => + array ( + 'role_id' => 2, + 'permission_id' => 130, + ), + 381 => + array ( + 'role_id' => 2, + 'permission_id' => 131, + ), + 382 => + array ( + 'role_id' => 2, + 'permission_id' => 132, + ), + 383 => + array ( + 'role_id' => 2, + 'permission_id' => 133, + ), + 384 => + array ( + 'role_id' => 2, + 'permission_id' => 134, + ), + 385 => + array ( + 'role_id' => 2, + 'permission_id' => 135, + ), + 386 => + array ( + 'role_id' => 2, + 'permission_id' => 136, + ), + 387 => + array ( + 'role_id' => 2, + 'permission_id' => 137, + ), + 388 => + array ( + 'role_id' => 2, + 'permission_id' => 138, + ), + 389 => + array ( + 'role_id' => 2, + 'permission_id' => 139, + ), + 390 => + array ( + 'role_id' => 2, + 'permission_id' => 140, + ), + 391 => + array ( + 'role_id' => 2, + 'permission_id' => 141, + ), + 392 => + array ( + 'role_id' => 2, + 'permission_id' => 142, + ), + 393 => + array ( + 'role_id' => 2, + 'permission_id' => 143, + ), + 394 => + array ( + 'role_id' => 2, + 'permission_id' => 144, + ), + 395 => + array ( + 'role_id' => 2, + 'permission_id' => 145, + ), + 396 => + array ( + 'role_id' => 2, + 'permission_id' => 146, + ), + 397 => + array ( + 'role_id' => 2, + 'permission_id' => 147, + ), + 398 => + array ( + 'role_id' => 2, + 'permission_id' => 148, + ), + 399 => + array ( + 'role_id' => 2, + 'permission_id' => 149, + ), + 400 => + array ( + 'role_id' => 2, + 'permission_id' => 150, + ), + 401 => + array ( + 'role_id' => 2, + 'permission_id' => 151, + ), + 402 => + array ( + 'role_id' => 2, + 'permission_id' => 152, + ), + 403 => + array ( + 'role_id' => 2, + 'permission_id' => 153, + ), + 404 => + array ( + 'role_id' => 2, + 'permission_id' => 154, + ), + 405 => + array ( + 'role_id' => 2, + 'permission_id' => 155, + ), + 406 => + array ( + 'role_id' => 2, + 'permission_id' => 156, + ), + 407 => + array ( + 'role_id' => 2, + 'permission_id' => 157, + ), + 408 => + array ( + 'role_id' => 2, + 'permission_id' => 158, + ), + 409 => + array ( + 'role_id' => 2, + 'permission_id' => 159, + ), + 410 => + array ( + 'role_id' => 2, + 'permission_id' => 160, + ), + 411 => + array ( + 'role_id' => 2, + 'permission_id' => 161, + ), + 412 => + array ( + 'role_id' => 2, + 'permission_id' => 162, + ), + 413 => + array ( + 'role_id' => 2, + 'permission_id' => 163, + ), + 414 => + array ( + 'role_id' => 2, + 'permission_id' => 164, + ), + 415 => + array ( + 'role_id' => 2, + 'permission_id' => 165, + ), + 416 => + array ( + 'role_id' => 2, + 'permission_id' => 166, + ), + 417 => + array ( + 'role_id' => 2, + 'permission_id' => 167, + ), + 418 => + array ( + 'role_id' => 2, + 'permission_id' => 168, + ), + 419 => + array ( + 'role_id' => 2, + 'permission_id' => 169, + ), + 420 => + array ( + 'role_id' => 2, + 'permission_id' => 170, + ), + 421 => + array ( + 'role_id' => 2, + 'permission_id' => 171, + ), + 422 => + array ( + 'role_id' => 2, + 'permission_id' => 172, + ), + 423 => + array ( + 'role_id' => 2, + 'permission_id' => 173, + ), + 424 => + array ( + 'role_id' => 2, + 'permission_id' => 174, + ), + 425 => + array ( + 'role_id' => 2, + 'permission_id' => 175, + ), + 426 => + array ( + 'role_id' => 2, + 'permission_id' => 176, + ), + 427 => + array ( + 'role_id' => 2, + 'permission_id' => 177, + ), + 428 => + array ( + 'role_id' => 2, + 'permission_id' => 178, + ), + 429 => + array ( + 'role_id' => 2, + 'permission_id' => 179, + ), + 430 => + array ( + 'role_id' => 2, + 'permission_id' => 180, + ), + 431 => + array ( + 'role_id' => 2, + 'permission_id' => 181, + ), + 432 => + array ( + 'role_id' => 2, + 'permission_id' => 182, + ), + 433 => + array ( + 'role_id' => 2, + 'permission_id' => 183, + ), + 434 => + array ( + 'role_id' => 2, + 'permission_id' => 184, + ), + 435 => + array ( + 'role_id' => 2, + 'permission_id' => 185, + ), + 436 => + array ( + 'role_id' => 2, + 'permission_id' => 186, + ), + 437 => + array ( + 'role_id' => 2, + 'permission_id' => 187, + ), + 438 => + array ( + 'role_id' => 2, + 'permission_id' => 188, + ), + 439 => + array ( + 'role_id' => 2, + 'permission_id' => 189, + ), + 440 => + array ( + 'role_id' => 2, + 'permission_id' => 190, + ), + 441 => + array ( + 'role_id' => 2, + 'permission_id' => 191, + ), + 442 => + array ( + 'role_id' => 2, + 'permission_id' => 192, + ), + 443 => + array ( + 'role_id' => 2, + 'permission_id' => 193, + ), + 444 => + array ( + 'role_id' => 2, + 'permission_id' => 194, + ), + 445 => + array ( + 'role_id' => 2, + 'permission_id' => 195, + ), + 446 => + array ( + 'role_id' => 2, + 'permission_id' => 196, + ), + 447 => + array ( + 'role_id' => 2, + 'permission_id' => 197, + ), + 448 => + array ( + 'role_id' => 2, + 'permission_id' => 198, + ), + 449 => + array ( + 'role_id' => 2, + 'permission_id' => 199, + ), + 450 => + array ( + 'role_id' => 2, + 'permission_id' => 200, + ), + 451 => + array ( + 'role_id' => 2, + 'permission_id' => 201, + ), + 452 => + array ( + 'role_id' => 2, + 'permission_id' => 202, + ), + 453 => + array ( + 'role_id' => 2, + 'permission_id' => 203, + ), + 454 => + array ( + 'role_id' => 2, + 'permission_id' => 204, + ), + 455 => + array ( + 'role_id' => 2, + 'permission_id' => 205, + ), + 456 => + array ( + 'role_id' => 2, + 'permission_id' => 206, + ), + 457 => + array ( + 'role_id' => 2, + 'permission_id' => 207, + ), + 458 => + array ( + 'role_id' => 2, + 'permission_id' => 208, + ), + 459 => + array ( + 'role_id' => 2, + 'permission_id' => 209, + ), + 460 => + array ( + 'role_id' => 2, + 'permission_id' => 210, + ), + 461 => + array ( + 'role_id' => 2, + 'permission_id' => 211, + ), + 462 => + array ( + 'role_id' => 2, + 'permission_id' => 212, + ), + 463 => + array ( + 'role_id' => 2, + 'permission_id' => 213, + ), + 464 => + array ( + 'role_id' => 2, + 'permission_id' => 214, + ), + 465 => + array ( + 'role_id' => 2, + 'permission_id' => 215, + ), + 466 => + array ( + 'role_id' => 2, + 'permission_id' => 216, + ), + 467 => + array ( + 'role_id' => 2, + 'permission_id' => 217, + ), + 468 => + array ( + 'role_id' => 2, + 'permission_id' => 218, + ), + 469 => + array ( + 'role_id' => 2, + 'permission_id' => 219, + ), + 470 => + array ( + 'role_id' => 2, + 'permission_id' => 220, + ), + 471 => + array ( + 'role_id' => 2, + 'permission_id' => 221, + ), + 472 => + array ( + 'role_id' => 2, + 'permission_id' => 222, + ), + 473 => + array ( + 'role_id' => 2, + 'permission_id' => 223, + ), + 474 => + array ( + 'role_id' => 2, + 'permission_id' => 224, + ), + 475 => + array ( + 'role_id' => 2, + 'permission_id' => 225, + ), + 476 => + array ( + 'role_id' => 2, + 'permission_id' => 226, + ), + 477 => + array ( + 'role_id' => 2, + 'permission_id' => 227, + ), + 478 => + array ( + 'role_id' => 2, + 'permission_id' => 228, + ), + 479 => + array ( + 'role_id' => 2, + 'permission_id' => 229, + ), + 480 => + array ( + 'role_id' => 2, + 'permission_id' => 230, + ), + 481 => + array ( + 'role_id' => 2, + 'permission_id' => 231, + ), + 482 => + array ( + 'role_id' => 2, + 'permission_id' => 232, + ), + 483 => + array ( + 'role_id' => 2, + 'permission_id' => 233, + ), + 484 => + array ( + 'role_id' => 2, + 'permission_id' => 234, + ), + 485 => + array ( + 'role_id' => 2, + 'permission_id' => 235, + ), + 486 => + array ( + 'role_id' => 2, + 'permission_id' => 236, + ), + 487 => + array ( + 'role_id' => 2, + 'permission_id' => 237, + ), + 488 => + array ( + 'role_id' => 2, + 'permission_id' => 238, + ), + 489 => + array ( + 'role_id' => 2, + 'permission_id' => 239, + ), + 490 => + array ( + 'role_id' => 2, + 'permission_id' => 240, + ), + 491 => + array ( + 'role_id' => 2, + 'permission_id' => 241, + ), + 492 => + array ( + 'role_id' => 2, + 'permission_id' => 242, + ), + 493 => + array ( + 'role_id' => 2, + 'permission_id' => 243, + ), + 494 => + array ( + 'role_id' => 2, + 'permission_id' => 244, + ), + 495 => + array ( + 'role_id' => 2, + 'permission_id' => 245, + ), + 496 => + array ( + 'role_id' => 2, + 'permission_id' => 246, + ), + 497 => + array ( + 'role_id' => 2, + 'permission_id' => 247, + ), + 498 => + array ( + 'role_id' => 2, + 'permission_id' => 248, + ), + 499 => + array ( + 'role_id' => 2, + 'permission_id' => 249, + ), + )); + \DB::table('permission_role')->insert(array ( + 0 => + array ( + 'role_id' => 2, + 'permission_id' => 250, + ), + 1 => + array ( + 'role_id' => 2, + 'permission_id' => 251, + ), + 2 => + array ( + 'role_id' => 2, + 'permission_id' => 252, + ), + 3 => + array ( + 'role_id' => 2, + 'permission_id' => 253, + ), + 4 => + array ( + 'role_id' => 2, + 'permission_id' => 254, + ), + 5 => + array ( + 'role_id' => 2, + 'permission_id' => 255, + ), + 6 => + array ( + 'role_id' => 2, + 'permission_id' => 256, + ), + 7 => + array ( + 'role_id' => 2, + 'permission_id' => 257, + ), + 8 => + array ( + 'role_id' => 2, + 'permission_id' => 258, + ), + 9 => + array ( + 'role_id' => 2, + 'permission_id' => 259, + ), + 10 => + array ( + 'role_id' => 2, + 'permission_id' => 260, + ), + 11 => + array ( + 'role_id' => 2, + 'permission_id' => 261, + ), + 12 => + array ( + 'role_id' => 2, + 'permission_id' => 262, + ), + 13 => + array ( + 'role_id' => 2, + 'permission_id' => 263, + ), + 14 => + array ( + 'role_id' => 2, + 'permission_id' => 264, + ), + 15 => + array ( + 'role_id' => 2, + 'permission_id' => 265, + ), + 16 => + array ( + 'role_id' => 2, + 'permission_id' => 266, + ), + 17 => + array ( + 'role_id' => 2, + 'permission_id' => 267, + ), + 18 => + array ( + 'role_id' => 3, + 'permission_id' => 19, + ), + 19 => + array ( + 'role_id' => 3, + 'permission_id' => 21, + ), + 20 => + array ( + 'role_id' => 3, + 'permission_id' => 22, + ), + 21 => + array ( + 'role_id' => 3, + 'permission_id' => 25, + ), + 22 => + array ( + 'role_id' => 3, + 'permission_id' => 27, + ), + 23 => + array ( + 'role_id' => 3, + 'permission_id' => 30, + ), + 24 => + array ( + 'role_id' => 3, + 'permission_id' => 32, + ), + 25 => + array ( + 'role_id' => 3, + 'permission_id' => 33, + ), + 26 => + array ( + 'role_id' => 3, + 'permission_id' => 36, + ), + 27 => + array ( + 'role_id' => 3, + 'permission_id' => 38, + ), + 28 => + array ( + 'role_id' => 3, + 'permission_id' => 41, + ), + 29 => + array ( + 'role_id' => 3, + 'permission_id' => 43, + ), + 30 => + array ( + 'role_id' => 3, + 'permission_id' => 46, + ), + 31 => + array ( + 'role_id' => 3, + 'permission_id' => 48, + ), + 32 => + array ( + 'role_id' => 3, + 'permission_id' => 51, + ), + 33 => + array ( + 'role_id' => 3, + 'permission_id' => 53, + ), + 34 => + array ( + 'role_id' => 3, + 'permission_id' => 56, + ), + 35 => + array ( + 'role_id' => 3, + 'permission_id' => 58, + ), + 36 => + array ( + 'role_id' => 3, + 'permission_id' => 61, + ), + 37 => + array ( + 'role_id' => 3, + 'permission_id' => 63, + ), + 38 => + array ( + 'role_id' => 3, + 'permission_id' => 66, + ), + 39 => + array ( + 'role_id' => 3, + 'permission_id' => 68, + ), + 40 => + array ( + 'role_id' => 3, + 'permission_id' => 69, + ), + 41 => + array ( + 'role_id' => 3, + 'permission_id' => 72, + ), + 42 => + array ( + 'role_id' => 3, + 'permission_id' => 74, + ), + 43 => + array ( + 'role_id' => 3, + 'permission_id' => 77, + ), + 44 => + array ( + 'role_id' => 3, + 'permission_id' => 79, + ), + 45 => + array ( + 'role_id' => 3, + 'permission_id' => 82, + ), + 46 => + array ( + 'role_id' => 3, + 'permission_id' => 84, + ), + 47 => + array ( + 'role_id' => 3, + 'permission_id' => 87, + ), + 48 => + array ( + 'role_id' => 3, + 'permission_id' => 89, + ), + 49 => + array ( + 'role_id' => 3, + 'permission_id' => 92, + ), + 50 => + array ( + 'role_id' => 3, + 'permission_id' => 94, + ), + 51 => + array ( + 'role_id' => 3, + 'permission_id' => 95, + ), + 52 => + array ( + 'role_id' => 3, + 'permission_id' => 98, + ), + 53 => + array ( + 'role_id' => 3, + 'permission_id' => 100, + ), + 54 => + array ( + 'role_id' => 3, + 'permission_id' => 103, + ), + 55 => + array ( + 'role_id' => 3, + 'permission_id' => 105, + ), + 56 => + array ( + 'role_id' => 3, + 'permission_id' => 108, + ), + 57 => + array ( + 'role_id' => 3, + 'permission_id' => 110, + ), + 58 => + array ( + 'role_id' => 3, + 'permission_id' => 111, + ), + 59 => + array ( + 'role_id' => 3, + 'permission_id' => 114, + ), + 60 => + array ( + 'role_id' => 3, + 'permission_id' => 116, + ), + 61 => + array ( + 'role_id' => 3, + 'permission_id' => 119, + ), + 62 => + array ( + 'role_id' => 3, + 'permission_id' => 121, + ), + 63 => + array ( + 'role_id' => 3, + 'permission_id' => 124, + ), + 64 => + array ( + 'role_id' => 3, + 'permission_id' => 126, + ), + 65 => + array ( + 'role_id' => 3, + 'permission_id' => 129, + ), + 66 => + array ( + 'role_id' => 3, + 'permission_id' => 131, + ), + 67 => + array ( + 'role_id' => 3, + 'permission_id' => 134, + ), + 68 => + array ( + 'role_id' => 3, + 'permission_id' => 136, + ), + 69 => + array ( + 'role_id' => 3, + 'permission_id' => 139, + ), + 70 => + array ( + 'role_id' => 3, + 'permission_id' => 141, + ), + 71 => + array ( + 'role_id' => 3, + 'permission_id' => 144, + ), + 72 => + array ( + 'role_id' => 3, + 'permission_id' => 146, + ), + 73 => + array ( + 'role_id' => 3, + 'permission_id' => 149, + ), + 74 => + array ( + 'role_id' => 3, + 'permission_id' => 151, + ), + 75 => + array ( + 'role_id' => 3, + 'permission_id' => 154, + ), + 76 => + array ( + 'role_id' => 3, + 'permission_id' => 156, + ), + 77 => + array ( + 'role_id' => 3, + 'permission_id' => 159, + ), + 78 => + array ( + 'role_id' => 3, + 'permission_id' => 161, + ), + 79 => + array ( + 'role_id' => 3, + 'permission_id' => 162, + ), + 80 => + array ( + 'role_id' => 3, + 'permission_id' => 165, + ), + 81 => + array ( + 'role_id' => 3, + 'permission_id' => 167, + ), + 82 => + array ( + 'role_id' => 3, + 'permission_id' => 170, + ), + 83 => + array ( + 'role_id' => 3, + 'permission_id' => 172, + ), + 84 => + array ( + 'role_id' => 3, + 'permission_id' => 175, + ), + 85 => + array ( + 'role_id' => 3, + 'permission_id' => 177, + ), + 86 => + array ( + 'role_id' => 3, + 'permission_id' => 180, + ), + 87 => + array ( + 'role_id' => 3, + 'permission_id' => 182, + ), + 88 => + array ( + 'role_id' => 3, + 'permission_id' => 185, + ), + 89 => + array ( + 'role_id' => 3, + 'permission_id' => 187, + ), + 90 => + array ( + 'role_id' => 3, + 'permission_id' => 190, + ), + 91 => + array ( + 'role_id' => 3, + 'permission_id' => 192, + ), + 92 => + array ( + 'role_id' => 3, + 'permission_id' => 195, + ), + 93 => + array ( + 'role_id' => 3, + 'permission_id' => 197, + ), + 94 => + array ( + 'role_id' => 3, + 'permission_id' => 200, + ), + 95 => + array ( + 'role_id' => 3, + 'permission_id' => 202, + ), + 96 => + array ( + 'role_id' => 3, + 'permission_id' => 205, + ), + 97 => + array ( + 'role_id' => 3, + 'permission_id' => 207, + ), + 98 => + array ( + 'role_id' => 3, + 'permission_id' => 210, + ), + 99 => + array ( + 'role_id' => 3, + 'permission_id' => 212, + ), + 100 => + array ( + 'role_id' => 3, + 'permission_id' => 215, + ), + 101 => + array ( + 'role_id' => 3, + 'permission_id' => 217, + ), + 102 => + array ( + 'role_id' => 3, + 'permission_id' => 220, + ), + 103 => + array ( + 'role_id' => 3, + 'permission_id' => 222, + ), + 104 => + array ( + 'role_id' => 3, + 'permission_id' => 225, + ), + 105 => + array ( + 'role_id' => 3, + 'permission_id' => 227, + ), + 106 => + array ( + 'role_id' => 3, + 'permission_id' => 230, + ), + 107 => + array ( + 'role_id' => 3, + 'permission_id' => 232, + ), + 108 => + array ( + 'role_id' => 3, + 'permission_id' => 235, + ), + 109 => + array ( + 'role_id' => 3, + 'permission_id' => 237, + ), + 110 => + array ( + 'role_id' => 3, + 'permission_id' => 240, + ), + 111 => + array ( + 'role_id' => 3, + 'permission_id' => 242, + ), + 112 => + array ( + 'role_id' => 3, + 'permission_id' => 245, + ), + 113 => + array ( + 'role_id' => 3, + 'permission_id' => 247, + ), + 114 => + array ( + 'role_id' => 3, + 'permission_id' => 248, + ), + 115 => + array ( + 'role_id' => 3, + 'permission_id' => 249, + ), + 116 => + array ( + 'role_id' => 3, + 'permission_id' => 252, + ), + 117 => + array ( + 'role_id' => 3, + 'permission_id' => 254, + ), + 118 => + array ( + 'role_id' => 3, + 'permission_id' => 255, + ), + 119 => + array ( + 'role_id' => 3, + 'permission_id' => 259, + ), + 120 => + array ( + 'role_id' => 3, + 'permission_id' => 261, + ), + 121 => + array ( + 'role_id' => 3, + 'permission_id' => 265, + ), + 122 => + array ( + 'role_id' => 3, + 'permission_id' => 267, + ), + 123 => + array ( + 'role_id' => 4, + 'permission_id' => 59, + ), + 124 => + array ( + 'role_id' => 4, + 'permission_id' => 60, + ), + 125 => + array ( + 'role_id' => 4, + 'permission_id' => 61, + ), + 126 => + array ( + 'role_id' => 4, + 'permission_id' => 62, + ), + 127 => + array ( + 'role_id' => 4, + 'permission_id' => 63, + ), + 128 => + array ( + 'role_id' => 4, + 'permission_id' => 69, + ), + 129 => + array ( + 'role_id' => 4, + 'permission_id' => 70, + ), + 130 => + array ( + 'role_id' => 4, + 'permission_id' => 71, + ), + 131 => + array ( + 'role_id' => 4, + 'permission_id' => 72, + ), + 132 => + array ( + 'role_id' => 4, + 'permission_id' => 73, + ), + 133 => + array ( + 'role_id' => 4, + 'permission_id' => 74, + ), + 134 => + array ( + 'role_id' => 4, + 'permission_id' => 75, + ), + 135 => + array ( + 'role_id' => 4, + 'permission_id' => 76, + ), + 136 => + array ( + 'role_id' => 4, + 'permission_id' => 77, + ), + 137 => + array ( + 'role_id' => 4, + 'permission_id' => 78, + ), + 138 => + array ( + 'role_id' => 4, + 'permission_id' => 79, + ), + 139 => + array ( + 'role_id' => 4, + 'permission_id' => 80, + ), + 140 => + array ( + 'role_id' => 4, + 'permission_id' => 81, + ), + 141 => + array ( + 'role_id' => 4, + 'permission_id' => 82, + ), + 142 => + array ( + 'role_id' => 4, + 'permission_id' => 83, + ), + 143 => + array ( + 'role_id' => 4, + 'permission_id' => 84, + ), + 144 => + array ( + 'role_id' => 4, + 'permission_id' => 85, + ), + 145 => + array ( + 'role_id' => 4, + 'permission_id' => 86, + ), + 146 => + array ( + 'role_id' => 4, + 'permission_id' => 87, + ), + 147 => + array ( + 'role_id' => 4, + 'permission_id' => 88, + ), + 148 => + array ( + 'role_id' => 4, + 'permission_id' => 89, + ), + 149 => + array ( + 'role_id' => 4, + 'permission_id' => 243, + ), + 150 => + array ( + 'role_id' => 4, + 'permission_id' => 244, + ), + 151 => + array ( + 'role_id' => 4, + 'permission_id' => 245, + ), + 152 => + array ( + 'role_id' => 4, + 'permission_id' => 246, + ), + 153 => + array ( + 'role_id' => 4, + 'permission_id' => 247, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoPermissionsTableSeeder.php b/database/seeders/DemoPermissionsTableSeeder.php new file mode 100644 index 00000000..2ec732f2 --- /dev/null +++ b/database/seeders/DemoPermissionsTableSeeder.php @@ -0,0 +1,2162 @@ +delete(); + + \DB::table('permissions')->insert(array ( + 0 => + array ( + 'id' => 1, + 'title' => 'user_management_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 1 => + array ( + 'id' => 2, + 'title' => 'permission_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 2 => + array ( + 'id' => 3, + 'title' => 'permission_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 3 => + array ( + 'id' => 4, + 'title' => 'permission_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 4 => + array ( + 'id' => 5, + 'title' => 'permission_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 5 => + array ( + 'id' => 6, + 'title' => 'permission_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 6 => + array ( + 'id' => 7, + 'title' => 'role_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 7 => + array ( + 'id' => 8, + 'title' => 'role_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 8 => + array ( + 'id' => 9, + 'title' => 'role_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 9 => + array ( + 'id' => 10, + 'title' => 'role_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 10 => + array ( + 'id' => 11, + 'title' => 'role_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 11 => + array ( + 'id' => 12, + 'title' => 'user_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 12 => + array ( + 'id' => 13, + 'title' => 'user_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 13 => + array ( + 'id' => 14, + 'title' => 'user_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 14 => + array ( + 'id' => 15, + 'title' => 'user_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 15 => + array ( + 'id' => 16, + 'title' => 'user_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 16 => + array ( + 'id' => 17, + 'title' => 'entity_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 17 => + array ( + 'id' => 18, + 'title' => 'entity_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 18 => + array ( + 'id' => 19, + 'title' => 'entity_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 19 => + array ( + 'id' => 20, + 'title' => 'entity_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 20 => + array ( + 'id' => 21, + 'title' => 'entity_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 21 => + array ( + 'id' => 22, + 'title' => 'ecosystem_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 22 => + array ( + 'id' => 23, + 'title' => 'relation_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 23 => + array ( + 'id' => 24, + 'title' => 'relation_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 24 => + array ( + 'id' => 25, + 'title' => 'relation_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 25 => + array ( + 'id' => 26, + 'title' => 'relation_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 26 => + array ( + 'id' => 27, + 'title' => 'relation_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 27 => + array ( + 'id' => 28, + 'title' => 'process_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 28 => + array ( + 'id' => 29, + 'title' => 'process_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 29 => + array ( + 'id' => 30, + 'title' => 'process_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 30 => + array ( + 'id' => 31, + 'title' => 'process_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 31 => + array ( + 'id' => 32, + 'title' => 'process_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 32 => + array ( + 'id' => 33, + 'title' => 'metier_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 33 => + array ( + 'id' => 34, + 'title' => 'operation_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 34 => + array ( + 'id' => 35, + 'title' => 'operation_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 35 => + array ( + 'id' => 36, + 'title' => 'operation_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 36 => + array ( + 'id' => 37, + 'title' => 'operation_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 37 => + array ( + 'id' => 38, + 'title' => 'operation_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 38 => + array ( + 'id' => 39, + 'title' => 'actor_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 39 => + array ( + 'id' => 40, + 'title' => 'actor_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 40 => + array ( + 'id' => 41, + 'title' => 'actor_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 41 => + array ( + 'id' => 42, + 'title' => 'actor_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 42 => + array ( + 'id' => 43, + 'title' => 'actor_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 43 => + array ( + 'id' => 44, + 'title' => 'activity_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 44 => + array ( + 'id' => 45, + 'title' => 'activity_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 45 => + array ( + 'id' => 46, + 'title' => 'activity_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 46 => + array ( + 'id' => 47, + 'title' => 'activity_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 47 => + array ( + 'id' => 48, + 'title' => 'activity_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 48 => + array ( + 'id' => 49, + 'title' => 'task_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 49 => + array ( + 'id' => 50, + 'title' => 'task_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 50 => + array ( + 'id' => 51, + 'title' => 'task_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 51 => + array ( + 'id' => 52, + 'title' => 'task_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 52 => + array ( + 'id' => 53, + 'title' => 'task_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 53 => + array ( + 'id' => 54, + 'title' => 'information_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 54 => + array ( + 'id' => 55, + 'title' => 'information_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 55 => + array ( + 'id' => 56, + 'title' => 'information_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 56 => + array ( + 'id' => 57, + 'title' => 'information_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 57 => + array ( + 'id' => 58, + 'title' => 'information_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 58 => + array ( + 'id' => 59, + 'title' => 'application_block_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 59 => + array ( + 'id' => 60, + 'title' => 'application_block_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 60 => + array ( + 'id' => 61, + 'title' => 'application_block_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 61 => + array ( + 'id' => 62, + 'title' => 'application_block_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 62 => + array ( + 'id' => 63, + 'title' => 'application_block_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 63 => + array ( + 'id' => 64, + 'title' => 'application_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 64 => + array ( + 'id' => 65, + 'title' => 'application_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 65 => + array ( + 'id' => 66, + 'title' => 'application_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 66 => + array ( + 'id' => 67, + 'title' => 'application_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 67 => + array ( + 'id' => 68, + 'title' => 'application_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 68 => + array ( + 'id' => 69, + 'title' => 'papplication_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 69 => + array ( + 'id' => 70, + 'title' => 'm_application_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 70 => + array ( + 'id' => 71, + 'title' => 'm_application_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 71 => + array ( + 'id' => 72, + 'title' => 'm_application_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 72 => + array ( + 'id' => 73, + 'title' => 'm_application_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 73 => + array ( + 'id' => 74, + 'title' => 'm_application_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 74 => + array ( + 'id' => 75, + 'title' => 'application_service_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 75 => + array ( + 'id' => 76, + 'title' => 'application_service_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 76 => + array ( + 'id' => 77, + 'title' => 'application_service_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 77 => + array ( + 'id' => 78, + 'title' => 'application_service_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 78 => + array ( + 'id' => 79, + 'title' => 'application_service_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 79 => + array ( + 'id' => 80, + 'title' => 'database_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 80 => + array ( + 'id' => 81, + 'title' => 'database_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 81 => + array ( + 'id' => 82, + 'title' => 'database_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 82 => + array ( + 'id' => 83, + 'title' => 'database_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 83 => + array ( + 'id' => 84, + 'title' => 'database_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 84 => + array ( + 'id' => 85, + 'title' => 'flux_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 85 => + array ( + 'id' => 86, + 'title' => 'flux_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 86 => + array ( + 'id' => 87, + 'title' => 'flux_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 87 => + array ( + 'id' => 88, + 'title' => 'flux_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 88 => + array ( + 'id' => 89, + 'title' => 'flux_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 89 => + array ( + 'id' => 90, + 'title' => 'zone_admin_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 90 => + array ( + 'id' => 91, + 'title' => 'zone_admin_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 91 => + array ( + 'id' => 92, + 'title' => 'zone_admin_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 92 => + array ( + 'id' => 93, + 'title' => 'zone_admin_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 93 => + array ( + 'id' => 94, + 'title' => 'zone_admin_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 94 => + array ( + 'id' => 95, + 'title' => 'administration_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 95 => + array ( + 'id' => 96, + 'title' => 'annuaire_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 96 => + array ( + 'id' => 97, + 'title' => 'annuaire_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 97 => + array ( + 'id' => 98, + 'title' => 'annuaire_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 98 => + array ( + 'id' => 99, + 'title' => 'annuaire_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 99 => + array ( + 'id' => 100, + 'title' => 'annuaire_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 100 => + array ( + 'id' => 101, + 'title' => 'forest_ad_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 101 => + array ( + 'id' => 102, + 'title' => 'forest_ad_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 102 => + array ( + 'id' => 103, + 'title' => 'forest_ad_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 103 => + array ( + 'id' => 104, + 'title' => 'forest_ad_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 104 => + array ( + 'id' => 105, + 'title' => 'forest_ad_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 105 => + array ( + 'id' => 106, + 'title' => 'domaine_ad_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 106 => + array ( + 'id' => 107, + 'title' => 'domaine_ad_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 107 => + array ( + 'id' => 108, + 'title' => 'domaine_ad_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 108 => + array ( + 'id' => 109, + 'title' => 'domaine_ad_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 109 => + array ( + 'id' => 110, + 'title' => 'domaine_ad_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 110 => + array ( + 'id' => 111, + 'title' => 'infrastructure_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 111 => + array ( + 'id' => 112, + 'title' => 'network_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 112 => + array ( + 'id' => 113, + 'title' => 'network_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 113 => + array ( + 'id' => 114, + 'title' => 'network_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 114 => + array ( + 'id' => 115, + 'title' => 'network_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 115 => + array ( + 'id' => 116, + 'title' => 'network_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 116 => + array ( + 'id' => 117, + 'title' => 'subnetwork_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 117 => + array ( + 'id' => 118, + 'title' => 'subnetwork_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 118 => + array ( + 'id' => 119, + 'title' => 'subnetwork_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 119 => + array ( + 'id' => 120, + 'title' => 'subnetwork_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 120 => + array ( + 'id' => 121, + 'title' => 'subnetwork_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 121 => + array ( + 'id' => 122, + 'title' => 'gateway_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 122 => + array ( + 'id' => 123, + 'title' => 'gateway_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 123 => + array ( + 'id' => 124, + 'title' => 'gateway_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 124 => + array ( + 'id' => 125, + 'title' => 'gateway_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 125 => + array ( + 'id' => 126, + 'title' => 'gateway_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 126 => + array ( + 'id' => 127, + 'title' => 'external_connected_entity_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 127 => + array ( + 'id' => 128, + 'title' => 'external_connected_entity_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 128 => + array ( + 'id' => 129, + 'title' => 'external_connected_entity_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 129 => + array ( + 'id' => 130, + 'title' => 'external_connected_entity_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 130 => + array ( + 'id' => 131, + 'title' => 'external_connected_entity_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 131 => + array ( + 'id' => 132, + 'title' => 'network_switch_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 132 => + array ( + 'id' => 133, + 'title' => 'network_switch_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 133 => + array ( + 'id' => 134, + 'title' => 'network_switch_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 134 => + array ( + 'id' => 135, + 'title' => 'network_switch_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 135 => + array ( + 'id' => 136, + 'title' => 'network_switch_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 136 => + array ( + 'id' => 137, + 'title' => 'router_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 137 => + array ( + 'id' => 138, + 'title' => 'router_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 138 => + array ( + 'id' => 139, + 'title' => 'router_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 139 => + array ( + 'id' => 140, + 'title' => 'router_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 140 => + array ( + 'id' => 141, + 'title' => 'router_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 141 => + array ( + 'id' => 142, + 'title' => 'security_device_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 142 => + array ( + 'id' => 143, + 'title' => 'security_device_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 143 => + array ( + 'id' => 144, + 'title' => 'security_device_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 144 => + array ( + 'id' => 145, + 'title' => 'security_device_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 145 => + array ( + 'id' => 146, + 'title' => 'security_device_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 146 => + array ( + 'id' => 147, + 'title' => 'dhcp_server_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 147 => + array ( + 'id' => 148, + 'title' => 'dhcp_server_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 148 => + array ( + 'id' => 149, + 'title' => 'dhcp_server_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 149 => + array ( + 'id' => 150, + 'title' => 'dhcp_server_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 150 => + array ( + 'id' => 151, + 'title' => 'dhcp_server_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 151 => + array ( + 'id' => 152, + 'title' => 'dnsserver_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 152 => + array ( + 'id' => 153, + 'title' => 'dnsserver_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 153 => + array ( + 'id' => 154, + 'title' => 'dnsserver_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 154 => + array ( + 'id' => 155, + 'title' => 'dnsserver_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 155 => + array ( + 'id' => 156, + 'title' => 'dnsserver_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 156 => + array ( + 'id' => 157, + 'title' => 'logical_server_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 157 => + array ( + 'id' => 158, + 'title' => 'logical_server_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 158 => + array ( + 'id' => 159, + 'title' => 'logical_server_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 159 => + array ( + 'id' => 160, + 'title' => 'logical_server_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 160 => + array ( + 'id' => 161, + 'title' => 'logical_server_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 161 => + array ( + 'id' => 162, + 'title' => 'physicalinfrastructure_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 162 => + array ( + 'id' => 163, + 'title' => 'site_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 163 => + array ( + 'id' => 164, + 'title' => 'site_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 164 => + array ( + 'id' => 165, + 'title' => 'site_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 165 => + array ( + 'id' => 166, + 'title' => 'site_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 166 => + array ( + 'id' => 167, + 'title' => 'site_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 167 => + array ( + 'id' => 168, + 'title' => 'building_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 168 => + array ( + 'id' => 169, + 'title' => 'building_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 169 => + array ( + 'id' => 170, + 'title' => 'building_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 170 => + array ( + 'id' => 171, + 'title' => 'building_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 171 => + array ( + 'id' => 172, + 'title' => 'building_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 172 => + array ( + 'id' => 173, + 'title' => 'bay_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 173 => + array ( + 'id' => 174, + 'title' => 'bay_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 174 => + array ( + 'id' => 175, + 'title' => 'bay_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 175 => + array ( + 'id' => 176, + 'title' => 'bay_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 176 => + array ( + 'id' => 177, + 'title' => 'bay_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 177 => + array ( + 'id' => 178, + 'title' => 'physical_server_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 178 => + array ( + 'id' => 179, + 'title' => 'physical_server_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 179 => + array ( + 'id' => 180, + 'title' => 'physical_server_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 180 => + array ( + 'id' => 181, + 'title' => 'physical_server_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 181 => + array ( + 'id' => 182, + 'title' => 'physical_server_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 182 => + array ( + 'id' => 183, + 'title' => 'workstation_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 183 => + array ( + 'id' => 184, + 'title' => 'workstation_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 184 => + array ( + 'id' => 185, + 'title' => 'workstation_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 185 => + array ( + 'id' => 186, + 'title' => 'workstation_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 186 => + array ( + 'id' => 187, + 'title' => 'workstation_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 187 => + array ( + 'id' => 188, + 'title' => 'storage_device_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 188 => + array ( + 'id' => 189, + 'title' => 'storage_device_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 189 => + array ( + 'id' => 190, + 'title' => 'storage_device_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 190 => + array ( + 'id' => 191, + 'title' => 'storage_device_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 191 => + array ( + 'id' => 192, + 'title' => 'storage_device_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 192 => + array ( + 'id' => 193, + 'title' => 'peripheral_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 193 => + array ( + 'id' => 194, + 'title' => 'peripheral_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 194 => + array ( + 'id' => 195, + 'title' => 'peripheral_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 195 => + array ( + 'id' => 196, + 'title' => 'peripheral_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 196 => + array ( + 'id' => 197, + 'title' => 'peripheral_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 197 => + array ( + 'id' => 198, + 'title' => 'phone_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 198 => + array ( + 'id' => 199, + 'title' => 'phone_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 199 => + array ( + 'id' => 200, + 'title' => 'phone_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 200 => + array ( + 'id' => 201, + 'title' => 'phone_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 201 => + array ( + 'id' => 202, + 'title' => 'phone_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 202 => + array ( + 'id' => 203, + 'title' => 'physical_switch_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 203 => + array ( + 'id' => 204, + 'title' => 'physical_switch_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 204 => + array ( + 'id' => 205, + 'title' => 'physical_switch_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 205 => + array ( + 'id' => 206, + 'title' => 'physical_switch_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 206 => + array ( + 'id' => 207, + 'title' => 'physical_switch_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 207 => + array ( + 'id' => 208, + 'title' => 'physical_router_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 208 => + array ( + 'id' => 209, + 'title' => 'physical_router_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 209 => + array ( + 'id' => 210, + 'title' => 'physical_router_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 210 => + array ( + 'id' => 211, + 'title' => 'physical_router_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 211 => + array ( + 'id' => 212, + 'title' => 'physical_router_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 212 => + array ( + 'id' => 213, + 'title' => 'wifi_terminal_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 213 => + array ( + 'id' => 214, + 'title' => 'wifi_terminal_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 214 => + array ( + 'id' => 215, + 'title' => 'wifi_terminal_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 215 => + array ( + 'id' => 216, + 'title' => 'wifi_terminal_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 216 => + array ( + 'id' => 217, + 'title' => 'wifi_terminal_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 217 => + array ( + 'id' => 218, + 'title' => 'physical_security_device_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 218 => + array ( + 'id' => 219, + 'title' => 'physical_security_device_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 219 => + array ( + 'id' => 220, + 'title' => 'physical_security_device_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 220 => + array ( + 'id' => 221, + 'title' => 'physical_security_device_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 221 => + array ( + 'id' => 222, + 'title' => 'physical_security_device_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 222 => + array ( + 'id' => 223, + 'title' => 'wan_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 223 => + array ( + 'id' => 224, + 'title' => 'wan_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 224 => + array ( + 'id' => 225, + 'title' => 'wan_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 225 => + array ( + 'id' => 226, + 'title' => 'wan_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 226 => + array ( + 'id' => 227, + 'title' => 'wan_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 227 => + array ( + 'id' => 228, + 'title' => 'man_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 228 => + array ( + 'id' => 229, + 'title' => 'man_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 229 => + array ( + 'id' => 230, + 'title' => 'man_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 230 => + array ( + 'id' => 231, + 'title' => 'man_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 231 => + array ( + 'id' => 232, + 'title' => 'man_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 232 => + array ( + 'id' => 233, + 'title' => 'lan_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 233 => + array ( + 'id' => 234, + 'title' => 'lan_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 234 => + array ( + 'id' => 235, + 'title' => 'lan_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 235 => + array ( + 'id' => 236, + 'title' => 'lan_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 236 => + array ( + 'id' => 237, + 'title' => 'lan_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 237 => + array ( + 'id' => 238, + 'title' => 'vlan_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 238 => + array ( + 'id' => 239, + 'title' => 'vlan_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 239 => + array ( + 'id' => 240, + 'title' => 'vlan_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 240 => + array ( + 'id' => 241, + 'title' => 'vlan_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 241 => + array ( + 'id' => 242, + 'title' => 'vlan_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 242 => + array ( + 'id' => 243, + 'title' => 'application_module_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 243 => + array ( + 'id' => 244, + 'title' => 'application_module_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 244 => + array ( + 'id' => 245, + 'title' => 'application_module_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 245 => + array ( + 'id' => 246, + 'title' => 'application_module_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 246 => + array ( + 'id' => 247, + 'title' => 'application_module_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 247 => + array ( + 'id' => 248, + 'title' => 'audit_log_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 248 => + array ( + 'id' => 249, + 'title' => 'audit_log_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 249 => + array ( + 'id' => 250, + 'title' => 'macro_processus_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 250 => + array ( + 'id' => 251, + 'title' => 'macro_processus_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 251 => + array ( + 'id' => 252, + 'title' => 'macro_processus_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 252 => + array ( + 'id' => 253, + 'title' => 'macro_processus_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 253 => + array ( + 'id' => 254, + 'title' => 'macro_processus_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 254 => + array ( + 'id' => 255, + 'title' => 'configuration_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 255 => + array ( + 'id' => 256, + 'title' => 'profile_password_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 256 => + array ( + 'id' => 257, + 'title' => 'certificate_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 257 => + array ( + 'id' => 258, + 'title' => 'certificate_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 258 => + array ( + 'id' => 259, + 'title' => 'certificate_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 259 => + array ( + 'id' => 260, + 'title' => 'certificate_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 260 => + array ( + 'id' => 261, + 'title' => 'certificate_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 261 => + array ( + 'id' => 262, + 'title' => 'configure', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 262 => + array ( + 'id' => 263, + 'title' => 'physical_link_create', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 263 => + array ( + 'id' => 264, + 'title' => 'physical_link_edit', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 264 => + array ( + 'id' => 265, + 'title' => 'physical_link_show', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 265 => + array ( + 'id' => 266, + 'title' => 'physical_link_delete', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 266 => + array ( + 'id' => 267, + 'title' => 'physical_link_access', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoPhonesTableSeeder.php b/database/seeders/DemoPhonesTableSeeder.php new file mode 100644 index 00000000..7a92f54d --- /dev/null +++ b/database/seeders/DemoPhonesTableSeeder.php @@ -0,0 +1,74 @@ +delete(); + + \DB::table('phones')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => 'Phone 01', + 'description' => '

Téléphone de test

', + 'type' => 'MOTOROAL 3110', + 'created_at' => '2020-07-21 07:16:46', + 'updated_at' => '2020-07-25 09:15:17', + 'deleted_at' => NULL, + 'site_id' => 1, + 'building_id' => 1, + 'physical_switch_id' => NULL, + 'vendor' => NULL, + 'product' => NULL, + 'version' => NULL, + ), + 1 => + array ( + 'id' => 2, + 'name' => 'Phone 03', + 'description' => '

Special AA phone

', + 'type' => 'Top secret red phne', + 'created_at' => '2020-07-21 07:18:01', + 'updated_at' => '2020-07-25 09:25:38', + 'deleted_at' => NULL, + 'site_id' => 2, + 'building_id' => 4, + 'physical_switch_id' => NULL, + 'vendor' => NULL, + 'product' => NULL, + 'version' => NULL, + ), + 2 => + array ( + 'id' => 3, + 'name' => 'Phone 02', + 'description' => '

Description phone 02

', + 'type' => 'IPhone 2', + 'created_at' => '2020-07-25 08:52:23', + 'updated_at' => '2020-07-25 09:25:19', + 'deleted_at' => NULL, + 'site_id' => 2, + 'building_id' => 3, + 'physical_switch_id' => NULL, + 'vendor' => NULL, + 'product' => NULL, + 'version' => NULL, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoPhysicalLinksTableSeeder.php b/database/seeders/DemoPhysicalLinksTableSeeder.php new file mode 100644 index 00000000..7725980c --- /dev/null +++ b/database/seeders/DemoPhysicalLinksTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoPhysicalRouterVlanTableSeeder.php b/database/seeders/DemoPhysicalRouterVlanTableSeeder.php new file mode 100644 index 00000000..0f01bfbc --- /dev/null +++ b/database/seeders/DemoPhysicalRouterVlanTableSeeder.php @@ -0,0 +1,41 @@ +delete(); + + \DB::table('physical_router_vlan')->insert(array ( + 0 => + array ( + 'physical_router_id' => 1, + 'vlan_id' => 1, + ), + 1 => + array ( + 'physical_router_id' => 1, + 'vlan_id' => 3, + ), + 2 => + array ( + 'physical_router_id' => 2, + 'vlan_id' => 3, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoPhysicalRoutersTableSeeder.php b/database/seeders/DemoPhysicalRoutersTableSeeder.php new file mode 100644 index 00000000..c4ee006c --- /dev/null +++ b/database/seeders/DemoPhysicalRoutersTableSeeder.php @@ -0,0 +1,58 @@ +delete(); + + \DB::table('physical_routers')->insert(array ( + 0 => + array ( + 'id' => 1, + 'description' => '

Routeur prncipal

', + 'type' => 'Fortinet', + 'created_at' => '2020-07-10 08:58:53', + 'updated_at' => '2021-10-12 21:08:21', + 'deleted_at' => NULL, + 'site_id' => 1, + 'building_id' => 1, + 'bay_id' => 1, + 'name' => 'R1', + 'vendor' => NULL, + 'product' => NULL, + 'version' => NULL, + ), + 1 => + array ( + 'id' => 2, + 'description' => '

Routeur secondaire

', + 'type' => 'CISCO', + 'created_at' => '2020-07-10 09:19:11', + 'updated_at' => '2020-07-25 10:28:17', + 'deleted_at' => NULL, + 'site_id' => 2, + 'building_id' => 3, + 'bay_id' => 5, + 'name' => 'R2', + 'vendor' => NULL, + 'product' => NULL, + 'version' => NULL, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoPhysicalSecurityDevicesTableSeeder.php b/database/seeders/DemoPhysicalSecurityDevicesTableSeeder.php new file mode 100644 index 00000000..67c5ce49 --- /dev/null +++ b/database/seeders/DemoPhysicalSecurityDevicesTableSeeder.php @@ -0,0 +1,65 @@ +delete(); + + \DB::table('physical_security_devices')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => 'Magic Gate', + 'type' => 'Gate', + 'description' => '

BIG Magic Gate

', + 'created_at' => '2021-05-20 16:40:43', + 'updated_at' => '2021-11-13 21:29:45', + 'deleted_at' => NULL, + 'site_id' => 1, + 'building_id' => 1, + 'bay_id' => 1, + ), + 1 => + array ( + 'id' => 2, + 'name' => 'Magic Firewall', + 'type' => 'Firewall', + 'description' => '

The magic firewall - PT3743

', + 'created_at' => '2021-06-07 16:56:26', + 'updated_at' => '2021-11-13 21:29:32', + 'deleted_at' => NULL, + 'site_id' => 2, + 'building_id' => 3, + 'bay_id' => 5, + ), + 2 => + array ( + 'id' => 3, + 'name' => 'Sensor-1', + 'type' => 'Sensor', + 'description' => '

Temperature sensor

', + 'created_at' => '2021-11-13 21:37:14', + 'updated_at' => '2021-11-13 21:37:56', + 'deleted_at' => NULL, + 'site_id' => 1, + 'building_id' => 3, + 'bay_id' => NULL, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoPhysicalServersTableSeeder.php b/database/seeders/DemoPhysicalServersTableSeeder.php new file mode 100644 index 00000000..d7e2778c --- /dev/null +++ b/database/seeders/DemoPhysicalServersTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoPhysicalSwitchesTableSeeder.php b/database/seeders/DemoPhysicalSwitchesTableSeeder.php new file mode 100644 index 00000000..5d334c51 --- /dev/null +++ b/database/seeders/DemoPhysicalSwitchesTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoProcessesTableSeeder.php b/database/seeders/DemoProcessesTableSeeder.php new file mode 100644 index 00000000..a3d1b3b8 --- /dev/null +++ b/database/seeders/DemoProcessesTableSeeder.php @@ -0,0 +1,196 @@ +delete(); + + \DB::table('processes')->insert(array ( + 0 => + array ( + 'id' => 1, + 'identifiant' => 'Processus 1', + 'description' => '

Description du processus 1

', + 'owner' => 'Ched', + 'security_need_c' => 3, + 'in_out' => '
  • pommes
  • poires
  • cerise

<test

', + 'dummy' => NULL, + 'created_at' => '2020-06-17 16:36:24', + 'updated_at' => '2021-09-22 13:38:57', + 'deleted_at' => NULL, + 'macroprocess_id' => 1, + 'security_need_i' => 2, + 'security_need_a' => 3, + 'security_need_t' => 1, + ), + 1 => + array ( + 'id' => 2, + 'identifiant' => 'Processus 2', + 'description' => '

Description du processus 2

', + 'owner' => 'Ched', + 'security_need_c' => 3, + 'in_out' => '

1 2 3 4 5 6

', + 'dummy' => NULL, + 'created_at' => '2020-06-17 16:36:58', + 'updated_at' => '2021-09-22 12:59:14', + 'deleted_at' => NULL, + 'macroprocess_id' => 10, + 'security_need_i' => 4, + 'security_need_a' => 2, + 'security_need_t' => 4, + ), + 2 => + array ( + 'id' => 3, + 'identifiant' => 'Processus 3', + 'description' => '

Description du processus 3

', + 'owner' => 'Johan', + 'security_need_c' => 3, + 'in_out' => '

a,b,c

d,e,f

', + 'dummy' => NULL, + 'created_at' => '2020-07-01 17:50:27', + 'updated_at' => '2021-08-17 10:22:13', + 'deleted_at' => NULL, + 'macroprocess_id' => 2, + 'security_need_i' => 2, + 'security_need_a' => 3, + 'security_need_t' => 1, + ), + 3 => + array ( + 'id' => 4, + 'identifiant' => 'Processus 4', + 'description' => '

Description du processus 4

', + 'owner' => 'Paul', + 'security_need_c' => 4, + 'in_out' => '
  • chaussettes
  • pantalon
  • chaussures
', + 'dummy' => NULL, + 'created_at' => '2020-08-18 17:00:36', + 'updated_at' => '2021-08-17 10:22:29', + 'deleted_at' => NULL, + 'macroprocess_id' => 2, + 'security_need_i' => 2, + 'security_need_a' => 2, + 'security_need_t' => 2, + ), + 4 => + array ( + 'id' => 5, + 'identifiant' => 'totoat', + 'description' => '

tto

', + 'owner' => NULL, + 'security_need_c' => 1, + 'in_out' => '

sgksdùmfk

', + 'dummy' => NULL, + 'created_at' => '2020-08-27 15:16:56', + 'updated_at' => '2020-08-27 15:17:01', + 'deleted_at' => '2020-08-27 15:17:01', + 'macroprocess_id' => 1, + 'security_need_i' => NULL, + 'security_need_a' => NULL, + 'security_need_t' => NULL, + ), + 5 => + array ( + 'id' => 6, + 'identifiant' => 'ptest', + 'description' => '

description de ptest

', + 'owner' => NULL, + 'security_need_c' => 0, + 'in_out' => '

toto titi tutu

', + 'dummy' => NULL, + 'created_at' => '2020-08-29 13:10:23', + 'updated_at' => '2020-08-29 13:10:28', + 'deleted_at' => '2020-08-29 13:10:28', + 'macroprocess_id' => NULL, + 'security_need_i' => NULL, + 'security_need_a' => NULL, + 'security_need_t' => NULL, + ), + 6 => + array ( + 'id' => 7, + 'identifiant' => 'ptest2', + 'description' => '

fdfsdfsdf

', + 'owner' => NULL, + 'security_need_c' => 1, + 'in_out' => '

fdfsdfsd

', + 'dummy' => NULL, + 'created_at' => '2020-08-29 13:16:42', + 'updated_at' => '2020-08-29 13:17:09', + 'deleted_at' => '2020-08-29 13:17:09', + 'macroprocess_id' => 1, + 'security_need_i' => NULL, + 'security_need_a' => NULL, + 'security_need_t' => NULL, + ), + 7 => + array ( + 'id' => 8, + 'identifiant' => 'ptest3', + 'description' => '

processus de test 3

', + 'owner' => 'CHEM - Facturation', + 'security_need_c' => 3, + 'in_out' => '

dsfsdf sdf sdf sd fsd fsd f s

', + 'dummy' => NULL, + 'created_at' => '2020-08-29 13:19:13', + 'updated_at' => '2020-08-29 13:20:59', + 'deleted_at' => '2020-08-29 13:20:59', + 'macroprocess_id' => 1, + 'security_need_i' => NULL, + 'security_need_a' => NULL, + 'security_need_t' => NULL, + ), + 8 => + array ( + 'id' => 9, + 'identifiant' => 'Processus 5', + 'description' => '

Description du cinquième processus

', + 'owner' => 'Paul', + 'security_need_c' => 4, + 'in_out' => '
  • chat
  • chien
  • poisson
', + 'dummy' => NULL, + 'created_at' => '2021-05-14 09:10:02', + 'updated_at' => '2021-09-22 12:59:14', + 'deleted_at' => NULL, + 'macroprocess_id' => 10, + 'security_need_i' => 3, + 'security_need_a' => 2, + 'security_need_t' => 3, + ), + 9 => + array ( + 'id' => 10, + 'identifiant' => 'Proc 6', + 'description' => NULL, + 'owner' => NULL, + 'security_need_c' => 0, + 'in_out' => NULL, + 'dummy' => NULL, + 'created_at' => '2021-10-08 21:18:28', + 'updated_at' => '2021-10-08 21:28:38', + 'deleted_at' => '2021-10-08 21:28:38', + 'macroprocess_id' => NULL, + 'security_need_i' => 0, + 'security_need_a' => 0, + 'security_need_t' => 0, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoRelationsTableSeeder.php b/database/seeders/DemoRelationsTableSeeder.php new file mode 100644 index 00000000..33ceddd1 --- /dev/null +++ b/database/seeders/DemoRelationsTableSeeder.php @@ -0,0 +1,195 @@ +delete(); + + \DB::table('relations')->insert(array ( + 0 => + array ( + 'id' => 1, + 'importance' => 1, + 'name' => 'Membre', + 'type' => 'Fourniture de service', + 'description' => '

Here is the description of this relation

', + 'created_at' => '2020-05-21 00:49:47', + 'updated_at' => '2021-08-17 10:20:46', + 'deleted_at' => NULL, + 'source_id' => 1, + 'destination_id' => 6, + ), + 1 => + array ( + 'id' => 2, + 'importance' => 2, + 'name' => 'Membre', + 'type' => 'Fournisseur de service', + 'description' => '

Member description

', + 'created_at' => '2020-05-21 01:35:11', + 'updated_at' => '2021-09-19 13:12:19', + 'deleted_at' => NULL, + 'source_id' => 2, + 'destination_id' => 6, + ), + 2 => + array ( + 'id' => 3, + 'importance' => 1, + 'name' => 'Fournisseur', + 'type' => 'Fournisseur de service', + 'description' => '

description de la relation entre A et le B

', + 'created_at' => '2020-05-21 01:39:24', + 'updated_at' => '2021-08-17 10:20:59', + 'deleted_at' => NULL, + 'source_id' => 7, + 'destination_id' => 1, + ), + 3 => + array ( + 'id' => 4, + 'importance' => 2, + 'name' => 'Membre', + 'type' => 'Fourniture de service', + 'description' => '

Description du service

', + 'created_at' => '2020-05-21 04:23:03', + 'updated_at' => '2021-05-23 15:06:05', + 'deleted_at' => NULL, + 'source_id' => 2, + 'destination_id' => 6, + ), + 4 => + array ( + 'id' => 5, + 'importance' => 0, + 'name' => 'Membre', + 'type' => 'Fournisseur de service', + 'description' => NULL, + 'created_at' => '2020-05-21 04:23:35', + 'updated_at' => '2021-05-23 15:05:18', + 'deleted_at' => NULL, + 'source_id' => 2, + 'destination_id' => 6, + ), + 5 => + array ( + 'id' => 6, + 'importance' => 0, + 'name' => 'Fournisseur', + 'type' => 'fourniture de service', + 'description' => NULL, + 'created_at' => '2020-05-21 04:24:35', + 'updated_at' => '2020-05-21 04:24:35', + 'deleted_at' => NULL, + 'source_id' => 7, + 'destination_id' => 2, + ), + 6 => + array ( + 'id' => 7, + 'importance' => 0, + 'name' => 'Membre', + 'type' => 'fourniture de service', + 'description' => NULL, + 'created_at' => '2020-05-21 04:26:43', + 'updated_at' => '2020-05-21 04:26:43', + 'deleted_at' => NULL, + 'source_id' => 4, + 'destination_id' => 6, + ), + 7 => + array ( + 'id' => 8, + 'importance' => 3, + 'name' => 'Rapporte', + 'type' => NULL, + 'description' => NULL, + 'created_at' => '2020-05-21 04:32:19', + 'updated_at' => '2020-07-05 12:10:01', + 'deleted_at' => NULL, + 'source_id' => 1, + 'destination_id' => 5, + ), + 8 => + array ( + 'id' => 9, + 'importance' => 0, + 'name' => 'Fournisseur', + 'type' => 'fourniture de service', + 'description' => NULL, + 'created_at' => '2020-05-21 04:33:33', + 'updated_at' => '2020-05-21 04:33:33', + 'deleted_at' => NULL, + 'source_id' => 9, + 'destination_id' => 1, + ), + 9 => + array ( + 'id' => 10, + 'importance' => 2, + 'name' => 'Rapporte', + 'type' => 'Fournisseur de service', + 'description' => '

Régelement général APD34

', + 'created_at' => '2020-05-22 23:21:02', + 'updated_at' => '2020-08-24 16:31:29', + 'deleted_at' => NULL, + 'source_id' => 1, + 'destination_id' => 8, + ), + 10 => + array ( + 'id' => 11, + 'importance' => 2, + 'name' => 'toto', + 'type' => NULL, + 'description' => NULL, + 'created_at' => '2020-07-05 12:14:15', + 'updated_at' => '2020-07-05 12:14:55', + 'deleted_at' => '2020-07-05 12:14:55', + 'source_id' => 3, + 'destination_id' => 2, + ), + 11 => + array ( + 'id' => 12, + 'importance' => 1, + 'name' => 'Fournisseur', + 'type' => 'Fournisseur de service', + 'description' => '

Analyse de risques

', + 'created_at' => '2020-08-24 16:23:30', + 'updated_at' => '2020-08-24 16:23:48', + 'deleted_at' => NULL, + 'source_id' => 2, + 'destination_id' => 4, + ), + 12 => + array ( + 'id' => 13, + 'importance' => 1, + 'name' => 'Fournisseur', + 'type' => 'Fourniture de service', + 'description' => '

Description du service

', + 'created_at' => '2020-10-14 19:06:24', + 'updated_at' => '2021-05-23 15:06:34', + 'deleted_at' => NULL, + 'source_id' => 2, + 'destination_id' => 12, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoRoleUserTableSeeder.php b/database/seeders/DemoRoleUserTableSeeder.php new file mode 100644 index 00000000..67ed9cd0 --- /dev/null +++ b/database/seeders/DemoRoleUserTableSeeder.php @@ -0,0 +1,31 @@ +delete(); + + \DB::table('role_user')->insert(array ( + 0 => + array ( + 'user_id' => 1, + 'role_id' => 1, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoRolesTableSeeder.php b/database/seeders/DemoRolesTableSeeder.php new file mode 100644 index 00000000..49277d2a --- /dev/null +++ b/database/seeders/DemoRolesTableSeeder.php @@ -0,0 +1,58 @@ +delete(); + + \DB::table('roles')->insert(array ( + 0 => + array ( + 'id' => 1, + 'title' => 'Admin', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 1 => + array ( + 'id' => 2, + 'title' => 'User', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 2 => + array ( + 'id' => 3, + 'title' => 'Auditor', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + 3 => + array ( + 'id' => 4, + 'title' => 'Cartographer', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoRoutersTableSeeder.php b/database/seeders/DemoRoutersTableSeeder.php new file mode 100644 index 00000000..109efcfd --- /dev/null +++ b/database/seeders/DemoRoutersTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoSecurityDevicesTableSeeder.php b/database/seeders/DemoSecurityDevicesTableSeeder.php new file mode 100644 index 00000000..fe6b56df --- /dev/null +++ b/database/seeders/DemoSecurityDevicesTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoSitesTableSeeder.php b/database/seeders/DemoSitesTableSeeder.php new file mode 100644 index 00000000..a760a8e7 --- /dev/null +++ b/database/seeders/DemoSitesTableSeeder.php @@ -0,0 +1,89 @@ +delete(); + + \DB::table('sites')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => 'Site A', + 'description' => '

Description du site A

', + 'created_at' => '2020-06-21 06:36:41', + 'updated_at' => '2020-06-21 06:36:41', + 'deleted_at' => NULL, + ), + 1 => + array ( + 'id' => 2, + 'name' => 'Site B', + 'description' => '

Description du site B

', + 'created_at' => '2020-06-21 06:36:53', + 'updated_at' => '2020-06-21 06:36:53', + 'deleted_at' => NULL, + ), + 2 => + array ( + 'id' => 3, + 'name' => 'Site C', + 'description' => '

Description du Site C

', + 'created_at' => '2020-06-21 06:37:05', + 'updated_at' => '2020-06-21 06:37:05', + 'deleted_at' => NULL, + ), + 3 => + array ( + 'id' => 4, + 'name' => 'Test1', + 'description' => '

site de test

', + 'created_at' => '2020-07-24 21:12:29', + 'updated_at' => '2020-07-24 21:12:56', + 'deleted_at' => '2020-07-24 21:12:56', + ), + 4 => + array ( + 'id' => 5, + 'name' => 'testsite', + 'description' => '

description here

', + 'created_at' => '2021-04-12 17:31:40', + 'updated_at' => '2021-04-12 17:32:04', + 'deleted_at' => '2021-04-12 17:32:04', + ), + 5 => + array ( + 'id' => 6, + 'name' => 'Site Z', + 'description' => NULL, + 'created_at' => '2021-06-18 07:36:03', + 'updated_at' => '2021-10-19 18:51:22', + 'deleted_at' => '2021-10-19 18:51:22', + ), + 6 => + array ( + 'id' => 7, + 'name' => 'Site 0', + 'description' => NULL, + 'created_at' => '2021-06-18 07:36:12', + 'updated_at' => '2021-08-17 19:52:52', + 'deleted_at' => '2021-08-17 19:52:52', + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoStorageDevicesTableSeeder.php b/database/seeders/DemoStorageDevicesTableSeeder.php new file mode 100644 index 00000000..1650147f --- /dev/null +++ b/database/seeders/DemoStorageDevicesTableSeeder.php @@ -0,0 +1,58 @@ +delete(); + + \DB::table('storage_devices')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => 'DiskServer 1', + 'description' => '

Description du serveur d stockage 1

', + 'created_at' => '2020-06-21 17:30:16', + 'updated_at' => '2020-06-21 17:30:16', + 'deleted_at' => NULL, + 'site_id' => 1, + 'building_id' => 2, + 'bay_id' => 3, + 'physical_switch_id' => NULL, + 'vendor' => NULL, + 'product' => NULL, + 'version' => NULL, + ), + 1 => + array ( + 'id' => 2, + 'name' => 'Oracle Server', + 'description' => '

Main oracle server

', + 'created_at' => '2020-06-21 17:33:51', + 'updated_at' => '2020-06-21 17:34:38', + 'deleted_at' => NULL, + 'site_id' => 1, + 'building_id' => 2, + 'bay_id' => 2, + 'physical_switch_id' => NULL, + 'vendor' => NULL, + 'product' => NULL, + 'version' => NULL, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoSubnetworksTableSeeder.php b/database/seeders/DemoSubnetworksTableSeeder.php new file mode 100644 index 00000000..22331d34 --- /dev/null +++ b/database/seeders/DemoSubnetworksTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoTasksTableSeeder.php b/database/seeders/DemoTasksTableSeeder.php new file mode 100644 index 00000000..5e3fcdc5 --- /dev/null +++ b/database/seeders/DemoTasksTableSeeder.php @@ -0,0 +1,53 @@ +delete(); + + \DB::table('tasks')->insert(array ( + 0 => + array ( + 'id' => 1, + 'nom' => 'Tâche 2', + 'description' => 'Descriptionde la tâche 2', + 'created_at' => '2020-06-13 02:04:07', + 'updated_at' => '2020-06-13 02:04:07', + 'deleted_at' => NULL, + ), + 1 => + array ( + 'id' => 2, + 'nom' => 'Tache 1', + 'description' => 'Description de la tâche 1', + 'created_at' => '2020-06-13 02:04:21', + 'updated_at' => '2020-06-13 02:04:21', + 'deleted_at' => NULL, + ), + 2 => + array ( + 'id' => 3, + 'nom' => 'Tâche 3', + 'description' => 'Description de la tâche 3', + 'created_at' => '2020-06-13 02:04:41', + 'updated_at' => '2020-06-13 02:04:41', + 'deleted_at' => NULL, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoUsersTableSeeder.php b/database/seeders/DemoUsersTableSeeder.php new file mode 100644 index 00000000..8b2cf905 --- /dev/null +++ b/database/seeders/DemoUsersTableSeeder.php @@ -0,0 +1,40 @@ +delete(); + + \DB::table('users')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => 'Admin', + 'email' => 'admin@admin.com', + 'email_verified_at' => NULL, + 'password' => '$2y$10$6KNtUi7G9Hsnt74LijQBtuQen1RbLzO71NpHsrSxrHmIUgDRhICQm', + 'remember_token' => NULL, + 'granularity' => 3, + 'language' => 'fr', + 'created_at' => NULL, + 'updated_at' => NULL, + 'deleted_at' => NULL, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoVlansTableSeeder.php b/database/seeders/DemoVlansTableSeeder.php new file mode 100644 index 00000000..2371cf6d --- /dev/null +++ b/database/seeders/DemoVlansTableSeeder.php @@ -0,0 +1,98 @@ +delete(); + + \DB::table('vlans')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => 'VLAN_2', + 'description' => 'VLAN Wifi', + 'created_at' => '2020-07-07 16:31:53', + 'updated_at' => '2020-07-07 16:39:10', + 'deleted_at' => NULL, + ), + 1 => + array ( + 'id' => 2, + 'name' => 'VLAN_1', + 'description' => 'VLAN publc', + 'created_at' => '2020-07-07 16:34:30', + 'updated_at' => '2020-07-07 16:38:53', + 'deleted_at' => NULL, + ), + 2 => + array ( + 'id' => 3, + 'name' => 'VLAN_3', + 'description' => 'VLAN application', + 'created_at' => '2020-07-07 16:38:41', + 'updated_at' => '2020-07-08 21:35:53', + 'deleted_at' => NULL, + ), + 3 => + array ( + 'id' => 4, + 'name' => 'VLAN_4', + 'description' => 'Vlan Client', + 'created_at' => '2020-07-08 21:34:11', + 'updated_at' => '2020-07-08 21:36:06', + 'deleted_at' => NULL, + ), + 4 => + array ( + 'id' => 5, + 'name' => 'VLAN_5', + 'description' => 'Test Production', + 'created_at' => '2020-07-11 19:12:03', + 'updated_at' => '2021-08-18 19:35:54', + 'deleted_at' => NULL, + ), + 5 => + array ( + 'id' => 6, + 'name' => 'VLAN_6', + 'description' => 'VLAN démilitarisé', + 'created_at' => '2020-07-11 19:14:55', + 'updated_at' => '2021-08-18 19:36:12', + 'deleted_at' => NULL, + ), + 6 => + array ( + 'id' => 7, + 'name' => 'VLAN_7', + 'description' => 'Description du VLAN 7', + 'created_at' => '2021-09-07 18:35:28', + 'updated_at' => '2021-09-07 18:35:28', + 'deleted_at' => NULL, + ), + 7 => + array ( + 'id' => 8, + 'name' => 'VLAN_8', + 'description' => 'Description du VLAN 8', + 'created_at' => '2021-09-07 18:36:20', + 'updated_at' => '2021-09-07 18:36:20', + 'deleted_at' => NULL, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoWansTableSeeder.php b/database/seeders/DemoWansTableSeeder.php new file mode 100644 index 00000000..35b6dd3f --- /dev/null +++ b/database/seeders/DemoWansTableSeeder.php @@ -0,0 +1,24 @@ +delete(); + + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoWifiTerminalsTableSeeder.php b/database/seeders/DemoWifiTerminalsTableSeeder.php new file mode 100644 index 00000000..df388c65 --- /dev/null +++ b/database/seeders/DemoWifiTerminalsTableSeeder.php @@ -0,0 +1,71 @@ +delete(); + + \DB::table('wifi_terminals')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => 'WIFI_01', + 'description' => '

Borne wifi 01

', + 'type' => 'Alcatel 3500', + 'created_at' => '2020-07-22 16:44:37', + 'updated_at' => '2020-07-22 16:44:37', + 'deleted_at' => NULL, + 'site_id' => 1, + 'building_id' => 2, + 'vendor' => NULL, + 'product' => NULL, + 'version' => NULL, + ), + 1 => + array ( + 'id' => 2, + 'name' => 'WIFI_02', + 'description' => '

Borne Wifi 2

', + 'type' => 'ALCALSYS 3001', + 'created_at' => '2021-06-07 16:37:47', + 'updated_at' => '2021-06-07 16:37:47', + 'deleted_at' => NULL, + 'site_id' => 2, + 'building_id' => 1, + 'vendor' => NULL, + 'product' => NULL, + 'version' => NULL, + ), + 2 => + array ( + 'id' => 3, + 'name' => 'WIFI_03', + 'description' => '

Borne Wifi 3

', + 'type' => 'SYSTEL 3310', + 'created_at' => '2021-06-07 16:42:29', + 'updated_at' => '2021-06-07 16:43:18', + 'deleted_at' => NULL, + 'site_id' => 3, + 'building_id' => 4, + 'vendor' => NULL, + 'product' => NULL, + 'version' => NULL, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoWorkstationsTableSeeder.php b/database/seeders/DemoWorkstationsTableSeeder.php new file mode 100644 index 00000000..437b9917 --- /dev/null +++ b/database/seeders/DemoWorkstationsTableSeeder.php @@ -0,0 +1,89 @@ +delete(); + + \DB::table('workstations')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => 'Workstation 1', + 'description' => '

Station de travail compta

', + 'created_at' => '2020-06-21 17:09:04', + 'updated_at' => '2022-03-20 12:37:13', + 'deleted_at' => NULL, + 'site_id' => 1, + 'building_id' => 7, + 'physical_switch_id' => NULL, + 'type' => 'ThinThink 460', + 'operating_system' => NULL, + 'address_ip' => NULL, + 'cpu' => NULL, + 'memory' => NULL, + 'disk' => NULL, + 'vendor' => NULL, + 'product' => NULL, + 'version' => NULL, + ), + 1 => + array ( + 'id' => 2, + 'name' => 'Workstation 2', + 'description' => '

Station de travail accueil

', + 'created_at' => '2020-06-21 17:09:54', + 'updated_at' => '2021-10-20 09:14:59', + 'deleted_at' => NULL, + 'site_id' => 2, + 'building_id' => 3, + 'physical_switch_id' => NULL, + 'type' => 'ThinThink 410', + 'operating_system' => NULL, + 'address_ip' => NULL, + 'cpu' => NULL, + 'memory' => NULL, + 'disk' => NULL, + 'vendor' => NULL, + 'product' => NULL, + 'version' => NULL, + ), + 2 => + array ( + 'id' => 3, + 'name' => 'Workstation 3', + 'description' => '

Station de travail back-office

', + 'created_at' => '2020-06-21 17:17:57', + 'updated_at' => '2021-10-20 09:15:25', + 'deleted_at' => NULL, + 'site_id' => 2, + 'building_id' => 4, + 'physical_switch_id' => NULL, + 'type' => 'ThinThink 420', + 'operating_system' => NULL, + 'address_ip' => NULL, + 'cpu' => NULL, + 'memory' => NULL, + 'disk' => NULL, + 'vendor' => NULL, + 'product' => NULL, + 'version' => NULL, + ), + )); + + + } +} \ No newline at end of file diff --git a/database/seeders/DemoZoneAdminsTableSeeder.php b/database/seeders/DemoZoneAdminsTableSeeder.php new file mode 100644 index 00000000..a5895c08 --- /dev/null +++ b/database/seeders/DemoZoneAdminsTableSeeder.php @@ -0,0 +1,35 @@ +delete(); + + \DB::table('zone_admins')->insert(array ( + 0 => + array ( + 'id' => 1, + 'name' => 'Enreprise', + 'description' => '

Zone d\'administration de l\'entreprise

', + 'created_at' => '2020-07-03 09:49:03', + 'updated_at' => '2021-05-23 15:07:18', + 'deleted_at' => NULL, + ), + )); + + + } +} \ No newline at end of file From d08b93e2d91e92ccce635a6feb07b20121f265b2 Mon Sep 17 00:00:00 2001 From: Alban Siffer Date: Thu, 27 Apr 2023 13:42:34 +0200 Subject: [PATCH 14/22] add pgsql support --- Dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e6f90f2c..13e59606 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ ENV DB_CONNECTION=sqlite ENV DB_DATABASE=/var/www/mercator/db.sqlite # system deps -RUN apk update && apk add curl ssmtp graphviz ca-certificates sqlite sqlite-dev +RUN apk update && apk add curl ssmtp graphviz ca-certificates sqlite sqlite-dev postgresql12 postgresql12-dev # php deps RUN apk add php8-zip \ @@ -17,15 +17,18 @@ RUN apk add php8-zip \ php8-xdebug \ php8-mysqli \ php8-sqlite3 \ + php8-pgsql \ php8-gd \ php8-xdebug \ php8-gd \ - php8-pdo php8-pdo_sqlite \ + php8-pdo php8-pdo_sqlite php8-pdo_mysql php8-pdo_pgsql \ php8-fileinfo \ php8-simplexml php8-xml php8-xmlreader php8-xmlwriter \ php8-tokenizer \ composer +RUN docker-php-ext-install pgsql pdo_pgsql + # sources COPY . /var/www/mercator WORKDIR /var/www/mercator @@ -48,6 +51,7 @@ EXPOSE 8000 # APP_KEY is automcatically generated if not provided # we create the database file if it does not exist CMD if [ "${DB_CONNECTION}" == "sqlite" ] && [ ! -f "${DB_DATABASE}" ]; then touch ${DB_DATABASE}; fi && \ - php artisan --no-interaction --force --seed migrate && \ + php artisan cache:clear && php artisan config:clear && \ + php artisan --no-interaction --force migrate --seed && \ php artisan passport:install && \ APP_KEY="${APP_KEY:-base64:$(head -c 32 /dev/urandom|base64)}" php artisan serve --host=0.0.0.0 --port=8000 From 7539a0a4e7d73961694c4e7e195d3637b62ec9f1 Mon Sep 17 00:00:00 2001 From: Alban Siffer Date: Thu, 27 Apr 2023 15:57:42 +0200 Subject: [PATCH 15/22] use supervisord and nginx --- .dockerignore | 5 ++++- Dockerfile | 25 ++++++++++++++++-------- README.md | 53 +++++++++++++++++++++++++++++++++++++++++---------- 3 files changed, 64 insertions(+), 19 deletions(-) diff --git a/.dockerignore b/.dockerignore index 4cfeb2bf..a95e493a 100644 --- a/.dockerignore +++ b/.dockerignore @@ -3,4 +3,7 @@ docker/data *Dockerfile *.md .dockerignore -.env* \ No newline at end of file +.env* +*.sqlite* +nginx.conf +supervisord.conf \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 13e59606..fe45aaf7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM php:8.2-alpine3.16 +FROM php:8.2-fpm-alpine3.16 # apparently you cannot pass both env variables # and .env file @@ -6,7 +6,7 @@ ENV DB_CONNECTION=sqlite ENV DB_DATABASE=/var/www/mercator/db.sqlite # system deps -RUN apk update && apk add curl ssmtp graphviz ca-certificates sqlite sqlite-dev postgresql12 postgresql12-dev +RUN apk update && apk add curl nano bash ssmtp graphviz ca-certificates sqlite sqlite-dev postgresql12 postgresql12-dev nginx supervisor # php deps RUN apk add php8-zip \ @@ -36,22 +36,31 @@ WORKDIR /var/www/mercator # the sqlite file must exist # RUN touch ${DB_DATABASE} + # add mercator:www user RUN addgroup -S www && \ adduser -S mercator -G www && \ - chown -R mercator:www /var/www + chown -R mercator:www /var/www /var/lib/nginx /var/log/nginx + +# COPY nginx.conf /etc/nginx/http.d/mercator.conf +# RUN chown -R mercator:www USER mercator:www # install mercator deps RUN composer install + EXPOSE 8000 # APP_KEY is automcatically generated if not provided # we create the database file if it does not exist -CMD if [ "${DB_CONNECTION}" == "sqlite" ] && [ ! -f "${DB_DATABASE}" ]; then touch ${DB_DATABASE}; fi && \ - php artisan cache:clear && php artisan config:clear && \ - php artisan --no-interaction --force migrate --seed && \ - php artisan passport:install && \ - APP_KEY="${APP_KEY:-base64:$(head -c 32 /dev/urandom|base64)}" php artisan serve --host=0.0.0.0 --port=8000 +# CMD if [ "${DB_CONNECTION}" == "sqlite" ] && [ ! -f "${DB_DATABASE}" ]; then touch ${DB_DATABASE}; fi && \ +# php artisan cache:clear && php artisan config:clear && \ +# php artisan --no-interaction --force migrate --seed && \ +# php artisan passport:install && \ +# APP_KEY="${APP_KEY:-base64:$(head -c 32 /dev/urandom|base64)}" nginx -g 'daemon off; pid /tmp/nginx.pid;' + +CMD ["/usr/bin/supervisord"] + +# APP_KEY="${APP_KEY:-base64:$(head -c 32 /dev/urandom|base64)}" php artisan serve --host=0.0.0.0 --port=8000 diff --git a/README.md b/README.md index 8b7d754a..b34b7a76 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Mercator -Mercator is an Open Source web application to manage the mapping of an information system as described in the [Mapping The Information System Guide](https://www.ssi.gouv.fr/en/guide/mapping-the-information-system/) of the [ANSSI](https://www.ssi.gouv.fr/en/). +Mercator is an Open Source web application to manage the mapping of an information system as described in the [Mapping The Information System Guide](https://www.ssi.gouv.fr/en/guide/mapping-the-information-system/) of the [ANSSI](https://www.ssi.gouv.fr/en/). [![Latest Release](https://img.shields.io/github/release/dbarzin/mercator.svg?style=flat-square)](https://github.com/dbarzin/mercator/releases/latest) ![License](https://img.shields.io/github/license/dbarzin/mercator.svg?style=flat-square) @@ -11,13 +11,14 @@ Read this in other languages: [French](README.fr.md) ## Introduction -Computer attacks occur in a constantly changing environment. To meet these challenges, it is necessary to implement a global approach to risk management within the organization. +Computer attacks occur in a constantly changing environment. To meet these challenges, it is necessary to implement a global approach to risk management within the organization. -The mapping of the Information System allows to have a global view of all the elements which compose the information system to obtain a better readability, and thus a better control. +The mapping of the Information System allows to have a global view of all the elements which compose the information system to obtain a better readability, and thus a better control. The elaboration of a cartography participates in the protection, the defense and the resilience of the information system. It is an essential tool for the control of its information system and is an obligation for operators of vital importance and is part of a global risk management approach. ## Major functions + - Graphical views of the ecosystem, information system, administration, logical, applications, and physical infrastructure - Generate information system architecture report - Draw mapping diagrams @@ -48,17 +49,16 @@ Drawing of the cartography [](public/screenshots/mercator6.png) [](public/screenshots/mercator7.png) -Explore +Explore [](public/screenshots/mercator9.png) Data model -[](public/screenshots/mercator8.png) - - +[](public/screenshots/mercator8.png) ## Technologies + - PHP, Javascript, Laravel - Supported databases: MySQL, Postgres, SQLite, SQL Server (see: [Laravel/Databases/introduction](https://laravel.com/docs/master/database#introduction) ) - WebAssembly + Graphviz @@ -66,8 +66,42 @@ Data model ## Installation -- [Installation](https://github.com/dbarzin/mercator/blob/master/INSTALL.md) -- Deployment under [Docker](https://github.com/dbarzin/mercator/blob/master/docker/README.md) +### Manual + +See [Installation](https://github.com/dbarzin/mercator/blob/master/INSTALL.md) + +### Docker + +First download the docker image. + +```shell +docker pull ghcr.io/mercator/mercator:latest +``` + +Then you can run an ephemeral local instance: + +```shell +docker run -it --rm --name mercator -p "127.0.0.1:8000":8000 ghcr.io/mercator/mercator:latest +``` + +By default it uses an SQLite backend. If you want to make data persistent: + +```shell +touch db.sqlite && chmod a+w db.sqlite +docker run -it --rm --name mercator -p "127.0.0.1:8000":8000 -v ./db.sqlite:/var/www/mercator/db.sqlite ghcr.io/mercator/mercator:latest +``` + +Finally you can populate the database with demo data through the `USE_DEMO_DATA` environment variable: + +```shell +touch db.sqlite && chmod a+w db.sqlite +docker run -it --rm \ + --name mercator \ + -p "127.0.0.1:8000":8000 \ + -v ./db.sqlite:/var/www/mercator/db.sqlite \ + -e USE_DEMO_DATA=1 \ + ghcr.io/mercator/mercator:latest +``` ## Changelog @@ -76,4 +110,3 @@ All notable changes to this project are [documented](https://github.com/dbarzin/ ## License Mercator is an open source software distributed under [GPL](https://www.gnu.org/licenses/licenses.html). - From 1824278de3a2d657270cf527a4d1857b42529410 Mon Sep 17 00:00:00 2001 From: Alban Siffer Date: Thu, 27 Apr 2023 16:33:40 +0200 Subject: [PATCH 16/22] add nginx and supervisord conf in docker image --- Dockerfile | 11 +++-------- docker/nginx.conf | 32 ++++++++++++++++++++++++++++++++ docker/supervisord.conf | 19 +++++++++++++++++++ 3 files changed, 54 insertions(+), 8 deletions(-) create mode 100644 docker/nginx.conf create mode 100644 docker/supervisord.conf diff --git a/Dockerfile b/Dockerfile index fe45aaf7..3f119aef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,21 +45,16 @@ RUN addgroup -S www && \ # COPY nginx.conf /etc/nginx/http.d/mercator.conf # RUN chown -R mercator:www +RUN cp docker/nginx.conf /etc/nginx/http.d/mercator.conf +RUN cp docker/supervisord.conf /etc/supervisord.conf + USER mercator:www # install mercator deps RUN composer install - EXPOSE 8000 -# APP_KEY is automcatically generated if not provided -# we create the database file if it does not exist -# CMD if [ "${DB_CONNECTION}" == "sqlite" ] && [ ! -f "${DB_DATABASE}" ]; then touch ${DB_DATABASE}; fi && \ -# php artisan cache:clear && php artisan config:clear && \ -# php artisan --no-interaction --force migrate --seed && \ -# php artisan passport:install && \ -# APP_KEY="${APP_KEY:-base64:$(head -c 32 /dev/urandom|base64)}" nginx -g 'daemon off; pid /tmp/nginx.pid;' CMD ["/usr/bin/supervisord"] diff --git a/docker/nginx.conf b/docker/nginx.conf new file mode 100644 index 00000000..03003f51 --- /dev/null +++ b/docker/nginx.conf @@ -0,0 +1,32 @@ +server { + listen 80; + listen [::]:80; + server_name localhost; + root /var/www/mercator/public; + + add_header X-Frame-Options "SAMEORIGIN"; + add_header X-Content-Type-Options "nosniff"; + + index index.php; + + charset utf-8; + + location / { + try_files $uri $uri/ /index.php?$query_string; + } + + location = /favicon.ico { access_log off; log_not_found off; } + location = /robots.txt { access_log off; log_not_found off; } + + error_page 404 /index.php; + + location ~ \.php$ { + fastcgi_pass 127.0.0.1:9000; + fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; + include fastcgi_params; + } + + location ~ /\.(?!well-known).* { + deny all; + } +} \ No newline at end of file diff --git a/docker/supervisord.conf b/docker/supervisord.conf new file mode 100644 index 00000000..b5da6520 --- /dev/null +++ b/docker/supervisord.conf @@ -0,0 +1,19 @@ +[supervisord] +nodaemon=true + +[program:migrate] +command=/bin/sh -c '(php artisan migrate --force || true) && (php artisan db:seed --force && php artisan passport:install || true) && touch /tmp/migrated' +autorestart=false +startretries=0 +redirect_stderr=true +stdout_logfile=/dev/stdout +stdout_logfile_maxbytes=0 + +[program:php] +command=/bin/bash -c 'while [ ! -f /tmp/migrated ]; do sleep 5; done; APP_KEY="${APP_KEY:-base64:$(head -c 32 /dev/urandom|base64)}" php-fpm -F' +redirect_stderr=true +stdout_logfile=/dev/stdout +stdout_logfile_maxbytes=0 + +[program:nginx] +command=nginx -g 'daemon off; pid /tmp/nginx.pid; error_log /dev/stdout info;' From 9336a4ea44659a25a0525667e1f5f972b1fc880f Mon Sep 17 00:00:00 2001 From: Alban Siffer Date: Thu, 27 Apr 2023 16:39:11 +0200 Subject: [PATCH 17/22] add write right for packages in CI --- .github/workflows/docker.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 91596400..2cce27b5 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -8,6 +8,8 @@ on: jobs: docker: runs-on: ubuntu-latest + permissions: + packages: write steps: - name: Checkout uses: actions/checkout@v3 From f2723469b5f811c9c65307a548a7682c7b68fbcf Mon Sep 17 00:00:00 2001 From: Alban Siffer Date: Thu, 27 Apr 2023 16:49:20 +0200 Subject: [PATCH 18/22] use port 80 in docker (README) --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b34b7a76..b54a3433 100644 --- a/README.md +++ b/README.md @@ -81,14 +81,14 @@ docker pull ghcr.io/mercator/mercator:latest Then you can run an ephemeral local instance: ```shell -docker run -it --rm --name mercator -p "127.0.0.1:8000":8000 ghcr.io/mercator/mercator:latest +docker run -it --rm --name mercator -p "127.0.0.1:8000":80 ghcr.io/mercator/mercator:latest ``` By default it uses an SQLite backend. If you want to make data persistent: ```shell touch db.sqlite && chmod a+w db.sqlite -docker run -it --rm --name mercator -p "127.0.0.1:8000":8000 -v ./db.sqlite:/var/www/mercator/db.sqlite ghcr.io/mercator/mercator:latest +docker run -it --rm --name mercator -p "127.0.0.1:8000":80 -v ./db.sqlite:/var/www/mercator/db.sqlite ghcr.io/mercator/mercator:latest ``` Finally you can populate the database with demo data through the `USE_DEMO_DATA` environment variable: @@ -97,7 +97,7 @@ Finally you can populate the database with demo data through the `USE_DEMO_DATA` touch db.sqlite && chmod a+w db.sqlite docker run -it --rm \ --name mercator \ - -p "127.0.0.1:8000":8000 \ + -p "127.0.0.1:8000":80 \ -v ./db.sqlite:/var/www/mercator/db.sqlite \ -e USE_DEMO_DATA=1 \ ghcr.io/mercator/mercator:latest From e0eb9ebfa7ab42ac46e0779d143b7e95926a31fe Mon Sep 17 00:00:00 2001 From: Didier Barzin Date: Fri, 28 Apr 2023 07:43:55 +0200 Subject: [PATCH 19/22] update URL --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b54a3433..f807e735 100644 --- a/README.md +++ b/README.md @@ -75,13 +75,13 @@ See [Installation](https://github.com/dbarzin/mercator/blob/master/INSTALL.md) First download the docker image. ```shell -docker pull ghcr.io/mercator/mercator:latest +docker pull docker pull ghcr.io/dbarzin/mercator:latest ``` Then you can run an ephemeral local instance: ```shell -docker run -it --rm --name mercator -p "127.0.0.1:8000":80 ghcr.io/mercator/mercator:latest +docker run -it --rm --name mercator -p "127.0.0.1:8000":80 ghcr.io/dbarzin/mercator:latest ``` By default it uses an SQLite backend. If you want to make data persistent: From 89b00bcad448247a2f87ee39688d06eeb8a33ed5 Mon Sep 17 00:00:00 2001 From: Didier Barzin Date: Fri, 28 Apr 2023 07:46:53 +0200 Subject: [PATCH 20/22] Update URL --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f807e735..80f2cc32 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ By default it uses an SQLite backend. If you want to make data persistent: ```shell touch db.sqlite && chmod a+w db.sqlite -docker run -it --rm --name mercator -p "127.0.0.1:8000":80 -v ./db.sqlite:/var/www/mercator/db.sqlite ghcr.io/mercator/mercator:latest +docker run -it --rm --name mercator -p "127.0.0.1:8000":80 -v ./db.sqlite:/var/www/mercator/db.sqlite ghcr.io/dbarzin/mercator:latest ``` Finally you can populate the database with demo data through the `USE_DEMO_DATA` environment variable: @@ -100,7 +100,7 @@ docker run -it --rm \ -p "127.0.0.1:8000":80 \ -v ./db.sqlite:/var/www/mercator/db.sqlite \ -e USE_DEMO_DATA=1 \ - ghcr.io/mercator/mercator:latest + ghcr.io/dbarzin/mercator:latest ``` ## Changelog From e88fd1bee6b59afea92bc998edac141f1ee87f58 Mon Sep 17 00:00:00 2001 From: Didier Barzin Date: Fri, 28 Apr 2023 07:49:03 +0200 Subject: [PATCH 21/22] invalid characters --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 80f2cc32..c0b03f7d 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ By default it uses an SQLite backend. If you want to make data persistent: ```shell touch db.sqlite && chmod a+w db.sqlite -docker run -it --rm --name mercator -p "127.0.0.1:8000":80 -v ./db.sqlite:/var/www/mercator/db.sqlite ghcr.io/dbarzin/mercator:latest +docker run -it --rm --name mercator -p "127.0.0.1:8000":80 -v db.sqlite:/var/www/mercator/db.sqlite ghcr.io/dbarzin/mercator:latest ``` Finally you can populate the database with demo data through the `USE_DEMO_DATA` environment variable: @@ -98,7 +98,7 @@ touch db.sqlite && chmod a+w db.sqlite docker run -it --rm \ --name mercator \ -p "127.0.0.1:8000":80 \ - -v ./db.sqlite:/var/www/mercator/db.sqlite \ + -v db.sqlite:/var/www/mercator/db.sqlite \ -e USE_DEMO_DATA=1 \ ghcr.io/dbarzin/mercator:latest ``` From baa3dd0bd195cda04c4a4a9d79063e2b9933674a Mon Sep 17 00:00:00 2001 From: Didier Barzin Date: Fri, 28 Apr 2023 07:55:08 +0200 Subject: [PATCH 22/22] Typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c0b03f7d..ff5c1d00 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ See [Installation](https://github.com/dbarzin/mercator/blob/master/INSTALL.md) First download the docker image. ```shell -docker pull docker pull ghcr.io/dbarzin/mercator:latest +docker pull ghcr.io/dbarzin/mercator:latest ``` Then you can run an ephemeral local instance: