<?php

use Illuminate\Database\Seeder;

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

        // データの挿入
        $situations = [
            ['code' => 10, 'name' => '居住中'],
            ['code' => 11, 'name' => '空'],
            ['code' => 12, 'name' => '賃貸中'],
            ['code' => 13, 'name' => '建築中'],
            ['code' => 14, 'name' => '完成済'],
            ['code' => 15, 'name' => '未着工'],
        ];
        DB::table('mst_situations')->insert($situations);
    }
}
