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',
];
}
+10
View File
@@ -0,0 +1,10 @@
columns:
id:
label: id
type: text
name:
label: name
type: text
price:
label: price
type: number
+11
View File
@@ -0,0 +1,11 @@
fields:
name:
label: 'germanairlinesva.schooling::lang.typeratings.name'
span: auto
required: 1
type: text
price:
label: 'germanairlinesva.schooling::lang.typeratings.price'
span: auto
required: 1
type: number