id(); $table->string('nom'); $table->foreignId('lieu_id')->nullable()->constrained('lieux')->nullOnDelete(); $table->string('adresse')->nullable(); $table->string('email_contact')->nullable(); $table->string('url')->nullable(); $table->timestamps(); }); Schema::create('section_user', function (Blueprint $table) { $table->foreignId('section_id')->constrained()->cascadeOnDelete(); $table->foreignId('user_id')->constrained()->cascadeOnDelete(); $table->string('role_in_section')->default('member'); // section_manager | member $table->primary(['section_id', 'user_id']); }); } public function down(): void { Schema::dropIfExists('section_user'); Schema::dropIfExists('sections'); } };