<?php

use Illuminate\Database\Seeder;

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

        // データの挿入
        $statuses = [
            ['code' => 1, 'name' => '販売中'],
            ['code' => 2, 'name' => '商談中'],
            ['code' => 3, 'name' => '契約予定'],
            ['code' => 4, 'name' => '契約済'],
            ['code' => 5, 'name' => '売りやめ'],
            ['code' => 6, 'name' => '保留'],
            // ['code' => 1, 'name' => '公開'],
            // ['code' => 2, 'name' => '他社商談'],
            // ['code' => 3, 'name' => '自社商談'],
            // ['code' => 4, 'name' => '保留'],
            // ['code' => 5, 'name' => '他社済み'],
            // ['code' => 6, 'name' => '自社済み'],
            // ['code' => 7, 'name' => '中止'],
            // ['code' => 8, 'name' => '査定中'],
        ];
        DB::table('mst_statuses')->insert($statuses);
    }
}
