<?php

use Illuminate\Database\Seeder;

class MstOtherrestrictionSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        // データのクリア
        DB::table('mst_otherrestrictions')->truncate();

        // データの挿入
        $other_restriction = [
            ['code' => 1, 'name' => '一部都市計画道路'],
            ['code' => 2, 'name' => '一部協定通路'],
            ['code' => 3, 'name' => '日影制限有'],
            ['code' => 4, 'name' => '隅切り有'],
            ['code' => 5, 'name' => '接道と段差有'],
            ['code' => 6, 'name' => '敷地内段差有'],
            ['code' => 7, 'name' => '壁面後退有'],
            ['code' => 8, 'name' => '建築協定有'],
            ['code' => 9, 'name' => '崖上につき建築制限有'],
            ['code' => 10, 'name' => '崖下につき建築制限有'],
            ['code' => 11, 'name' => '不整形地'],
        ];
        DB::table('mst_otherrestrictions')->insert($other_restriction);
    }
}
