id(); $table->foreignId('user_id')->constrained()->onDelete('cascade'); // Student Info $table->string('first_name'); $table->string('last_name'); $table->string('nic')->nullable(); $table->string('nationality')->nullable(); $table->string('address'); $table->string('state'); $table->string('gender')->nullable(); $table->date('dob')->nullable(); // Contact Info $table->string('mobile'); $table->string('mobile2')->nullable(); $table->string('email'); $table->string('preferred_contact_method')->nullable(); // Academic Qualifications $table->string('still_at_school')->nullable(); $table->string('highest_qualification')->nullable(); $table->string('school_name')->nullable(); $table->integer('year_completed')->nullable(); $table->string('exam_passed')->nullable(); $table->string('subjects')->nullable(); $table->text('grades_results')->nullable(); $table->json('certificates')->nullable(); // Multi-file paths JSON row එකක් ලෙස // Emergency Contacts $table->string('emergency_contact_name'); $table->string('emergency_contact_relationship'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('applications'); } };