<?php

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

use App\OwnerAreaReport;
use Faker\Generator as Faker;

$factory->define(OwnerAreaReport::class, function (Faker $faker) {
    $status = ['编辑中','已完成',"编辑中","编辑中"];
    return [
        "owner_id" => factory(\App\Owner::class),             //货主ID
        "counting_month" => $faker->date(),       //结算月
        "owner_storage_price_model_id" => factory(\App\OwnerStoragePriceModel::class), //仓储计费ID
        "user_owner_group_id" => factory(\App\UserOwnerGroup::class),  //项目组ID
        "area_on_tray" => mt_rand(5,1000) / 6,         //货物整托
        "area_on_half_tray" => mt_rand(5,1000) / 6,    //货物半托
        "area_on_flat" => mt_rand(5,1000) / 6,         //平面区面积
        "accounting_area" => mt_rand(50,10000) / 6,      //结算面积
        "status" => $status[array_rand($status)]            //状态
    ];
});
