<?php

/** @var Factory $factory */

use App\Owner;
use App\UserOwnerGroup;
use Faker\Generator as Faker;
use Illuminate\Database\Eloquent\Factory;
use Illuminate\Support\Str;

$factory->define(Owner::class, function (Faker $faker) {
    return [
        'name' => $faker->name,                 //名称
        'code' => Str::random(5).date('yymmdd'),                 //代码
        'checking_count' => mt_rand(0,5),       //审核数量
//        "tax_rate" => mt_rand(0,100) / 10,             //税率
        "linkman" => $faker->name,              //联系人
        "phone_number" => $faker->phoneNumber,         //联系电话
        "user_owner_group_id" => factory(UserOwnerGroup::class),  //项目组ID
        "waring_line_on" => mt_rand(0,1000),       //月单量预警
        "description" => $faker->text           //描述
    ];
});
