feat: implement core material requisition, project management, and daily reporting modules with workflow validation and automated documentation support.
This commit is contained in:
24
Modules/MasterData/database/factories/MaterialFactory.php
Normal file
24
Modules/MasterData/database/factories/MaterialFactory.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\MasterData\Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
use Modules\MasterData\Models\Material;
|
||||
|
||||
class MaterialFactory extends Factory
|
||||
{
|
||||
protected $model = Material::class;
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'name' => fake()->word() . ' Material',
|
||||
'sku' => strtoupper(fake()->bothify('MAT-###??')),
|
||||
'category' => fake()->randomElement(['concrete', 'steel', 'wood', 'electrical']),
|
||||
'unit' => fake()->randomElement(['pcs', 'kg', 'm', 'bag']),
|
||||
'unit_cost' => fake()->randomFloat(2, 10, 5000),
|
||||
'status' => 'active',
|
||||
'type' => 'single',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user