<?php

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

class CreateSlidersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('sliders', function (Blueprint $table) {
            $table->id();
			$table->string("name");
			$table->string("slug")->nullable();
			$table->string("position")->nullable();
			$table->integer("size")->default(0);
			$table->boolean("autoplay")->default(true);
			$table->string("autoplaySpeed")->nullable();
			$table->string("speed")->nullable();
			$table->integer("slidesToShow")->default(1);
			$table->integer("slidesToScroll")->default(1);
			$table->boolean("infinite")->default(true);
			$table->boolean("fade")->default(true);
			$table->boolean("dots")->default(false);
			$table->boolean("arrows")->default(false);
			$table->boolean("pauseOnHover")->default(false);
			$table->boolean("pauseOnFocus")->default(false);
			$table->boolean("is_activated")->default(true);
			$table->boolean("is_deleted")->default(false);
            $table->timestamps();
        });
    }

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