OwnerStoreFeeDetailFactory.php 1.1 KB

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /** @var \Illuminate\Database\Eloquent\Factory $factory */
  3. use App\OwnerStoreFeeDetail;
  4. use Faker\Generator as Faker;
  5. $factory->define(OwnerStoreFeeDetail::class, function (Faker $faker) {
  6. return [
  7. //
  8. 'owner_fee_detail_id' => random_int(1, 100),
  9. 'owner_price_operation_id' => random_int(1, 100),
  10. 'unit_id' => random_int(1, 11),
  11. 'unit_price' => mt_rand(10, 100),
  12. 'amount' => mt_rand(10, 100),
  13. 'owner_id' => 8,
  14. 'store_item_id' => random_int(1, 100),
  15. 'fee' => random_int(1, 100),//费用
  16. 'commodity_id' => random_int(1, 100),
  17. 'packing_material_fee' => random_int(1, 100),//包材费
  18. 'tax_fee' => random_int(1, 100),//税费
  19. 'sku' => $faker->uuid,//sku
  20. 'barcode' => $faker->uuid,//条码
  21. 'work_name' => $faker->name,//条码
  22. 'asn_code' => $faker->uuid,//条码
  23. 'created_at' => now()->subMonth()->startOfMonth()->addDays(random_int(0, 28)),
  24. 'updated_at' => now()->subMonth()->startOfMonth()->addDays(random_int(0, 28)),
  25. ];
  26. });