Initial commit

This commit is contained in:
Gogs
2021-06-02 23:37:15 +02:00
commit f4bff143a2
36 changed files with 770 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php namespace GermanAirlinesVa\Fleet\Models;
use Model;
/**
* Model
*/
class AircraftManufacturer 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_aircraft_manufacturers';
/**
* @var array Validation rules
*/
public $rules = [];
}
+31
View File
@@ -0,0 +1,31 @@
<?php namespace GermanAirlinesVa\Fleet\Models;
use Model;
/**
* Model
*/
class AircraftType 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_aircraft_types';
/**
* @var array Validation rules
*/
public $rules = [];
public $belongsTo = [
'aircraft_manufacturer' => 'GermanAirlinesVa\Fleet\Models\AircraftManufacturer',
];
}
+18
View File
@@ -0,0 +1,18 @@
columns:
id:
label: id
type: text
name:
label: name
type: text
searchable: true
sortable: true
history:
label: history
type: text
searchable: false
link:
label: link
type: text
searchable: false
sortable: false
+14
View File
@@ -0,0 +1,14 @@
fields:
name:
label: 'germanairlinesva.fleet::lang.aircraft.manufacturers.name'
span: auto
type: text
link:
label: 'germanairlinesva.fleet::lang.aircraft.manufacturers.link'
span: auto
type: text
history:
label: 'germanairlinesva.fleet::lang.aircraft.manufacturers.history'
size: ''
span: auto
type: textarea
+67
View File
@@ -0,0 +1,67 @@
columns:
id:
label: id
type: text
aircraft_manufacturers_id:
label: aircraft_manufacturers_id
type: number
typerating_id:
label: typerating_id
type: number
type:
label: type
type: text
description:
label: description
type: text
simbrief_type:
label: simbrief_type
type: text
wingspan:
label: wingspan
type: text
length:
label: length
type: text
cruise_speed:
label: cruise_speed
type: text
range:
label: range
type: text
engines:
label: engines
type: text
dom:
label: dom
type: number
mpld:
label: mpld
type: number
mzfm:
label: mzfm
type: number
fuel_capacity:
label: fuel_capacity
type: number
mtom:
label: mtom
type: number
mlam:
label: mlam
type: number
max_fl:
label: max_fl
type: number
capacity_flight_crew:
label: capacity_flight_crew
type: number
capacity_cabin_crew:
label: capacity_cabin_crew
type: number
capacity_passengers:
label: capacity_passengers
type: number
capacity_cargo:
label: capacity_cargo
type: number
+7
View File
@@ -0,0 +1,7 @@
fields:
aircraft_manufacturer:
label: Relation
nameFrom: name
descriptionFrom: description
span: auto
type: relation
+7
View File
@@ -0,0 +1,7 @@
fields:
manufacturer:
label: Relation
nameFrom: name
descriptionFrom: description
span: auto
type: relation