<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

/**
 * Migration auto-generated by Sequel Pro Laravel Export
 * @see https://github.com/cviebrock/sequel-pro-laravel-export
 */
class CreateS1GoodsImagesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('s1_goods_images', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('goods_id');
            $table->string('url', 255)->comment('图片地址');
            $table->nullableTimestamps();
            $table->softDeletes();

            $table->index('goods_id', 's1_goods_images_goods_id_foreign');

            

        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('s1_goods_images');
    }
}
