This commit is contained in:
Gogs
2021-06-03 17:00:35 +02:00
parent 42a9e2c8c7
commit 9fdfe9dfb1
20 changed files with 533 additions and 145 deletions
+33
View File
@@ -0,0 +1,33 @@
<?php namespace GermanAirlinesVa\Fleet\Models;
use Model;
/**
* Model
*/
class Aircraft extends Model
{
use \October\Rain\Database\Traits\Validation;
/*
* Disable timestamps by default.
* Remove this line if timestamps are defined in the database table.
*/
public $timestamps = false;
/**
* @var string The database table used by the model.
*/
//public $table = 'germanairlinesva_fleet_aircrafts';
public $table = 'aircrafts';
protected $connection = 'germanairlinesva_fleet';
/**
* @var array Validation rules
*/
public $rules = [];
public $belongsTo = [
'aircraft_type' => 'GermanAirlinesVa\Fleet\Models\AircraftType',
];
}
+4
View File
@@ -26,4 +26,8 @@ class AircraftManufacturer extends Model
* @var array Validation rules
*/
public $rules = [];
public $hasMany = [
'aircraft_types' => 'GermanAirlinesVa\Fleet\Models\AircraftType',
];
}
+4
View File
@@ -30,4 +30,8 @@ class AircraftType extends Model
public $belongsTo = [
'aircraft_manufacturer' => 'GermanAirlinesVa\Fleet\Models\AircraftManufacturer',
];
public $hasMany = [
'aircrafts' => 'GermanAirlinesVa\Fleet\Models\Aircraft',
];
}
+49
View File
@@ -0,0 +1,49 @@
columns:
id:
label: id
type: text
aircraft_type_id:
label: aircraft_type_id
type: text
home_airport_id:
label: home_airport_id
type: text
airport_id:
label: airport_id
type: text
name:
label: name
type: text
registration:
label: registration
type: text
in_use:
label: in_use
type: text
total_miles:
label: total_miles
type: text
total_fuel:
label: total_fuel
type: text
total_flight_time:
label: total_flight_time
type: text
total_expenses:
label: total_expenses
type: text
current_check:
label: current_check
type: text
last_a_check:
label: last_a_check
type: text
last_b_check:
label: last_b_check
type: text
last_c_check:
label: last_c_check
type: text
last_d_check:
label: last_d_check
type: text
+23
View File
@@ -0,0 +1,23 @@
fields:
aircraft_type:
label: Type
nameFrom: type
descriptionFrom: description
span: auto
required: 1
type: relation
registration:
label: Registration
span: auto
required: 1
type: text
name:
label: Name
span: auto
required: 1
type: text
home_airport_id:
label: 'Home Base'
span: auto
required: 1
type: number
+136 -140
View File
@@ -1,141 +1,137 @@
tabs:
fields:
aircraft_manufacturer:
label: Manufacturer
nameFrom: name
descriptionFrom: description
span: auto
required: 1
type: relation
tab: Operational
typerating_id:
label: Typerating
span: auto
required: 1
type: number
tab: Operational
only_charter:
label: 'Charter Only'
options:
'No': 'no'
'Yes': 'yes'
showSearch: true
span: auto
required: 1
type: dropdown
tab: Operational
type:
label: Type
span: auto
required: 1
type: text
tab: Operational
simbrief_type:
label: 'SimBrief Type'
span: auto
required: 1
type: text
tab: Operational
dom:
label: DOM
span: auto
required: 1
type: number
tab: Weights
mpld:
label: 'Max Payload'
span: auto
required: 1
type: number
tab: Weights
mzfm:
label: 'Max ZFM'
span: auto
required: 1
type: number
tab: Weights
fuel_capacity:
label: 'Fuel Capacity'
span: auto
required: 1
type: number
tab: Weights
mtom:
label: 'Max TOM'
span: auto
required: 1
type: number
tab: Weights
mlam:
label: 'Max LAM'
span: auto
required: 1
type: number
tab: Weights
description:
label: Description
size: large
span: auto
required: 1
type: richeditor
tab: Informational
wingspan:
label: Wingspan
span: auto
required: 1
type: text
tab: Informational
length:
label: Length
span: auto
required: 1
type: text
tab: Informational
cruise_speed:
label: 'Cruise Speed'
span: auto
required: 1
type: text
tab: Informational
range:
label: Range
span: auto
required: 1
type: text
tab: Informational
engines:
label: Engines
span: auto
required: 1
type: text
tab: Informational
max_fl:
label: 'Max FL'
span: auto
required: 1
type: number
tab: Informational
capacity_flight_crew:
label: 'Flight Crew'
span: auto
required: 1
type: number
tab: Informational
capacity_cabin_crew:
label: 'Cabin Crew'
span: auto
required: 1
type: number
tab: Informational
capacity_passengers:
label: Passengers
span: auto
required: 1
type: number
tab: Informational
capacity_cargo:
label: Cargo
span: auto
required: 1
type: number
tab: Informational
fields:
aircraft_manufacturer:
label: Manufacturer
nameFrom: name
descriptionFrom: description
span: auto
required: 1
type: relation
tab: Operational
typerating_id:
label: Typerating
span: auto
required: 1
type: number
tab: Operational
only_charter:
label: 'Charter Only'
span: auto
required: 1
type: switch
tab: Operational
type:
label: Type
span: auto
required: 1
type: text
tab: Operational
simbrief_type:
label: 'SimBrief Type'
span: auto
required: 1
type: text
tab: Operational
dom:
label: DOM
span: auto
required: 1
type: number
tab: Weights
mpld:
label: 'Max Payload'
span: auto
required: 1
type: number
tab: Weights
mzfm:
label: 'Max ZFM'
span: auto
required: 1
type: number
tab: Weights
fuel_capacity:
label: 'Fuel Capacity'
span: auto
required: 1
type: number
tab: Weights
mtom:
label: 'Max TOM'
span: auto
required: 1
type: number
tab: Weights
mlam:
label: 'Max LAM'
span: auto
required: 1
type: number
tab: Weights
description:
label: Description
size: large
span: auto
required: 1
type: richeditor
tab: Informational
wingspan:
label: Wingspan
span: auto
required: 1
type: text
tab: Informational
length:
label: Length
span: auto
required: 1
type: text
tab: Informational
cruise_speed:
label: 'Cruise Speed'
span: auto
required: 1
type: text
tab: Informational
range:
label: Range
span: auto
required: 1
type: text
tab: Informational
engines:
label: Engines
span: auto
required: 1
type: text
tab: Informational
max_fl:
label: 'Max FL'
span: auto
required: 1
type: number
tab: Informational
capacity_flight_crew:
label: 'Flight Crew'
span: auto
required: 1
type: number
tab: Informational
capacity_cabin_crew:
label: 'Cabin Crew'
span: auto
required: 1
type: number
tab: Informational
capacity_passengers:
label: Passengers
span: auto
required: 1
type: number
tab: Informational
capacity_cargo:
label: Cargo
span: auto
required: 1
type: number
tab: Informational