<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateTaxesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('taxes', function (Blueprint $table) { $table->id(); $table->unsignedInteger('admin_id'); $table->string('discount'); $table->enum('discount_type', ['flat', 'percentage']); $table->enum('is_enable', ['yes', 'no']); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('taxes'); } }