GermanAirlinesVA-Fleet/models/AircraftManufacturer.php
Gogs d6dbb3f1e7 Format
Manufacturer Controller refactor
2021-06-03 19:57:37 +02:00

37 lines
733 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 = 'aircraft_manufacturers';
protected $connection = 'germanairlinesva_fleet';
/**
* @var array Validation rules
*/
public $rules = [
'name' => 'required',
'link' => 'required',
'history' => 'required',
];
public $hasMany = [
'aircraft_types' => 'GermanAirlinesVa\Fleet\Models\AircraftType',
];
}