increments('id'); $table->integer('grade_id'); // base grade id $table->string('rule_name'); // name of the rule $table->json('rules'); // json string containing all the rules $table->integer('status')->default(0); // 0 inactive; 1 active rule $table->softDeletes(); $table->integer('deleted_by')->nullable(); // user id of the user deleting the rule $table->timestamps(); $table->integer('updated_by'); // user id of the user updating the rule }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('approval_rule'); } }