<?php

use Faker\Generator as Faker;

$factory->define(App\SaleDetail::class, function (Faker $faker) {
    return [
      'quantity' => $faker->numberBetween($min = 1, $max = 100),
      'unit_price' => $faker->randomFloat($nbMaxDecimals = 2, $min = 0, $max = 999999),
      'total' => $faker->randomFloat($nbMaxDecimals = 2, $min = 0, $max = 999999),
      'sale_id' => $faker->numberBetween($min = 1, $max = 10),
    ];
});
