38 lines
758 B
PHP
38 lines
758 B
PHP
<?php namespace GermanAirlinesVa\Schooling\Models;
|
|
|
|
use Model;
|
|
|
|
/**
|
|
* Model
|
|
*/
|
|
class ExamTyperating 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 = 'exams';
|
|
protected $connection = 'germanairlinesva_schooling';
|
|
|
|
/**
|
|
* @var array Validation rules
|
|
*/
|
|
public $rules = [
|
|
'member_id' => 'required',
|
|
'typerating_id' => 'required',
|
|
'start' => 'required',
|
|
'status' => 'required',
|
|
];
|
|
|
|
public $belongsTo = [
|
|
'typerating' => 'GermanAirlinesVa\Schooling\Models\Typerating',
|
|
];
|
|
}
|