28 lines
669 B
PHP
28 lines
669 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace Database\Factories;
|
||
|
|
|
||
|
|
use App\Models\PricingTier;
|
||
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @extends Factory<PricingTier>
|
||
|
|
*/
|
||
|
|
class PricingTierFactory extends Factory
|
||
|
|
{
|
||
|
|
protected $model = PricingTier::class;
|
||
|
|
|
||
|
|
public function definition(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'tier_no' => fake()->numberBetween(1, 7),
|
||
|
|
'leads_in_tier' => fake()->randomElement([300, 700, 1000, 2000, 5000, 10000, null]),
|
||
|
|
'price_per_lead_kopecks' => fake()->numberBetween(2000, 7000),
|
||
|
|
'is_active' => true,
|
||
|
|
'effective_from' => now()->toDateString(),
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|