<?php

use Illuminate\Database\Seeder;

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

        // データの挿入
        $trade_transaction_types = [
            ['code' => 1, 'name' => '売主'],
            ['code' => 2, 'name' => '代理'],
            ['code' => 3, 'name' => '専任'],
            ['code' => 4, 'name' => '一般'],
            ['code' => 5, 'name' => '専属専任'],
            ['code' => 6, 'name' => '媒介'],
        ];
        DB::table('mst_trade_transaction_types')->insert($trade_transaction_types);
    }
}
