GermanAirlinesVA-Fleet/models/AircraftTypeGroup.php
2021-06-03 20:44:31 +02:00

35 lines
682 B
PHP

<?php namespace GermanAirlinesVa\Fleet\Models;
use Model;
/**
* Model
*/
class AircraftTypeGroup 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_type_groups';
protected $connection = 'germanairlinesva_fleet';
/**
* @var array Validation rules
*/
public $rules = [
'comment' => 'required',
];
public $belongsToMany = [
'aircraft_types' => 'GermanAirlinesVa\Fleet\Models\AircraftType',
];
}