<?php

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

class CreateTermsOfPaymentsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
//        Schema::create('terms_of_payments', function (Blueprint $table) {
//            $table->bigIncrements('id');
//            $table->timestamps();
//        });
        Schema::create('terms_of_payments', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('header')->nullable();
            $table->string('content_option_one')->nullable();
            $table->string('content_option_two')->nullable();
            $table->string('content_option_three')->nullable();
            $table->string('color_of_elements')->nullable();
            $table->boolean('appeal')->default(0)->nullable();
            $table->timestamps();
            $table->softDeletes();
        });
    }

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