GermanAirlinesVA-Fleet/models/AircraftManufacturer.php
2021-06-03 17:00:35 +02:00

34 lines
719 B
PHP

<?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';
public $table = 'aircraft_manufacturers';
protected $connection = 'germanairlinesva_fleet';
/**
* @var array Validation rules
*/
public $rules = [];
public $hasMany = [
'aircraft_types' => 'GermanAirlinesVa\Fleet\Models\AircraftType',
];
}