<?php

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

class AddDataPropertyRoomBedTypeTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        DB::statement('SET FOREIGN_KEY_CHECKS=0;');
        DB::table('property_room_bed_type')->truncate();
        DB::statement('SET FOREIGN_KEY_CHECKS=1;');

        DB::table('property_room_bed_type')->insert(
            [
                [
                    'name' => 'Bunk Bed',
                    'language_key' => '',
                    'icon' => '1.png',
                    'status' => 1,
                    'created_by' => 1,
                    'updated_by' => 1,
                    'created_at' => 1,
                    'updated_at' => 1,
                ],
                [
                    'name' => 'Double Bed',
                    'language_key' => '',
                    'icon' => '1.png',
                    'status' => 1,
                    'created_by' => 1,
                    'updated_by' => 1,
                    'created_at' => 1,
                    'updated_at' => 1,
                ],
                [
                    'name' => 'French Bed',
                    'language_key' => '',
                    'icon' => '1.png',
                    'status' => 1,
                    'created_by' => 1,
                    'updated_by' => 1,
                    'created_at' => 1,
                    'updated_at' => 1,
                ],
                [
                    'name' => 'Futon',
                    'language_key' => '',
                    'icon' => '1.png',
                    'status' => 1,
                    'created_by' => 1,
                    'updated_by' => 1,
                    'created_at' => 1,
                    'updated_at' => 1,
                ],
                [
                    'name' => 'King Bed',
                    'language_key' => '',
                    'icon' => '1.png',
                    'status' => 1,
                    'created_by' => 1,
                    'updated_by' => 1,
                    'created_at' => 1,
                    'updated_at' => 1,
                ],
                [
                    'name' => 'Queen Bed',
                    'language_key' => '',
                    'icon' => '1.png',
                    'status' => 1,
                    'created_by' => 1,
                    'updated_by' => 1,
                    'created_at' => 1,
                    'updated_at' => 1,
                ],
                [
                    'name' => 'Single Bed',
                    'language_key' => '',
                    'icon' => '1.png',
                    'status' => 1,
                    'created_by' => 1,
                    'updated_by' => 1,
                    'created_at' => 1,
                    'updated_at' => 1,
                ],
                [
                    'name' => 'Sofa Bed',
                    'language_key' => '',
                    'icon' => '1.png',
                    'status' => 1,
                    'created_by' => 1,
                    'updated_by' => 1,
                    'created_at' => 1,
                    'updated_at' => 1,
                ],
                [
                    'name' => 'Twin Bed',
                    'language_key' => '',
                    'icon' => '1.png',
                    'status' => 1,
                    'created_by' => 1,
                    'updated_by' => 1,
                    'created_at' => 1,
                    'updated_at' => 1,
                ]

            ]

        );

        DB::statement('SET FOREIGN_KEY_CHECKS=0;');
        DB::table('property_executive_type')->truncate();
        DB::statement('SET FOREIGN_KEY_CHECKS=1;');

        $result =  DB::table('property_executive_type')->insert(
            [
                'name' => 'Accounting',
                'language_key' => '',
                'status' => 1,
                'created_by' => 1,
                'updated_by' => 1,
                'created_at' => 1,
                'updated_at' => 1,
            ]
        );
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        DB::statement('SET FOREIGN_KEY_CHECKS=0;');
        DB::table('property_room_bed_type')->truncate();
        DB::statement('SET FOREIGN_KEY_CHECKS=1;');
    }
}
