Typeratings
This commit is contained in:
@@ -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',
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
columns:
|
||||
id:
|
||||
label: id
|
||||
type: text
|
||||
name:
|
||||
label: name
|
||||
type: text
|
||||
price:
|
||||
label: price
|
||||
type: number
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user