2022-08-11 09:05:33 +02:00
|
|
|
<?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) ,
|
2023-02-16 02:36:09 +01:00
|
|
|
'amount' => $this->faker->randomFloat(2, 10, 10000) ,
|
2022-09-22 07:54:58 +02:00
|
|
|
'currency_id' => '1',
|
2022-08-11 09:05:33 +02:00
|
|
|
'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) ,
|
2022-12-01 02:00:53 +01:00
|
|
|
'status_id'=> 1,
|
2023-02-16 02:36:09 +01:00
|
|
|
'base_type' => (bool)rand(0, 1) ? 'CREDIT' : 'DEBIT',
|
2022-08-11 09:05:33 +02:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|