1 | <?php namespace FreedomCore\TrinityCore\Character\Models; |
||
21 | class CharacterInventory extends CharacterBaseModel |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | * @inheritdoc |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $table = 'character_inventory'; |
||
29 | /** |
||
30 | * @inheritdoc |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $primaryKey = 'item'; |
||
34 | /** |
||
35 | * @inheritdoc |
||
36 | * @var bool |
||
37 | */ |
||
38 | public $incrementing = false; |
||
39 | /** |
||
40 | * @inheritdoc |
||
41 | * @var bool |
||
42 | */ |
||
43 | public $timestamps = false; |
||
44 | /** |
||
45 | * @inheritdoc |
||
46 | * @var array |
||
47 | */ |
||
48 | protected $casts = [ |
||
49 | 'guid' => 'int', |
||
50 | 'bag' => 'int', |
||
51 | 'slot' => 'int', |
||
52 | 'item' => 'int' |
||
53 | ]; |
||
54 | /** |
||
55 | * @inheritdoc |
||
56 | * @var array |
||
57 | */ |
||
58 | protected $fillable = [ |
||
59 | 'guid', |
||
60 | 'bag', |
||
61 | 'slot', |
||
62 | 'item' |
||
63 | ]; |
||
64 | |||
65 | /** |
||
66 | * Get reverence for the item |
||
67 | * @return \Illuminate\Database\Eloquent\Relations\HasOne |
||
68 | */ |
||
69 | public function reference() |
||
73 | } |
||
74 |