<?php

namespace Database\Factories;

use App\Models\Branch;
use App\Models\Business;
use Illuminate\Database\Eloquent\Factories\Factory;

/** @extends Factory<Branch> */
class BranchFactory extends Factory
{
    protected $model = Branch::class;
    public function definition(): array
    {
        return ['business_id'=>Business::factory(),'name'=>$this->faker->city().' Branch','code'=>strtoupper($this->faker->unique()->lexify('???')).$this->faker->unique()->numerify('###'),'status'=>'active'];
    }
}
