<?php

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

class CreateDealerRegistrationsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        // Schema::create('dealer_registrations', function (Blueprint $table) {
        //     $table->increments('id');
        //     $table->integer('type_id')->unsigned()->nullable();
        //     $table->foreign('type_id')->references('id')->on('plot_types')->onDelete('cascade');

        //     $table->integer('category_id')->unsigned();
        //     $table->foreign('category_id')->references('id')->on('plot_categories')->onDelete('cascade');
        //     $table->integer('size_id')->unsigned();
        //     $table->foreign('size_id')->references('id')->on('plot_sizes')->onDelete('cascade');

        //     $table->integer('registration_id')->unsigned();
        //     $table->foreign('registration_id')->references('id')->on('registration_nos')->onDelete('cascade');

        //     $table->integer('dealer_id')->unsigned();
        //     $table->foreign('dealer_id')->references('id')->on('dealers')->onDelete('cascade');

        //     $table->integer('receipt_id')->unsigned()->nullable();
        //     $table->foreign('receipt_id')->references('id')->on('receipts')->onDelete('cascade');

        //     $table->boolean('status')->default(1);

        //     $table->date('hold_upto');
        //     $table->timestamps();
        // });
    }

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