<?php

use Faker\Generator as Faker;

$factory->define(App\Models\Catalogs\CfdiType::class, function (Faker $faker) {
    return [
        'created_uid' => \App\Models\Auth\User::all()->random()->id,
        'updated_uid' => \App\Models\Auth\User::all()->random()->id,
        'name' => $faker->sentence,
        'code' => $faker->unique()->numberBetween($min = 1, $max = 9),
        'sort_order' => 0,
        'status' => $faker->randomElement([1,0]),
    ];
});
