id(); $table->string('pays')->nullable(); $table->string('villes')->nullable(); $table->string('communes')->nullable(); $table->string('departement')->nullable(); $table->string('nom')->nullable(); $table->string('prenom')->nullable(); $table->date('date_naissance')->nullable(); $table->string('sexe')->nullable(); $table->string('statut')->nullable(); $table->string('fonction')->nullable(); $table->string('numero')->nullable(); $table->string('contact_urgence', 20)->nullable(); // 20 est un exemple, ajustez-le selon vos besoins $table->string('email')->unique()->nullable(); $table->string('cv')->nullable(); $table->string('cni')->nullable(); $table->string('autres')->nullable(); $table->string('photo')->nullable(); $table->unsignedBigInteger('user_id'); $table->foreign('user_id') ->references('id') ->on('users') ->index() ->constrained() ->cascadeOnDelete(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('profile_infos'); } };