<?php

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

class CreateShopCsvLogTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shop_csv_logs', function (Blueprint $table) {
            $table->id();
            $table->string('file_name');
            $table->integer('total')->nullable();
            $table->integer('current')->nullable();
            $table->integer('imported')->nullable();
            $table->integer('error')->nullable();
            $table->integer('status')->default(0);
            $table->timestamps();
        });
    }

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