<?php

use Illuminate\Database\Seeder;

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

        // データの挿入
        $use_districts = [
            ['code' => 6, 'name' => '指定無'],
            ['code' => 7, 'name' => '1種低層'],
            ['code' => 8, 'name' => '2種低層'],
            ['code' => 9, 'name' => '1種中高'],
            ['code' => 10, 'name' => '2種中高'],
            ['code' => 11, 'name' => '1種住居'],
            ['code' => 12, 'name' => '2種住居'],
            ['code' => 13, 'name' => '準住居'],
            ['code' => 1, 'name' => '近隣商業'],
            ['code' => 2, 'name' => '商業'],
            ['code' => 3, 'name' => '準工業'],
            ['code' => 4, 'name' => '工業'],
            ['code' => 5, 'name' => '工専'],
            ['code' => 14, 'name' => '田園住居地域'],

        ];
        DB::table('mst_use_districts')->insert($use_districts);
    }
}
