41 lines
854 B
PHP
41 lines
854 B
PHP
<?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 = 'aircraft_types';
|
|
protected $connection = 'germanairlinesva_fleet';
|
|
|
|
/**
|
|
* @var array Validation rules
|
|
*/
|
|
public $rules = [];
|
|
|
|
public $belongsTo = [
|
|
'aircraft_manufacturer' => 'GermanAirlinesVa\Fleet\Models\AircraftManufacturer',
|
|
];
|
|
|
|
public $belongsToMany = [
|
|
'aircraft_type_groups' => 'GermanAirlinesVa\Fleet\Models\AircraftTypeGroup',
|
|
];
|
|
|
|
public $hasMany = [
|
|
'aircrafts' => 'GermanAirlinesVa\Fleet\Models\Aircraft',
|
|
];
|
|
}
|