Issue/329 refactor seeding (#337)

* Fix Contracts class names

* Refactoring of the file seeds so it's not a mess

* StyleCI fixes
This commit is contained in:
Nabeel S
2019-08-05 08:27:53 -04:00
committed by GitHub
parent d4c172e734
commit 9f3ba05880
47 changed files with 548 additions and 394 deletions

View File

@@ -1,12 +1,12 @@
#
#airlines:
# - id: 1
# icao: VMS
# iata: VM
# name: phpvms airlines
# active: 1
# created_at: now
# updated_at: now
airlines:
- id: 1
icao: VMS
iata: VM
name: phpvms airlines
active: 1
created_at: now
updated_at: now
users:
- id: 1
@@ -31,6 +31,12 @@ role_user:
user_type: App\Models\User
ranks:
- id: 1
name: New Pilot
hours: 0
acars_base_pay_rate: 50
manual_base_pay_rate: 25
- id: 2
name: Junior First Officer
hours: 10

60
tests/data/fleet.yml Normal file
View File

@@ -0,0 +1,60 @@
subfleets:
- id: 1
airline_id: 1
name: 747-43X RB211-524G
type: 744-3X-RB211
cost_block_hour: 1000
ground_handling_multiplier: 200
- id: 2
airline_id: 1
name: 777-222ER GE90-76B
type: 772-22ER-GE90-76B
cost_block_hour: 500
ground_handling_multiplier: 150
- id: 3
airline_id: 1
name: 777-367 ER GE90-115B
type: 772-36ER-GE90-115B
cost_block_hour: 100
ground_handling_multiplier: 150
aircraft:
- id: 1
subfleet_id: 1
airport_id: KJFK
name: Boeing 747-438
registration: 001Z
status: A
- id: 2
subfleet_id: 2
airport_id: LGRP
name: Boeing 777-200
registration: C202
status: A
- id: 3
subfleet_id: 1
airport_id: KAUS
name: Boeing 747-412
registration: S2333
status: A
- id: 4
subfleet_id: 1
airport_id: KAUS
name: Boeing 747-436 RETIRED
registration:
status: R
subfleet_rank:
- rank_id: 1
subfleet_id: 1
- rank_id: 1
subfleet_id: 2
- rank_id: 1
subfleet_id: 3
- rank_id: 2
subfleet_id: 2
- rank_id: 2
subfleet_id: 3
- rank_id: 3
subfleet_id: 3