bigIncrements('id'); $table->string('upload_batch_id', 36)->nullable()->index(); $table->string('pincode', 20); $table->unsignedTinyInteger('type')->comment('0=NEGATIVE, 1=POSITIVE, 2=RISKY'); $table->string('state')->nullable(); $table->string('city')->nullable(); $table->string('area')->nullable(); $table->string('location')->nullable(); $table->string('comment')->nullable(); $table->unsignedTinyInteger('level')->nullable()->default(1); $table->unsignedInteger('user_id')->nullable(); $table->string('agency_name')->nullable(); $table->timestamps(); $table->softDeletes(); $table->index('pincode'); $table->index('type'); $table->index(['type', 'pincode']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('pincode_classifications'); } }