Ajoute dossiers et association de site aux schémas d'infrastructure

- Navigation par dossiers dans la section Infrastructure (créer, parcourir,
  fil d'ariane), isolée du navigateur Documents comme les schémas eux-mêmes.
- Un schéma peut être associé à un site de l'organisation, avec filtre par
  site dans la liste.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
mrKamoo
2026-08-24 07:57:45 +02:00
co-authored by Claude Sonnet 5
parent 3e5878192e
commit c1c6d56d1e
6 changed files with 241 additions and 24 deletions
@@ -0,0 +1,22 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('documents', function (Blueprint $table) {
$table->foreignId('location_id')->nullable()->after('folder_id')->constrained()->nullOnDelete();
});
}
public function down(): void
{
Schema::table('documents', function (Blueprint $table) {
$table->dropConstrainedForeignId('location_id');
});
}
};