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')
]
]);
}
}
@@ -0,0 +1,385 @@
<?php
use Illuminate\Database\Seeder;
use Carbon\Carbon;
class InitAccountTypesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
/**********************************************************************
* IDEELLER BEREICH *
**********************************************************************/
// EINNAHMEN
DB::table('account_types')->insert([
[
'account_class_id' => 1,
'number' => 1001,
'name' => 'Mitgliederbeiträge',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 1,
'number' => 1002,
'name' => 'Teilnehmerbeiträge Probenwochenenden',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 1,
'number' => 1003,
'name' => 'Teilnehmerbeiträge Wettbewerbe etc.',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 1,
'number' => 1004,
'name' => 'Teilnehmerbeiträge Workshops & Coachings',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 1,
'number' => 1010,
'name' => 'Spenden',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 1,
'number' => 1011,
'name' => 'Zuschüsse',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 1,
'number' => 1012,
'name' => 'Preisgelder, Prämien',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 1,
'number' => 1070,
'name' => 'Verkaufserlöse Notenverkauf',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
]
]);
// AUSGABEN
DB::table('account_types')->insert([
[
'account_class_id' => 2,
'number' => 1501,
'name' => 'Honorare Chorleiter',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1502,
'name' => 'Honorare Gastkünstler',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1503,
'name' => 'Honorare Workshopleiter & Coaches',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1504,
'name' => 'Honorare Ton- und Lichttechniker',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1505,
'name' => 'Honorare Fotografen',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1509,
'name' => 'Sonstige Honorare',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1510,
'name' => 'Kontoführung',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1520,
'name' => 'Webdienste, Social Media',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1530,
'name' => 'GEMA Gebühren',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1531,
'name' => 'Beiträge Chorverband',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1532,
'name' => 'Versicherungen',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1540,
'name' => 'Büromaterial',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1541,
'name' => 'Porto',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1550,
'name' => 'Teilnehmerbeiträge Wettbewerbe etc.',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1559,
'name' => 'Sonstige Teilnehmerbeiträge',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1560,
'name' => 'Miete Probenräume',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1561,
'name' => 'Miete Konzerträume',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1562,
'name' => 'Sonstige Mieten',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1570,
'name' => 'Arrangements',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1571,
'name' => 'Anschaffungskosten Noten',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1580,
'name' => 'Geschenke, Jubiläen, Ehrungen',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1590,
'name' => 'Fahrtkosten',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 2,
'number' => 1600,
'name' => 'Verpflegung Probenwochenenden',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
]
]);
/**********************************************************************
* ZWECKBETRIEB *
**********************************************************************/
// EINNAHMEN
DB::table('account_types')->insert([
[
'account_class_id' => 3,
'number' => 2001,
'name' => 'Verkaufserlöse Tonträger',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 3,
'number' => 2010,
'name' => 'Gagen',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 3,
'number' => 2011,
'name' => 'Verkaufserlöse Konzerttickets',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 3,
'number' => 2020,
'name' => 'Versandkosten',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
]
]);
// AUSGABEN
DB::table('account_types')->insert([
[
'account_class_id' => 4,
'number' => 2501,
'name' => 'Produktion Tonträger',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 4,
'number' => 2510,
'name' => 'Bühnentechnik',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 4,
'number' => 2520,
'name' => 'Versandkosten',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 4,
'number' => 2530,
'name' => 'Verpflegung bei Konzerten',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 4,
'number' => 2540,
'name' => 'Druckerzeugnisse',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
]
]);
/**********************************************************************
* WIRTSCHAFTLICHER GESCHÄFTSBETRIEB *
**********************************************************************/
// EINNAHMEN
DB::table('account_types')->insert([
[
'account_class_id' => 7,
'number' => 4001,
'name' => 'Verkaufserlöse Merchandise',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 7,
'number' => 4002,
'name' => 'Verkaufserlöse Essen, Getränke',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
]
]);
// AUSGABEN
DB::table('account_types')->insert([
[
'account_class_id' => 8,
'number' => 4501,
'name' => 'Produktion Merchandise',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'account_class_id' => 8,
'number' => 4502,
'name' => 'Einkauf Essen, Getränke',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
]
]);
/**********************************************************************
* SONTIGES *
**********************************************************************/
// EINNAHMEN
DB::table('account_types')->insert([
[
'account_class_id' => 9,
'number' => 5001,
'name' => 'Auslagen, Pfänder',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
]
]);
// AUSGABEN
DB::table('account_types')->insert([
[
'account_class_id' => 10,
'number' => 5501,
'name' => 'Auslagen, Pfänder',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
]
]);
}
}
@@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Seeder;
use Carbon\Carbon;
class InitIOTypesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('i_o_types')->insert([
[
'name' => 'Einnahme',
'factor' => 1,
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'name' => 'Ausgabe',
'factor' => -1,
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
]
]);
}
}
@@ -0,0 +1,43 @@
<?php
use Illuminate\Database\Seeder;
use Carbon\Carbon;
class InitScopesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('scopes')->insert([
[
'name' => 'Ideeller Bereich',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'name' => 'Zweckbetrieb',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'name' => 'Vermögensverwaltung',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'name' => 'Wirtschaftlicher Geschäftsbetrieb',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'name' => 'Sonstiges',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
]
]);
}
}