Added some tables to the backup seed.

This commit is contained in:
Lukas Halbritter
2018-12-06 11:47:34 +01:00
parent e664e81680
commit 280b132282
15 changed files with 32412 additions and 15 deletions
@@ -0,0 +1,98 @@
<?php
use Illuminate\Database\Seeder;
use Carbon\Carbon;
class InitAccountClassesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('account_classes')->insert([
[
'scope_id' => 1,
'io_type_id' => 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_id' => 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_id' => 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_id' => 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_id' => 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_id' => 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_id' => 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_id' => 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_id' => 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_id' => 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')
]
]);
}
}