1 | <?php namespace FreedomCore\TrinityCore\Character\Models; |
||
28 | class GuildFinderApplicant extends CharacterBaseModel |
||
29 | { |
||
30 | |||
31 | /** |
||
32 | * @inheritdoc |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $table = 'guild_finder_applicant'; |
||
36 | /** |
||
37 | * @inheritdoc |
||
38 | * @var bool |
||
39 | */ |
||
40 | public $incrementing = false; |
||
41 | /** |
||
42 | * @inheritdoc |
||
43 | * @var bool |
||
44 | */ |
||
45 | public $timestamps = false; |
||
46 | /** |
||
47 | * @inheritdoc |
||
48 | * @var array |
||
49 | */ |
||
50 | protected $casts = [ |
||
51 | 'guildId' => 'int', |
||
52 | 'playerGuid' => 'int', |
||
53 | 'availability' => 'int', |
||
54 | 'classRole' => 'int', |
||
55 | 'interests' => 'int', |
||
56 | 'submitTime' => 'int' |
||
57 | ]; |
||
58 | /** |
||
59 | * @inheritdoc |
||
60 | * @var array |
||
61 | */ |
||
62 | protected $fillable = [ |
||
63 | 'availability', |
||
64 | 'classRole', |
||
65 | 'interests', |
||
66 | 'comment', |
||
67 | 'submitTime' |
||
68 | ]; |
||
69 | |||
70 | /** |
||
71 | * Get character to which this application belongs to |
||
72 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
73 | */ |
||
74 | public function character() |
||
78 | |||
79 | /** |
||
80 | * Get guid to which character has applied through the LFG system |
||
81 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
82 | */ |
||
83 | public function guild() |
||
87 | } |
||
88 |