1
0
forked from s421507/eOSP2

Zakomentowanie wszystkiego po za szkoleniami

This commit is contained in:
Marcin Kuskiewicz 2020-02-01 10:57:22 +00:00
parent 90e4e78138
commit 61c7096064

View File

@ -11,6 +11,7 @@ class DatabaseSeeder extends Seeder
*/
public function run()
{
/*
//województwa
DB::table('wojewodztwa')->insert([ 'id' => '1020000', 'name' => 'dolnośląskie' ]);
DB::table('wojewodztwa')->insert([ 'id' => '1040000', 'name' => 'kujawsko-pomorskie' ]);
@ -2914,7 +2915,7 @@ class DatabaseSeeder extends Seeder
DB::table('gminy')->insert([ 'id' => '1326201', 'wojewodztwo_id' => '1320000', 'powiat_id' => '1326200', 'name' => 'm. Szczecin' ]);
DB::table('gminy')->insert([ 'id' => '1326301', 'wojewodztwo_id' => '1320000', 'powiat_id' => '1326300', 'name' => 'm. Świnoujście' ]);
//jednostki
/*DB::table('fireStations')->insert(['id'=>'1100','name'=>'Kębłowo','number'=>'1100','voivodeship'=>'wielkopolskie','county'=>'wolsztyński','community'=>'gm. Wolsztyn','postOffice'=>'Kębłowo','zipCode'=>'64223','address'=>'ul. Nowa 8a','latitude'=>'52.0485042','longitude'=>'16.1052983','KRS'=>'0000232331','NIP'=>'9231571641','phoneNumber'=>'501234567','email'=>'straz@keblowo.pl','deleted'=>'0','creatorID'=>'1101','changingID'=>'1101','remember_token'=>NULL,'created_at'=>now(),'updated_at'=>now()]);
DB::table('fireStations')->insert(['id'=>'1100','name'=>'Kębłowo','number'=>'1100','voivodeship'=>'wielkopolskie','county'=>'wolsztyński','community'=>'gm. Wolsztyn','postOffice'=>'Kębłowo','zipCode'=>'64223','address'=>'ul. Nowa 8a','latitude'=>'52.0485042','longitude'=>'16.1052983','KRS'=>'0000232331','NIP'=>'9231571641','phoneNumber'=>'501234567','email'=>'straz@keblowo.pl','deleted'=>'0','creatorID'=>'1101','changingID'=>'1101','remember_token'=>NULL,'created_at'=>now(),'updated_at'=>now()]);
DB::table('fireStations')->insert(['id'=>'1200','name'=>'Obra','number'=>'1200','voivodeship'=>'wielkopolskie','county'=>'wolsztyński','community'=>'gm. Wolsztyn','postOffice'=>'Obra','zipCode'=>'64211','address'=>'ul. Cmentarna 5a','latitude'=>'52.0768963','longitude'=>'16.0427013','KRS'=>'0000096776','NIP'=>'9231571629','phoneNumber'=>'501234567','email'=>'osp.obra@wp.pl','deleted'=>'0','creatorID'=>'1201','changingID'=>'1201','remember_token'=>NULL,'created_at'=>now(),'updated_at'=>now()]);
//użytkownicy
DB::table('users')->insert(['id'=>'1101','password'=>'$2y$10$hSeo4pAvQLmV8KzQWoOEXuMEiN7dqOb4jEU80g.xsUS6W5.sh5I4m','name'=>'Szymon','surname'=>'Tomys','PESEL'=>'74073147926','phoneNumber'=>'501234567','email'=>'szymon.tomys@eosp.projektstudencki.pl','fireStationID'=>'1100','functionID'=>'1','degreeID'=>'1','number'=>'ABC123','statusID'=>'0','deleted'=>'0','creatorID'=>NULL,'changingID'=>NULL,'confirmed'=>'0','confirmation_code'=>NULL,'email_verified_at'=>NULL,'remember_token'=>NULL,'created_at'=>now(),'updated_at'=>now()]);
@ -2927,7 +2928,7 @@ class DatabaseSeeder extends Seeder
DB::table('users')->insert(['id'=>'1203','password'=>'$2y$10$hSeo4pAvQLmV8KzQWoOEXuMEiN7dqOb4jEU80g.xsUS6W5.sh5I4m','name'=>'Michał Rogozinski','surname'=>'','PESEL'=>'74073147926','phoneNumber'=>'501234567','email'=>'michal.rogozinski@eosp.projektstudencki.pl','fireStationID'=>'1200','functionID'=>'3','degreeID'=>'3','number'=>'ABC123','statusID'=>'0','deleted'=>'0','creatorID'=>NULL,'changingID'=>NULL,'confirmed'=>'0','confirmation_code'=>NULL,'email_verified_at'=>NULL,'remember_token'=>NULL,'created_at'=>now(),'updated_at'=>now()]);
DB::table('users')->insert(['id'=>'1204','password'=>'$2y$10$hSeo4pAvQLmV8KzQWoOEXuMEiN7dqOb4jEU80g.xsUS6W5.sh5I4m','name'=>'Lidia Kaczmarek','surname'=>'','PESEL'=>'74073147926','phoneNumber'=>'501234567','email'=>'lidia.kaczmarek@eosp.projektstudencki.pl','fireStationID'=>'1200','functionID'=>'4','degreeID'=>'4','number'=>'ABC123','statusID'=>'0','deleted'=>'0','creatorID'=>NULL,'changingID'=>NULL,'confirmed'=>'0','confirmation_code'=>NULL,'email_verified_at'=>NULL,'remember_token'=>NULL,'created_at'=>now(),'updated_at'=>now()]);
DB::table('users')->insert(['id'=>'1205','password'=>'$2y$10$hSeo4pAvQLmV8KzQWoOEXuMEiN7dqOb4jEU80g.xsUS6W5.sh5I4m','name'=>'Michał Nowak','surname'=>'','PESEL'=>'74073147926','phoneNumber'=>'501234567','email'=>'michal.nowak@eosp.projektstudencki.pl','fireStationID'=>'1200','functionID'=>'5','degreeID'=>'5','number'=>'ABC123','statusID'=>'0','deleted'=>'0','creatorID'=>NULL,'changingID'=>NULL,'confirmed'=>'0','confirmation_code'=>NULL,'email_verified_at'=>NULL,'remember_token'=>NULL,'created_at'=>now(),'updated_at'=>now()]);
*/
//pojazdy
DB::table('vehicles')->insert(['id'=>'1101','fireStationID'=>'1100','name'=>'Peugeot Boxer','codename'=>'649P28','brand'=>'Peugeot','registrationNumber'=>'PWL37998','productionYear'=>'2017','examExpirationDate'=>'2020-12-31','insuranceExpirationDate'=>'2020-12-31','driveType'=>'4x2','chassisType'=>'Peugeot Boxer GLBA','bodyProducer'=>'IUVO CARS','crewNumber'=>'6','foamAgent'=>'20','enginePower'=>'163','mass'=>'3500','chassisNumber'=>'1ABCD23EFGH456789','engineNumber'=>'123456','fuelType'=>'diesel','chassisPoductionYear'=>'2017','entryIntoServiceDate'=>'2017-02-08','fireEnginePumpDescription'=>'motopompa','deleted_at'=>NULL,'created_at'=>now(),'updated_at'=>now(),'status'=>'0']);
DB::table('vehicles')->insert(['id'=>'1102','fireStationID'=>'1100','name'=>'MAN','codename'=>'649P08','brand'=>'MAN','registrationNumber'=>'PWL32998','productionYear'=>'2016','examExpirationDate'=>'2020-12-31','insuranceExpirationDate'=>'2020-12-31','driveType'=>'4x4','chassisType'=>'MAN TGM 18.340 4x4','bodyProducer'=>'Stolarczyk','crewNumber'=>'6','foamAgent'=>'600','enginePower'=>'350','mass'=>'6000','chassisNumber'=>'1ABCD23EFGH456789','engineNumber'=>'123456','fuelType'=>'diesel','chassisPoductionYear'=>'2016','entryIntoServiceDate'=>'2016-02-16','fireEnginePumpDescription'=>'autopompa dwuzakresowa','deleted_at'=>NULL,'created_at'=>now(),'updated_at'=>now(),'status'=>'0']);
@ -2949,7 +2950,8 @@ class DatabaseSeeder extends Seeder
DB::table('trainings')->insert(['id'=>'1120','fireStationID'=>'1100','trainingName'=>'Kurs drwali-pilarzy','created_at'=>now(),'updated_at'=>now(),'deleted_at'=>NULL]);
DB::table('trainings')->insert(['id'=>'1210','fireStationID'=>'1200','trainingName'=>'Kurs kwalifikowanej pierwszej pomocy','created_at'=>now(),'updated_at'=>now(),'deleted_at'=>NULL]);
DB::table('trainings')->insert(['id'=>'1220','fireStationID'=>'1200','trainingName'=>'Nabycie uprawnień do napełniania butli powietrzem','created_at'=>now(),'updated_at'=>now(),'deleted_at'=>NULL]);
DB::table('trainingsFirefighters')->insert(['id'=>'1111','firefighterID'=>'1101','trainingID'=>'1110','dateOfComplete'=>'2009-03-01','dateOfExpiry'=>'2021-21-31','lifetime'=>'1','created_at'=>now(),'updated_at'=>now()]);
*/
DB::table('trainingsFirefighters')->insert(['id'=>'1111','firefighterID'=>'1101','trainingID'=>'1110','dateOfComplete'=>'2009-03-01','dateOfExpiry'=>'2021-21-31','lifetime'=>'1','created_at'=>now(),'updated_at'=>now()]);
DB::table('trainingsFirefighters')->insert(['id'=>'1112','firefighterID'=>'1102','trainingID'=>'1110','dateOfComplete'=>'2009-03-01','dateOfExpiry'=>'2021-21-31','lifetime'=>'1','created_at'=>now(),'updated_at'=>now()]);
DB::table('trainingsFirefighters')->insert(['id'=>'1113','firefighterID'=>'1103','trainingID'=>'1110','dateOfComplete'=>'2009-03-01','dateOfExpiry'=>'2021-21-31','lifetime'=>'1','created_at'=>now(),'updated_at'=>now()]);
DB::table('trainingsFirefighters')->insert(['id'=>'1114','firefighterID'=>'1104','trainingID'=>'1110','dateOfComplete'=>'2009-03-01','dateOfExpiry'=>'2021-21-31','lifetime'=>'1','created_at'=>now(),'updated_at'=>now()]);