<?php

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

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

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