| 123456789101112131415161718192021222324 |
- <?php
- /** @var \Illuminate\Database\Eloquent\Factory $factory */
- use App\Procurement;
- use Faker\Generator as Faker;
- $factory->define(Procurement::class, function (Faker $faker) {
- return [
- 'code' => $faker->uuid,
- 'owner_material_id' => random_int(1, 100),
- 'supplier_id' => random_int(1, 100),
- 'quantity' => random_int(1, 100),
- 'amount' => random_int(1, 100),
- 'unit_price' => random_int(1, 100),
- 'cost_price' => random_int(1, 100),
- 'status' => random_int(0, 11),
- 'initiator' => random_int(1, 100),
- 'type' => random_int(0, 100),
- 'deadline' => now(),
- 'created_at' => now()->subMonth()->startOfMonth()->addDays(random_int(0, 28)),
- 'updated_at' => now()->subMonth()->startOfMonth()->addDays(random_int(0, 28)),
- ];
- });
|