<?php

/** @var \Illuminate\Database\Eloquent\Factory $factory */

use App\OwnerPriceLogistic;
use Faker\Generator as Faker;

$factory->define(OwnerPriceLogistic::class, function (Faker $faker) {
    return [
        "name" => $faker->name,             //名称
        "unit_range" => "0-5,5-10,10-15,15-20",       //单价一区间
        "unit_id" => factory(\App\Unit::class),          //单位一ID
        "other_unit_range" => "0-5,5-10,10-15,15-20,30-", //单位二区间
        "other_unit_id" => factory(\App\Unit::class),    //单位二ID
        "pick_up_price" => mt_rand(2,230) / 3,    //提货费
        "fuel_price" => mt_rand(2,230) / 3,       //燃油附加费
        "service_price" => mt_rand(2,230) / 3,    //信息服务费
    ];
});
