Compare commits
4 Commits
e7d5089e2d
...
fe3bc46636
| Author | SHA1 | Date | |
|---|---|---|---|
| fe3bc46636 | |||
| 7244639051 | |||
| 33ed2f4d00 | |||
| f75136f1e5 |
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
- BelongsTo AircraftType
|
- BelongsTo AircraftType
|
||||||
- BelongsToMany AircraftTypeGroup
|
- BelongsToMany AircraftTypeGroup
|
||||||
- **TODO** BelongsTo Airport (External DB)
|
- BelongsTo Airport (2x, External DB, creation in Routes Plugin)
|
||||||
|
|
||||||
## AircraftTypeGroup
|
## AircraftTypeGroup
|
||||||
|
|
||||||
|
|||||||
@@ -33,5 +33,7 @@ class Aircraft extends Model
|
|||||||
|
|
||||||
public $belongsTo = [
|
public $belongsTo = [
|
||||||
'aircraft_type' => 'GermanAirlinesVa\Fleet\Models\AircraftType',
|
'aircraft_type' => 'GermanAirlinesVa\Fleet\Models\AircraftType',
|
||||||
|
'home_airport' => 'GermanAirlinesVa\Routes\Models\Airport',
|
||||||
|
'airport' => 'GermanAirlinesVa\Routes\Models\Airport',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,15 +2,21 @@ columns:
|
|||||||
id:
|
id:
|
||||||
label: id
|
label: id
|
||||||
type: text
|
type: text
|
||||||
aircraft_type_id:
|
aircraft_type:
|
||||||
label: aircraft_type_id
|
label: aircraft_type
|
||||||
type: text
|
type: text
|
||||||
home_airport_id:
|
relation: aircraft_type
|
||||||
label: home_airport_id
|
valueFrom: type
|
||||||
|
home_airport:
|
||||||
|
label: home_airport
|
||||||
type: text
|
type: text
|
||||||
airport_id:
|
relation: home_airport
|
||||||
label: airport_id
|
valueFrom: icao
|
||||||
|
airport:
|
||||||
|
label: airport
|
||||||
type: text
|
type: text
|
||||||
|
relation: airport
|
||||||
|
valueFrom: icao
|
||||||
name:
|
name:
|
||||||
label: name
|
label: name
|
||||||
type: text
|
type: text
|
||||||
|
|||||||
@@ -16,8 +16,10 @@ fields:
|
|||||||
span: auto
|
span: auto
|
||||||
required: 1
|
required: 1
|
||||||
type: text
|
type: text
|
||||||
home_airport_id:
|
home_airport:
|
||||||
label: 'germanairlinesva.fleet::lang.aircrafts.home_base'
|
label: 'germanairlinesva.fleet::lang.aircrafts.home_base'
|
||||||
|
nameFrom: name
|
||||||
|
descriptionFrom: description
|
||||||
span: auto
|
span: auto
|
||||||
required: 1
|
required: 1
|
||||||
type: number
|
type: relation
|
||||||
|
|||||||
+1
-1
@@ -11,6 +11,6 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"preinstall": "git config core.hooksPath .hooks",
|
"preinstall": "git config core.hooksPath .hooks",
|
||||||
"format": "prettier --write './**/*.{php,html,htm,yaml}'"
|
"format": "prettier --write './**/*.{php,html,yaml}'"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user