<?php

namespace Database\Factories;

use App\Models\JobseekerSubscription;

use Illuminate\Database\Eloquent\Factories\Factory;

use Carbon\Carbon; 

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\JobSeekerSubscription>
 */
class JobSeekerSubscriptionFactory extends Factory
{
    /**
     * The name of the factory's corresponding model 
     * 
     * @var string 
     */
    protected $model = JobseekerSubscription::class; 

    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        //! JobseekerSubscription::factory()->state(['worker_id' => 1, 'rate_id' => 1])->create();

        return [
            'rate_id'     =>    0, //! Free Trial 
            'duration'    =>    Carbon::now(), 
            'date_paused' =>    null,
            'status'      =>   'trial',
            'customer_id' =>    $this->faker->bothify("cus_??????????????"),
        ];
    }
}
