<?php
 use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateLinkDashboard extends Migration { public function up() { Schema::create('link_dashboard', function (Blueprint $table) { $table->increments('id'); $table->timestamps(); $table->bigInteger('linkId')->nullable()->comment(''); $table->integer('pv')->nullable()->comment(''); $table->integer('uv')->nullable()->comment(''); $table->integer('ipCount')->nullable()->comment(''); $table->index(['linkId']); }); } public function down() { } } 