<?php

use Faker\Generator as Faker;

$factory->define(App\Models\Base\DocumentType::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()->countryCode,
        'prefix' => 'XXXXX',
        'current_number' => 0,
        'increment_number' => 1,
        'nature' => \App\Models\Base\DocumentType::NO_NATURE,
        'cfdi_type_id' => \App\Models\Catalogs\CfdiType::all()->random()->id,
        'sort_order' => 0,
        'status' => $faker->randomElement([1,0]),
    ];
});
