/
home
/
sjslayjy
/
public_html
/
tabson
/
database
/
migrations
/
Upload File
HOME
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTokensTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('tokens', function (Blueprint $table) { $table->bigIncrements('id'); $table->integer('master_rake_id'); $table->integer('company_id'); $table->integer('dealer_id')->nullable(); $table->date('date_of_generation'); $table->integer('warehouse_id')->nullable(); $table->integer('rate')->nullable(); $table->integer('product_company_id'); $table->integer('product_id'); $table->integer('quantity'); $table->integer('unit_id'); $table->integer('account_id')->nullable(); $table->integer('transporter_id')->nullable(); $table->integer('warehouse_keeper_id')->nullable(); $table->string('truck_number')->nullable(); $table->mediumText('description')->nullable(); $table->integer('is_active')->default(true); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('tokens'); } }