<?php

use Illuminate\Database\Seeder;

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

        // データの挿入
        $land_categories = [
            ['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' => '公衆用道路'],
            ['code' => 12, 'name' => '鉱泉地'],
            ['code' => 13, 'name' => '水道用地'],
            ['code' => 14, 'name' => '井溝'],
            ['code' => 15, 'name' => 'ため池'],
            ['code' => 16, 'name' => '池沼'],
            ['code' => 17, 'name' => '堤'],
            ['code' => 18, 'name' => '保安林'],
            ['code' => 19, 'name' => '牧場'],
            ['code' => 20, 'name' => '墓地'],
            ['code' => 21, 'name' => '用悪水路'],
            ['code' => 22, 'name' => '旧既存宅地'],
            ['code' => 99, 'name' => 'その他'],
        ];
        DB::table('mst_land_categories')->insert($land_categories);
    }
}
