id(); $table->string("method", 50); $table->string('menu', 50); $table->json('new_request')->nullable(); $table->json('old_request')->nullable(); $table->string("description", 255)->nullable(); $table->string('status', 1)->default(0)->nullable(); $table->timestamps(); $table->timestamp('approved_at')->nullable(); $table->softDeletes(); $table->unsignedBigInteger('created_by')->nullable(); $table->unsignedBigInteger('updated_by')->nullable(); $table->unsignedBigInteger('deleted_by')->nullable(); $table->unsignedBigInteger('approved_by')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('approvals'); } };