bigIncrements('id'); $table->string('name'); $table->enum('type', ['sales', 'purchase']); $table->enum('item_rate', ['percent', 'manual']); $table->text('description')->nullable(); // if percent $table->boolean('is_increase')->default(0)->nullable(); $table->bigInteger('percentage')->default(0)->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('price_lists'); } }