<?php

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

class CreateOwnerPaymentTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::create('owner_payments', function(Blueprint $table) {
           $table->increments('id');
           $table->integer('owner_id')->nullable();
           $table->bigInteger('amount')->nullable();
           $table->string('owner_name')->nullable();
           $table->string('owner_phone')->nullable();
           $table->text('note')->nullable();
           $table->timestamps();
        });
    }

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