Skip to content

Commit

Permalink
New search engine + code cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarzin committed Jan 16, 2024
1 parent 3115b34 commit 59fce01
Show file tree
Hide file tree
Showing 33 changed files with 31 additions and 967 deletions.
27 changes: 1 addition & 26 deletions app/Activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,6 @@
/**
* App\Activity
*
* @property int $id
* @property string $name
* @property string|null $description
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property \Illuminate\Support\Carbon|null $deleted_at
*
* @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Process> $activitiesProcesses
* @property-read int|null $activities_processes_count
* @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Operation> $operations
* @property-read int|null $operations_count
*
* @method static \Illuminate\Database\Eloquent\Builder|Activity newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Activity newQuery()
* @method static \Illuminate\Database\Query\Builder|Activity onlyTrashed()
* @method static \Illuminate\Database\Eloquent\Builder|Activity query()
* @method static \Illuminate\Database\Eloquent\Builder|Activity whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Activity whereDeletedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Activity whereDescription($value)
* @method static \Illuminate\Database\Eloquent\Builder|Activity whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Activity whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Activity whereUpdatedAt($value)
* @method static \Illuminate\Database\Query\Builder|Activity withTrashed()
* @method static \Illuminate\Database\Query\Builder|Activity withoutTrashed()
*
* @mixin \Eloquent
*/
class Activity extends Model
{
Expand All @@ -45,6 +19,7 @@ class Activity extends Model

public static $searchable = [
'name',
'description',
];

protected $dates = [
Expand Down
29 changes: 0 additions & 29 deletions app/Actor.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,6 @@

/**
* App\Actor
*
* @property int $id
* @property string $name
* @property string|null $nature
* @property string|null $type
* @property string|null $contact
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property \Illuminate\Support\Carbon|null $deleted_at
*
* @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Operation> $operations
* @property-read int|null $operations_count
*
* @method static \Illuminate\Database\Eloquent\Builder|Actor newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Actor newQuery()
* @method static \Illuminate\Database\Query\Builder|Actor onlyTrashed()
* @method static \Illuminate\Database\Eloquent\Builder|Actor query()
* @method static \Illuminate\Database\Eloquent\Builder|Actor whereContact($value)
* @method static \Illuminate\Database\Eloquent\Builder|Actor whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Actor whereDeletedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Actor whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Actor whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Actor whereNature($value)
* @method static \Illuminate\Database\Eloquent\Builder|Actor whereType($value)
* @method static \Illuminate\Database\Eloquent\Builder|Actor whereUpdatedAt($value)
* @method static \Illuminate\Database\Query\Builder|Actor withTrashed()
* @method static \Illuminate\Database\Query\Builder|Actor withoutTrashed()
*
* @mixin \Eloquent
*/
class Actor extends Model
{
Expand Down
30 changes: 1 addition & 29 deletions app/Annuaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,7 @@
use Illuminate\Database\Eloquent\SoftDeletes;

/**
* App\Annuaire
*
* @property int $id
* @property string $name
* @property string|null $description
* @property string|null $solution
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property \Illuminate\Support\Carbon|null $deleted_at
* @property int|null $zone_admin_id
*
* @property-read \App\ZoneAdmin|null $zone_admin
*
* @method static \Illuminate\Database\Eloquent\Builder|Annuaire newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Annuaire newQuery()
* @method static \Illuminate\Database\Query\Builder|Annuaire onlyTrashed()
* @method static \Illuminate\Database\Eloquent\Builder|Annuaire query()
* @method static \Illuminate\Database\Eloquent\Builder|Annuaire whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Annuaire whereDeletedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Annuaire whereDescription($value)
* @method static \Illuminate\Database\Eloquent\Builder|Annuaire whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Annuaire whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Annuaire whereSolution($value)
* @method static \Illuminate\Database\Eloquent\Builder|Annuaire whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Annuaire whereZoneAdminId($value)
* @method static \Illuminate\Database\Query\Builder|Annuaire withTrashed()
* @method static \Illuminate\Database\Query\Builder|Annuaire withoutTrashed()
*
* @mixin \Eloquent
* App\Annuaire *
*/
class Annuaire extends Model
{
Expand Down
27 changes: 0 additions & 27 deletions app/ApplicationBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,6 @@

/**
* App\ApplicationBlock
*
* @property int $id
* @property string $name
* @property string|null $description
* @property string|null $responsible
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property \Illuminate\Support\Carbon|null $deleted_at
*
* @property-read \Illuminate\Database\Eloquent\Collection|array<\App\MApplication> $applications
* @property-read int|null $applications_count
*
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationBlock newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationBlock newQuery()
* @method static \Illuminate\Database\Query\Builder|ApplicationBlock onlyTrashed()
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationBlock query()
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationBlock whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationBlock whereDeletedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationBlock whereDescription($value)
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationBlock whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationBlock whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationBlock whereResponsible($value)
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationBlock whereUpdatedAt($value)
* @method static \Illuminate\Database\Query\Builder|ApplicationBlock withTrashed()
* @method static \Illuminate\Database\Query\Builder|ApplicationBlock withoutTrashed()
*
* @mixin \Eloquent
*/
class ApplicationBlock extends Model
{
Expand Down
28 changes: 0 additions & 28 deletions app/ApplicationModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,6 @@
/**
* App\ApplicationModule
*
* @property int $id
* @property string $name
* @property string|null $description
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property \Illuminate\Support\Carbon|null $deleted_at
*
* @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Flux> $moduleDestFluxes
* @property-read int|null $module_dest_fluxes_count
* @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Flux> $moduleSourceFluxes
* @property-read int|null $module_source_fluxes_count
* @property-read \Illuminate\Database\Eloquent\Collection|array<\App\ApplicationService> $applicationServices
* @property-read int|null $modules_application_services_count
*
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationModule newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationModule newQuery()
* @method static \Illuminate\Database\Query\Builder|ApplicationModule onlyTrashed()
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationModule query()
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationModule whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationModule whereDeletedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationModule whereDescription($value)
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationModule whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationModule whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationModule whereUpdatedAt($value)
* @method static \Illuminate\Database\Query\Builder|ApplicationModule withTrashed()
* @method static \Illuminate\Database\Query\Builder|ApplicationModule withoutTrashed()
*
* @mixin \Eloquent
*/
class ApplicationModule extends Model
{
Expand Down
32 changes: 0 additions & 32 deletions app/ApplicationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,38 +10,6 @@
/**
* App\ApplicationService
*
* @property int $id
* @property string|null $description
* @property string|null $exposition
* @property string $name
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property \Illuminate\Support\Carbon|null $deleted_at
*
* @property-read \Illuminate\Database\Eloquent\Collection|array<\App\ApplicationModule> $modules
* @property-read int|null $modules_count
* @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Flux> $serviceDestFluxes
* @property-read int|null $service_dest_fluxes_count
* @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Flux> $serviceSourceFluxes
* @property-read int|null $service_source_fluxes_count
* @property-read \Illuminate\Database\Eloquent\Collection|array<\App\MApplication> $servicesMApplications
* @property-read int|null $services_m_applications_count
*
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationService newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationService newQuery()
* @method static \Illuminate\Database\Query\Builder|ApplicationService onlyTrashed()
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationService query()
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationService whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationService whereDeletedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationService whereDescription($value)
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationService whereExposition($value)
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationService whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationService whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationService whereUpdatedAt($value)
* @method static \Illuminate\Database\Query\Builder|ApplicationService withTrashed()
* @method static \Illuminate\Database\Query\Builder|ApplicationService withoutTrashed()
*
* @mixin \Eloquent
*/
class ApplicationService extends Model
{
Expand Down
24 changes: 0 additions & 24 deletions app/AuditLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,6 @@
/**
* App\AuditLog
*
* @property int $id
* @property string $description
* @property int|null $subject_id
* @property string|null $subject_type
* @property int|null $user_id
* @property \Illuminate\Support\Collection|null $properties
* @property string|null $host
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
*
* @method static \Illuminate\Database\Eloquent\Builder|AuditLog newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|AuditLog newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|AuditLog query()
* @method static \Illuminate\Database\Eloquent\Builder|AuditLog whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|AuditLog whereDescription($value)
* @method static \Illuminate\Database\Eloquent\Builder|AuditLog whereHost($value)
* @method static \Illuminate\Database\Eloquent\Builder|AuditLog whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|AuditLog whereProperties($value)
* @method static \Illuminate\Database\Eloquent\Builder|AuditLog whereSubjectId($value)
* @method static \Illuminate\Database\Eloquent\Builder|AuditLog whereSubjectType($value)
* @method static \Illuminate\Database\Eloquent\Builder|AuditLog whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|AuditLog whereUserId($value)
*
* @mixin \Eloquent
*/
class AuditLog extends Model
{
Expand Down
43 changes: 0 additions & 43 deletions app/Building.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,49 +10,6 @@
/**
* App\Building
*
* @property int $id
* @property string $name
* @property string|null $description
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property \Illuminate\Support\Carbon|null $deleted_at
* @property int|null $site_id
* @property bool|null $camera
* @property bool|null $badge
*
* @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Peripheral> $buildingPeripherals
* @property-read int|null $building_peripherals_count
* @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Phone> $buildingPhones
* @property-read int|null $building_phones_count
* @property-read \Illuminate\Database\Eloquent\Collection|array<\App\PhysicalServer> $buildingPhysicalServers
* @property-read int|null $building_physical_servers_count
* @property-read \Illuminate\Database\Eloquent\Collection|array<\App\PhysicalSwitch> $buildingPhysicalSwitches
* @property-read int|null $building_physical_switches_count
* @property-read \Illuminate\Database\Eloquent\Collection|array<\App\StorageDevice> $buildingStorageDevices
* @property-read int|null $building_storage_devices_count
* @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Workstation> $buildingWorkstations
* @property-read int|null $building_workstations_count
* @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Bay> $roomBays
* @property-read int|null $room_bays_count
* @property-read \App\Site|null $site
*
* @method static \Illuminate\Database\Eloquent\Builder|Building newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Building newQuery()
* @method static \Illuminate\Database\Query\Builder|Building onlyTrashed()
* @method static \Illuminate\Database\Eloquent\Builder|Building query()
* @method static \Illuminate\Database\Eloquent\Builder|Building whereBadge($value)
* @method static \Illuminate\Database\Eloquent\Builder|Building whereCamera($value)
* @method static \Illuminate\Database\Eloquent\Builder|Building whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Building whereDeletedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Building whereDescription($value)
* @method static \Illuminate\Database\Eloquent\Builder|Building whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Building whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Building whereSiteId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Building whereUpdatedAt($value)
* @method static \Illuminate\Database\Query\Builder|Building withTrashed()
* @method static \Illuminate\Database\Query\Builder|Building withoutTrashed()
*
* @mixin \Eloquent
*/
class Building extends Model
{
Expand Down
49 changes: 0 additions & 49 deletions app/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,55 +10,6 @@
/**
* App\Database
*
* @property int $id
* @property string $name
* @property string|null $description
* @property string|null $responsible
* @property string|null $type
* @property int|null $security_need_c
* @property string|null $external
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property \Illuminate\Support\Carbon|null $deleted_at
* @property int|null $entity_resp_id
* @property int|null $security_need_i
* @property int|null $security_need_a
* @property int|null $security_need_t
*
* @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Flux> $databaseDestFluxes
* @property-read int|null $database_dest_fluxes_count
* @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Flux> $databaseSourceFluxes
* @property-read int|null $database_source_fluxes_count
* @property-read \Illuminate\Database\Eloquent\Collection|array<\App\MApplication> $databasesMApplications
* @property-read int|null $databases_m_applications_count
* @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Entity> $entities
* @property-read int|null $entities_count
* @property-read \App\Entity|null $entity_resp
* @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Information> $informations
* @property-read int|null $informations_count
*
* @method static \Illuminate\Database\Eloquent\Builder|Database newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Database newQuery()
* @method static \Illuminate\Database\Query\Builder|Database onlyTrashed()
* @method static \Illuminate\Database\Eloquent\Builder|Database query()
* @method static \Illuminate\Database\Eloquent\Builder|Database whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Database whereDeletedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Database whereDescription($value)
* @method static \Illuminate\Database\Eloquent\Builder|Database whereEntityRespId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Database whereExternal($value)
* @method static \Illuminate\Database\Eloquent\Builder|Database whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Database whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Database whereResponsible($value)
* @method static \Illuminate\Database\Eloquent\Builder|Database whereSecurityNeedA($value)
* @method static \Illuminate\Database\Eloquent\Builder|Database whereSecurityNeedC($value)
* @method static \Illuminate\Database\Eloquent\Builder|Database whereSecurityNeedI($value)
* @method static \Illuminate\Database\Eloquent\Builder|Database whereSecurityNeedT($value)
* @method static \Illuminate\Database\Eloquent\Builder|Database whereType($value)
* @method static \Illuminate\Database\Eloquent\Builder|Database whereUpdatedAt($value)
* @method static \Illuminate\Database\Query\Builder|Database withTrashed()
* @method static \Illuminate\Database\Query\Builder|Database withoutTrashed()
*
* @mixin \Eloquent
*/
class Database extends Model
{
Expand Down
19 changes: 0 additions & 19 deletions app/Dnsserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,6 @@
/**
* App\Dnsserver
*
* @property int $id
* @property string $name
* @property string|null $description
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property \Illuminate\Support\Carbon|null $deleted_at
* @method static \Illuminate\Database\Eloquent\Builder|Dnsserver newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Dnsserver newQuery()
* @method static \Illuminate\Database\Query\Builder|Dnsserver onlyTrashed()
* @method static \Illuminate\Database\Eloquent\Builder|Dnsserver query()
* @method static \Illuminate\Database\Eloquent\Builder|Dnsserver whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Dnsserver whereDeletedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Dnsserver whereDescription($value)
* @method static \Illuminate\Database\Eloquent\Builder|Dnsserver whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Dnsserver whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Dnsserver whereUpdatedAt($value)
* @method static \Illuminate\Database\Query\Builder|Dnsserver withTrashed()
* @method static \Illuminate\Database\Query\Builder|Dnsserver withoutTrashed()
* @mixin \Eloquent
*/
class Dnsserver extends Model
{
Expand Down
Loading

0 comments on commit 59fce01

Please sign in to comment.