
PK 
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateProductVariantesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('product_variantes', function (Blueprint $table) {
$table->increments('id');
$table->integer('vender_id')->unsigned()->default(0);
$table->integer('product_id')->unsigned()->default(0);
$table->string('variant_name');
$table->string('variant_type');
$table->string('variant_material');
$table->string('variant_image');
$table->integer('variant_sortby')->unsigned()->default(1);
$table->tinyInteger('isvisible')->unsigned()->comment('1:No;2:Yes');
$table->tinyInteger('isactive')->unsigned()->default(1)->comment('0:inactive;1:active');
$table->tinyInteger('isdelete')->unsigned()->default(1)->comment('0:isdelete;1:active');
$table->integer('addedby')->unsigned()->default(0);
$table->timestamps();
$table->softDeletes();
$table->ipAddress('visitor');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('product_variantes');
}
}


PK 99