-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathInterviewee.php
More file actions
65 lines (55 loc) · 1.23 KB
/
Interviewee.php
File metadata and controls
65 lines (55 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
/**
* Created by Reliese Model.
* Date: Fri, 25 May 2018 08:05:10 +0000.
*/
namespace App\Models;
use Reliese\Database\Eloquent\Model as Eloquent;
/**
* Class Interviewee
*
* @property string $first_name
* @property string $middle_name
* @property string $last_name
* @property int $id
* @property string $email
* @property int $interview_id
*
* @property \App\Models\Interview $interview
* @property \Illuminate\Database\Eloquent\Collection $documents
* @property \Illuminate\Database\Eloquent\Collection $edu_degrees
* @property \Illuminate\Database\Eloquent\Collection $marks
*
* @package App\Models
*/
class Interviewee extends Eloquent
{
protected $table = 'interviewee';
public $timestamps = false;
protected $casts = [
'interview_id' => 'int'
];
protected $fillable = [
'first_name',
'middle_name',
'last_name',
'email',
'interview_id'
];
public function interview()
{
return $this->belongsTo(\App\Models\Interview::class);
}
public function documents()
{
return $this->hasMany(\App\Models\Document::class);
}
public function edu_degrees()
{
return $this->hasMany(\App\Models\EduDegree::class);
}
public function marks()
{
return $this->hasMany(\App\Models\Mark::class);
}
}