
PK 
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSiteSetingsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('site_setings', function (Blueprint $table) {
$table->increments('id')->unsigned();
$table->string('facebook_url')->default('');
$table->string('facebook_authkey')->default('');
$table->string('google_url')->default('');
$table->string('google_authkey')->default('');
$table->string('twitter_url')->default('');
$table->string('twitter_authkey')->default('');
$table->string('company_name')->default('');
$table->string('company_address')->default('');
$table->string('company_gstno')->default('');
$table->string('company_state')->default('');
$table->tinyInteger('carddiscount_type')->unsigned()->default(1)->comment('1:no;2:flat;2:%rate');
$table->double('cardmin_amount', 8, 2)->default(0);
$table->double('carddiscount_rate', 8, 2)->default(0);
$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');
$table->index('company_state');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('site_setings');
}
}


PK 99