| 123456789101112131415161718192021 |
- <?php
- /** @var \Illuminate\Database\Eloquent\Factory $factory */
- use App\OwnerPriceOperationItem;
- use Faker\Generator as Faker;
- $factory->define(OwnerPriceOperationItem::class, function (Faker $faker) {
- $strategy = ['起步', '默认', '特征'];
- return [
- "owner_price_operation_id"=>random_int(1,100), //作业计费ID
- "strategy"=>$faker->randomElement($strategy), //子策略
- "amount"=>random_int(1,100), //起步数
- "unit_id"=>random_int(1,7), //单位ID
- "unit_price"=>random_int(1,100), //单价
- "feature"=>random_int(1,100), //特征
- "priority"=>random_int(1,100), //优先级 值越大越高
- "discount_price"=>random_int(1,100), //减免单价
- "odd_price"=>random_int(1,100), //零头价
- ];
- });
|