<?php

use App\Classes\ValueObjects\Constants\AccountStatus;
use App\Classes\ValueObjects\Constants\CompanyTypes;
use App\Classes\ValueObjects\Constants\ModuleTypes;
use App\Models\Company;
use Illuminate\Database\Seeder;

class CompaniesTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {

        $company = new Company();
        $company->reference_no = 1000000000;
        $company->name = 'CIEF Worldwide SDN BHD';
        $company->type = CompanyTypes::COMPANY_BUSINESS;
        $company->status = AccountStatus::ACTIVE;
        $company->save();

        $company->modules()->create(['module_type' => ModuleTypes::FORWARDER]);


//        if (app()->environment('local'))
//            factory(App\Models\Company::class, 30)->create();
    }
}
