Added seeder for account types and account classes.

This commit is contained in:
Lukas Halbritter
2018-09-10 12:33:20 +02:00
parent 5bdb4bf502
commit 276e617b62
4 changed files with 321 additions and 5 deletions
@@ -1,6 +1,7 @@
<?php
use Illuminate\Database\Seeder;
use Carbon\Carbon;
class AccountClassesTableSeeder extends Seeder
{
@@ -11,6 +12,87 @@ class AccountClassesTableSeeder extends Seeder
*/
public function run()
{
//
DB::table('account_classes')->insert([
[
'scope_id' => 1,
'io_type' => 1,
'number' => 1000,
'name' => 'EINNAHMEN',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'scope_id' => 1,
'io_type' => 2,
'number' => 1500,
'name' => 'AUSGABEN',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'scope_id' => 2,
'io_type' => 1,
'number' => 2000,
'name' => 'EINNAHMEN',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'scope_id' => 2,
'io_type' => 2,
'number' => 2500,
'name' => 'AUSGABEN',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'scope_id' => 3,
'io_type' => 1,
'number' => 3000,
'name' => 'EINNAHMEN',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'scope_id' => 3,
'io_type' => 2,
'number' => 3500,
'name' => 'AUSGABEN',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'scope_id' => 4,
'io_type' => 1,
'number' => 4000,
'name' => 'EINNAHMEN',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'scope_id' => 4,
'io_type' => 2,
'number' => 4500,
'name' => 'AUSGABEN',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'scope_id' => 5,
'io_type' => 1,
'number' => 5000,
'name' => 'EINNAHMEN',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'scope_id' => 5,
'io_type' => 2,
'number' => 5500,
'name' => 'AUSGABEN',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
]
]);
}
}