<?php

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

use Faker\Generator as Faker;

$factory->define(\App\OrderTracking::class, function (Faker $faker) {
    return [
        'order_package_commodity_id' => rand(10,100),
        'owner_id' => rand(0,10),
        'web_order_number'=>$faker->uuid,
        'pick_up_at' =>$faker->dateTime(),
        'sale' => $faker->name,
        'client' => $faker->name,
        'order_client_code' => $faker->uuid,
        'order_remark' => $faker->text(10),
        'pallet_total' => $faker->numberBetween(0,10),
        'planning_sent_at'=>$faker->dateTimeBetween('-100 hour','now'),
        'is_on_duty_shift'=>['是','否',null][rand(0,1)],
        'is_arrival'=>['是','否',null][rand(0,1)],
        'signed_at' => null,
        'receive_bill_status'=>null,
        'remark' => $faker->text(10),
        'gross_weight'=>$faker->numberBetween(0,10),
        'bulk' => $faker->numberBetween(0,10)
    ];
});
