2017_04_19_090837_Admin.php 752 Bytes
<?php

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

class Admin extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('Admin',function (Blueprint $table){
            $table->increments('id_Admin');
            $table->integer('id_Akun')->unsigned();
            //$table->foreign('id_Akun')->references('id')->on('akun')->onDelete('cascade');
            $table->string('nama');
            $table->timestamps();
        });
    }

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