<?php

use Faker\Generator as Faker;

$factory->define(App\Models\Catalogs\Currency::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 = 100, $max = 999),
        'rate' => '1',
        'decimal_place' => '2',
        'symbol' => '$',
        'symbol_position' => 'L',
        'decimal_mark' => '.',
        'thousands_separator' => ',',
        'sort_order' => 0,
        'status' => $faker->randomElement([1,0]),
    ];
});
