| 1234567891011121314151617181920212223242526272829 |
- <?php
- /** @var \Illuminate\Database\Eloquent\Factory $factory */
- use App\OwnerStoreFeeDetail;
- use Faker\Generator as Faker;
- $factory->define(OwnerStoreFeeDetail::class, function (Faker $faker) {
- return [
- //
- 'owner_fee_detail_id' => random_int(1, 100),
- 'owner_price_operation_id' => random_int(1, 100),
- 'unit_id' => random_int(1, 11),
- 'unit_price' => mt_rand(10, 100),
- 'amount' => mt_rand(10, 100),
- 'owner_id' => 8,
- 'store_item_id' => random_int(1, 100),
- 'fee' => random_int(1, 100),//费用
- 'commodity_id' => random_int(1, 100),
- 'packing_material_fee' => random_int(1, 100),//包材费
- 'tax_fee' => random_int(1, 100),//税费
- 'sku' => $faker->uuid,//sku
- 'barcode' => $faker->uuid,//条码
- 'work_name' => $faker->name,//条码
- 'asn_code' => $faker->uuid,//条码
- 'created_at' => now()->subMonth()->startOfMonth()->addDays(random_int(0, 28)),
- 'updated_at' => now()->subMonth()->startOfMonth()->addDays(random_int(0, 28)),
- ];
- });
|