Abo Einmalprodukte und Bestätigung abschließen

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Kevin 2026-06-05 15:28:08 +00:00
parent 2bdc9ada3c
commit 2269ce031f
57 changed files with 3647 additions and 371 deletions

View file

@ -0,0 +1,32 @@
<?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,
];
}
}