2017-06-13 11:47:53 +08:00
|
|
|
#
|
2017-06-14 01:50:03 +08:00
|
|
|
roles:
|
|
|
|
- id: 1
|
|
|
|
name: admin
|
|
|
|
display_name: Administrators
|
|
|
|
- id: 2
|
|
|
|
name: user
|
|
|
|
display_name: Pilot
|
|
|
|
|
|
|
|
users:
|
|
|
|
- id: 1
|
|
|
|
name: Admin User
|
|
|
|
email: admin@phpvms.net
|
|
|
|
password: admin
|
|
|
|
created_at: now
|
|
|
|
updated_at: now
|
|
|
|
|
|
|
|
role_user:
|
|
|
|
- user_id: 1
|
|
|
|
role_id: 1
|
|
|
|
- user_id: 1
|
|
|
|
role_id: 2
|
|
|
|
|
2017-06-13 11:47:53 +08:00
|
|
|
airlines:
|
|
|
|
- id: 1
|
|
|
|
code: VMS
|
|
|
|
name: phpvms airlines
|
|
|
|
active: 1
|
2017-06-14 01:50:03 +08:00
|
|
|
created_at: now
|
|
|
|
updated_at: now
|
2017-06-13 11:47:53 +08:00
|
|
|
|
|
|
|
airports:
|
|
|
|
- icao: KAUS
|
2017-06-14 04:11:11 +08:00
|
|
|
name: Austin-Bergstrom
|
2017-06-13 11:47:53 +08:00
|
|
|
location: Austin, Texas, USA
|
|
|
|
lat: 30.1945278
|
|
|
|
lon: -97.6698889
|
|
|
|
- icao: KJFK
|
2017-06-14 04:11:11 +08:00
|
|
|
name: John F Kennedy
|
2017-06-13 11:47:53 +08:00
|
|
|
location: New York, New York, USA
|
|
|
|
lat: 40.6399257
|
|
|
|
lon: -73.7786950
|
2017-06-14 04:11:11 +08:00
|
|
|
- icao: EGLL
|
|
|
|
name: London Heathrow
|
|
|
|
location: London, England
|
|
|
|
lat: 51.4775
|
|
|
|
lon: -0.4614
|
2017-06-13 11:47:53 +08:00
|
|
|
#
|
|
|
|
aircraft_classes:
|
|
|
|
- id: 1
|
|
|
|
code: H
|
|
|
|
name: Heavy
|
2017-06-16 11:45:25 +08:00
|
|
|
- id: 2
|
|
|
|
code: M
|
|
|
|
name: Medium
|
|
|
|
- id: 3
|
|
|
|
code: L
|
|
|
|
name: Light
|
2017-06-13 11:47:53 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
aircraft:
|
|
|
|
- id: 1
|
|
|
|
aircraft_class_id: 1
|
|
|
|
icao: B744
|
|
|
|
name: Boeing 747-400
|
|
|
|
registration: NC17
|
|
|
|
tail_number: 17
|
|
|
|
- id: 2
|
|
|
|
aircraft_class_id: 1
|
|
|
|
icao: B772
|
|
|
|
name: Boeing 777-200
|
|
|
|
registration: NC20
|
|
|
|
tail_number: 20
|
|
|
|
|
|
|
|
#
|
|
|
|
fares:
|
|
|
|
- id: 1
|
|
|
|
code: Y
|
|
|
|
name: Economy
|
|
|
|
price: 100
|
|
|
|
capacity: 200
|
|
|
|
- id: 2
|
2017-06-14 04:11:11 +08:00
|
|
|
code: B
|
|
|
|
name: Business
|
2017-06-13 11:47:53 +08:00
|
|
|
price: 500
|
|
|
|
capacity: 10
|
2017-06-14 04:11:11 +08:00
|
|
|
- id: 3
|
|
|
|
code: F
|
|
|
|
name: First-Class
|
|
|
|
price: 800
|
|
|
|
capacity: 5
|
2017-06-13 11:47:53 +08:00
|
|
|
|
2017-06-14 04:11:11 +08:00
|
|
|
# add a few mods to aircraft and fares
|
2017-06-13 11:47:53 +08:00
|
|
|
aircraft_fare:
|
2017-06-14 04:11:11 +08:00
|
|
|
|
|
|
|
# Fare classes on the 747
|
2017-06-13 11:47:53 +08:00
|
|
|
- aircraft_id: 1
|
|
|
|
fare_id: 1
|
2017-06-14 04:11:11 +08:00
|
|
|
price: 200
|
|
|
|
capacity: 400
|
|
|
|
- aircraft_id: 1
|
|
|
|
fare_id: 2
|
|
|
|
capacity: 20
|
|
|
|
- aircraft_id: 1
|
|
|
|
fare_id: 3
|
|
|
|
price: 1000
|
|
|
|
capacity: 10
|
|
|
|
|
|
|
|
# Fare classes on the 777
|
|
|
|
- aircraft_id: 2
|
|
|
|
fare_id: 1
|
|
|
|
- aircraft_id: 2
|
|
|
|
fare_id: 3
|
|
|
|
capacity: 10
|