<?php
 use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateLink extends Migration { public function up() { Schema::create('link', function (Blueprint $table) { $table->bigIncrements('id'); $table->timestamps(); $table->integer('memberUserId')->nullable()->comment(''); $table->string('title', 20)->nullable()->comment(''); $table->string('urlBase', 50)->nullable()->comment(''); $table->string('url', 400)->nullable()->comment(''); $table->integer('expire')->nullable()->comment(''); $table->index(['memberUserId']); }); } public function down() { } } 