unsignedBigInteger('id')->autoIncrement(); $table->integer('application_id'); $table->string('esign_vendor', 25)->default('self'); // self, digio $table->enum('esign_type', ['otp','dsc','adh'])->default('otp'); // self, digio $table->string('vendor_doc_id', 255)->nullable(); $table->boolean('is_stamped')->default(0); $table->string('stamp_tag', 25)->nullable(); $table->unsignedTinyInteger('stamp_qty')->default(0); $table->enum('status',['pen','com','exp'])->default('pen'); $table->unsignedSmallInteger('expiry_days')->default(0); $table->boolean('is_bor_signed')->default(0); $table->string('bor_signed_id', 255)->nullable(); $table->boolean('is_cobor')->default(0); $table->boolean('is_cobor_signed')->default(0); $table->string('cobor_signed_id', 255)->nullable(); $table->longText('response')->nullable(); $table->softDeletes(); $table->timestamps(); $table->index(['application_id'],'ind1'); $table->index(['application_id','created_at','deleted_at'],'ind2'); $table->index(['application_id','vendor_doc_id','deleted_at'],'ind3'); }); } } /** * Reverse the migrations. * * @return void */ public function down() { // } }