This commit is contained in:
2021-08-14 19:20:57 +02:00
parent a3696de0c7
commit 3b1b587806
9 changed files with 354 additions and 1 deletions
+37
View File
@@ -0,0 +1,37 @@
<?php namespace GermanAirlinesVa\Social\Models;
use Model;
/**
* Model
*/
class Member 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 = 'members';
public $connection = 'germanairlinesva_social';
/**
* @var array Validation rules
*/
public $rules = [];
public $belongsTo = [
'member_rank' => 'GermanAirlinesVa\Schooling\Models\MemberRank',
];
public $hasMany = [
'exam_member_ranks' => 'GermanAirlinesVa\Schooling\Models\ExamMemberRank',
'exam_typeratings' => 'GermanAirlinesVa\Schooling\Models\ExamTyperating',
];
}