Typeratings

This commit is contained in:
Gogs
2021-06-14 00:06:48 +02:00
parent a4564af309
commit 5e04d78275
18 changed files with 342 additions and 1 deletions
+32
View File
@@ -0,0 +1,32 @@
<?php namespace GermanAirlinesVa\Schooling\Models;
use Model;
/**
* Model
*/
class Typerating 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 = 'typeratings';
protected $connection = 'germanairlinesva_schooling';
/**
* @var array Validation rules
*/
public $rules = ['name' => 'required', 'price' => 'required'];
public $hasMany = [
'aircraft_types' => 'GermanAirlinesVa\Fleet',
];
}