<?php

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

class Create1557412823767ReferensipkapksTable extends Migration
{
    public function up()
    {
        Schema::create('referensipkapks', function (Blueprint $table) {
            $table->increments('id');
            $table->unsignedInteger('nama_id')->nullable();
            $table->foreign('nama_id', 'nama_fk_46229')->references('id')->on('identitas_kliens');
            $table->date('tanggal_bimbingan')->nullable();
            $table->timestamps();
            $table->softDeletes();
        });
    }

    public function down()
    {
        Schema::dropIfExists('referensipkapks');
    }
}
