increments('id'); // Foreign Keys $table->integer('consumer_application_id')->unsigned(); $table->integer('deviation_type_id')->unsigned(); $table->text('application_details')->nullable(); // Storing details (JSON or text) $table->integer('maker_id')->unsigned(); $table->text('maker_deviation_notes')->nullable(); $table->integer('checker_id')->unsigned()->nullable(); $table->text('checker_comment')->nullable(); $table->string('status')->default('Pending'); // Approved, Rejected, Pending $table->timestamps(); // created_at, updated_at $table->softDeletes(); // deleted_at }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('application_deviation'); } }