20-02-2026
This commit is contained in:
parent
854ce02bf6
commit
4d6b4930b2
128 changed files with 18247 additions and 2093 deletions
26
database/factories/ProductActivityFactory.php
Normal file
26
database/factories/ProductActivityFactory.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\Product;
|
||||
use App\Models\ProductActivity;
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends Factory<ProductActivity>
|
||||
*/
|
||||
class ProductActivityFactory extends Factory
|
||||
{
|
||||
protected $model = ProductActivity::class;
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'product_id' => Product::factory(),
|
||||
'user_id' => User::factory(),
|
||||
'action' => fake()->randomElement(['created', 'updated', 'submitted', 'approved', 'correction', 'rejected']),
|
||||
'note' => null,
|
||||
];
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue