32 lines
956 B
PHP
32 lines
956 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\UserAboOneTimeItem;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<UserAboOneTimeItem>
|
|
*/
|
|
class UserAboOneTimeItemFactory extends Factory
|
|
{
|
|
protected $model = UserAboOneTimeItem::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'user_abo_id' => $this->faker->randomNumber(3),
|
|
'product_id' => $this->faker->randomNumber(3),
|
|
'comp' => 0,
|
|
'qty' => $this->faker->numberBetween(1, 5),
|
|
'price' => $this->faker->randomFloat(2, 5, 100),
|
|
'price_net' => $this->faker->randomFloat(3, 4, 90),
|
|
'tax_rate' => 19.00,
|
|
'tax' => $this->faker->randomFloat(3, 1, 20),
|
|
'price_vk_net' => $this->faker->randomFloat(3, 4, 90),
|
|
'discount' => 0,
|
|
'points' => $this->faker->numberBetween(0, 50),
|
|
'status' => 1,
|
|
];
|
|
}
|
|
}
|