<?php

use Illuminate\Database\Seeder;

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

        // データの挿入
        $structures = [
            ['code' => 1, 'name' => '木造'],
            ['code' => 2, 'name' => 'ブロック'],
            ['code' => 3, 'name' => '鉄骨'],
            ['code' => 4, 'name' => 'RC'],
            ['code' => 11, 'name' => 'RCB'],
            ['code' => 5, 'name' => 'SRC'],
            ['code' => 10, 'name' => 'WRC'],
            ['code' => 6, 'name' => 'PC'],
            ['code' => 7, 'name' => 'HPC'],
            ['code' => 8, 'name' => '軽量鉄骨'],
            ['code' => 9, 'name' => 'ALC'],
        ];
        DB::table('mst_structures')->insert($structures);
    }
}
