<?php

use Illuminate\Database\Seeder;

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

        // データの挿入
        $rights = [
            ['code' => 1, 'name' => '所有権'],
            ['code' => 2, 'name' => '地上権'],
            ['code' => 3, 'name' => '賃借権'],
            ['code' => 4, 'name' => '普通地上権'],
            ['code' => 5, 'name' => '定期地上権'],
            ['code' => 6, 'name' => '普通賃借権'],
            ['code' => 7, 'name' => '定期賃借権'],
        ];
        DB::table('mst_rights')->insert($rights);
    }
}
