OwnerStoreOutFeeDetailFactory.php 964 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /** @var \Illuminate\Database\Eloquent\Factory $factory */
  3. use App\OwnerStoreOutFeeDetail;
  4. use Faker\Generator as Faker;
  5. $factory->define(OwnerStoreOutFeeDetail::class, function (Faker $faker) {
  6. $step = ['0-20000', '20000-50000', '50000-100000'];
  7. return [
  8. 'owner_fee_detail_id' => random_int(1, 100),
  9. 'commodity_id' => random_int(1, 100),
  10. 'owner_id' => random_int(1, 100),
  11. 'source_bill' => $faker->uuid,
  12. 'owner_price_operation_id' => random_int(1, 100),
  13. 'unit_price' => random_int(1, 100),
  14. 'unit_id' => random_int(1, 10),
  15. 'amount' => random_int(1, 100),
  16. 'step' => $faker->randomElement($step),
  17. 'price_remark' => '起步费:2.2元(5件以内),续费:0.2元/件',
  18. 'created_at' => now()->subMonth()->startOfMonth()->addDays(random_int(0, 28)),
  19. 'updated_at' => now()->subMonth()->startOfMonth()->addDays(random_int(0, 28)),
  20. ];
  21. });