
PK 
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateBannersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('banners', function (Blueprint $table) {
$table->increments('id')->unsigned();
$table->integer('vender_id')->unsigned()->default(0);
$table->integer('category_id')->unsigned()->default(0);
$table->integer('banner_sortby')->unsigned()->default(1);
$table->string('banner_title', 150);
$table->string('banner_desc', 255);
$table->string('banner_url', 250);
$table->string('banner_image', 150);
$table->tinyInteger('isvisible')->unsigned()->default(1)->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();
$table->timestamps();
$table->softDeletes();
$table->ipAddress('visitor');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('banners');
}
}


PK 99