<?php

namespace Database\Seeders;

use App\Models\Corporate;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class DummyCorporateSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        Corporate::truncate();

        $corporate = Corporate::create([
            'code' => 'UNTR0001',
            'name' => 'United Tractor',
            'welcome_message' => 'Welcome to United Tractor',
            'help_text' => 'You can blah blah blah blah',
            'active' => true
        ]);

        $corporate->corporatePlans()->create([
            'code' => 'PLAN001',
            'name' => 'PLAN Name',
            'description' => 'Description of PLAN Name',
            'active' => true,
        ]);

        $corporate->corporateBenefits()->create([
            'code' => 'BENEFIT001',
            'name' => 'BENEFIT Name',
            'description' => 'Description of BENEFIT Name',
            'active' => true,
        ]);

        $corporate->corporateDivisions()->create([
            'code' => 'DIVISION001',
            'name' => 'DIVISION Name',
            'description' => 'Description of DIVISION Name',
            'active' => true,
        ]);
    }
}
