mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-01 04:59:25 -06:00
26 lines
889 B
PHP
26 lines
889 B
PHP
<?php
|
|
use Illuminate\Database\Seeder;
|
|
use FireflyIII\Models\AccountType;
|
|
|
|
/**
|
|
* Class AccountTypeSeeder
|
|
*/
|
|
class AccountTypeSeeder extends Seeder
|
|
{
|
|
public function run()
|
|
{
|
|
DB::table('account_types')->delete();
|
|
|
|
AccountType::create(['type' => 'Default account', 'editable' => true]);
|
|
AccountType::create(['type' => 'Cash account', 'editable' => false]);
|
|
AccountType::create(['type' => 'Asset account', 'editable' => true]);
|
|
AccountType::create(['type' => 'Expense account', 'editable' => true]);
|
|
AccountType::create(['type' => 'Revenue account', 'editable' => true]);
|
|
AccountType::create(['type' => 'Initial balance account', 'editable' => false]);
|
|
AccountType::create(['type' => 'Beneficiary account', 'editable' => true]);
|
|
AccountType::create(['type' => 'Import account', 'editable' => false]);
|
|
}
|
|
|
|
|
|
}
|