<?php

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

class CreatePostNewsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //

        Schema::create('post_news', function(Blueprint $table) {
            $table->increments('id');
            $table->string('owner_name')->nullable();
            $table->string('owner_phone')->nullable();
            $table->string('email')->nullable();
            $table->string('title')->nullable();
            $table->text('description')->nullable();
            $table->integer('user_id')->nullable();
            $table->string('province')->nullable();
            $table->string('district')->nullable();
            $table->string('ward')->nullable();
            $table->string('address')->nullable();
            $table->integer('price')->nullable();
            $table->integer('deposit')->nullable();
            $table->integer('amount_people')->nullable();
            $table->float('size')->nullable();
            $table->date('date_available')->nullable();
            $table->string('image')->nullable();
            $table->integer('type_id')->nullable();
            $table->integer('status')->nullable();
            $table->string('amenities')->nullable();
            $table->integer('electricity_price')->nullable();
            $table->integer('type_electrict_price')->nullable();
            $table->integer('water_price')->nullable();
            $table->integer('type_water_price')->nullable();
            $table->string('province_name')->nullable();
            $table->string('district_name')->nullable();
            $table->string('ward_name')->nullable();
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
