Rank Question

This commit is contained in:
Gogs
2021-06-16 22:08:53 +02:00
parent dfe1530d27
commit e4373729c5
20 changed files with 375 additions and 52 deletions
+37
View File
@@ -0,0 +1,37 @@
<?php namespace GermanAirlinesVa\Schooling\Models;
use Model;
/**
* Model
*/
class ExamMemberRankQuestion 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 = 'exam_questions';
protected $connection = 'germanairlinesva_schooling';
/**
* @var array Validation rules
*/
public $rules = [
'member_rank' => 'required',
'in_use' => 'required',
'mandatory' => 'required',
'text' => 'required',
];
public $belongsTo = [
'member_rank' => 'GermanAirlinesVa\Schooling\Models\MemberRank',
];
}