mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-30 20:54:04 -06:00
38 lines
1023 B
PHP
38 lines
1023 B
PHP
<?php
|
|
/**
|
|
* AccountTypeSeeder.php
|
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
|
*
|
|
* This software may be modified and distributed under the terms of the
|
|
* Creative Commons Attribution-ShareAlike 4.0 International License.
|
|
*
|
|
* See the LICENSE file for details.
|
|
*/
|
|
|
|
declare(strict_types = 1);
|
|
|
|
use FireflyIII\Models\AccountType;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
/**
|
|
* Class AccountTypeSeeder
|
|
*/
|
|
class AccountTypeSeeder extends Seeder
|
|
{
|
|
public function run()
|
|
{
|
|
DB::table('account_types')->delete();
|
|
|
|
AccountType::create(['type' => 'Default account']);
|
|
AccountType::create(['type' => 'Cash account']);
|
|
AccountType::create(['type' => 'Asset account']);
|
|
AccountType::create(['type' => 'Expense account']);
|
|
AccountType::create(['type' => 'Revenue account']);
|
|
AccountType::create(['type' => 'Initial balance account']);
|
|
AccountType::create(['type' => 'Beneficiary account']);
|
|
AccountType::create(['type' => 'Import account']);
|
|
}
|
|
|
|
|
|
}
|