Type Groups

This commit is contained in:
Gogs
2021-06-03 18:34:22 +02:00
parent 9fdfe9dfb1
commit 27410bf5c2
23 changed files with 437 additions and 145 deletions
+32
View File
@@ -0,0 +1,32 @@
<?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 = [];
public $belongsToMany = [
'aircraft_types' => 'GermanAirlinesVa\Fleet\Models\AircraftType',
];
}