mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 22:54:25 +01:00
40 lines
1.1 KiB
PHP
40 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Invoice Ninja (https://invoiceninja.com).
|
|
*
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
*
|
|
* @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com)
|
|
*
|
|
* @license https://www.elastic.co/licensing/elastic-license
|
|
*/
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class BankTransactionFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function definition()
|
|
{
|
|
return [
|
|
'transaction_id' => $this->faker->randomNumber(9, true) ,
|
|
'amount' => $this->faker->randomFloat(2, 10, 10000) ,
|
|
'currency_id' => '1',
|
|
'account_type' => 'creditCard',
|
|
'category_id' => 1,
|
|
'category_type' => 'Random' ,
|
|
'date' => $this->faker->date('Y-m-d') ,
|
|
'bank_account_id' => 1 ,
|
|
'description' =>$this->faker->words(5, true) ,
|
|
'status_id'=> 1,
|
|
'base_type' => (bool)rand(0, 1) ? 'CREDIT' : 'DEBIT',
|
|
];
|
|
}
|
|
}
|