|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace App\Models; |
|
4
|
|
|
|
|
5
|
|
|
use Illuminate\Database\Eloquent\Model; |
|
6
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo; |
|
7
|
|
|
|
|
8
|
|
|
/** |
|
9
|
|
|
* App\Models\AnidbInfo. |
|
10
|
|
|
* |
|
11
|
|
|
* @property-read AnidbTitle $title |
|
12
|
|
|
* |
|
13
|
|
|
* @mixin \Eloquent |
|
14
|
|
|
* |
|
15
|
|
|
* @property int $anidbid ID of title from AniDB |
|
16
|
|
|
* @property string|null $type |
|
17
|
|
|
* @property string|null $startdate |
|
18
|
|
|
* @property string|null $enddate |
|
19
|
|
|
* @property string $updated |
|
20
|
|
|
* @property string|null $related |
|
21
|
|
|
* @property string|null $similar |
|
22
|
|
|
* @property string|null $creators |
|
23
|
|
|
* @property string|null $description |
|
24
|
|
|
* @property string|null $rating |
|
25
|
|
|
* @property string|null $picture |
|
26
|
|
|
* @property string|null $categories |
|
27
|
|
|
* @property string|null $characters |
|
28
|
|
|
* @property int|null $anilist_id ID from AniList |
|
29
|
|
|
* @property int|null $mal_id ID from MyAnimeList |
|
30
|
|
|
* @property string|null $country ISO 3166-1 alpha-2 country code |
|
31
|
|
|
* @property string|null $media_type ANIME or MANGA |
|
32
|
|
|
* @property int|null $episodes Number of episodes |
|
33
|
|
|
* @property int|null $duration Duration in minutes |
|
34
|
|
|
* @property string|null $status Media status (FINISHED, RELEASING, etc.) |
|
35
|
|
|
* @property string|null $source Original source (MANGA, ORIGINAL, etc.) |
|
36
|
|
|
* @property string|null $hashtag AniList hashtag |
|
37
|
|
|
* |
|
38
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AnidbInfo newModelQuery() |
|
39
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AnidbInfo newQuery() |
|
40
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AnidbInfo query() |
|
41
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AnidbInfo whereAnidbid($value) |
|
42
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AnidbInfo whereCategories($value) |
|
43
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AnidbInfo whereCharacters($value) |
|
44
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AnidbInfo whereCreators($value) |
|
45
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AnidbInfo whereDescription($value) |
|
46
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AnidbInfo whereEnddate($value) |
|
47
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AnidbInfo wherePicture($value) |
|
48
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AnidbInfo whereRating($value) |
|
49
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AnidbInfo whereRelated($value) |
|
50
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AnidbInfo whereSimilar($value) |
|
51
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AnidbInfo whereStartdate($value) |
|
52
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AnidbInfo whereType($value) |
|
53
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AnidbInfo whereUpdated($value) |
|
54
|
|
|
*/ |
|
55
|
|
|
class AnidbInfo extends Model |
|
56
|
|
|
{ |
|
57
|
|
|
/** |
|
58
|
|
|
* @var string |
|
59
|
|
|
*/ |
|
60
|
|
|
protected $primaryKey = 'anidbid'; |
|
61
|
|
|
|
|
62
|
|
|
/** |
|
63
|
|
|
* @var bool |
|
64
|
|
|
*/ |
|
65
|
|
|
protected $dateFormat = false; |
|
66
|
|
|
|
|
67
|
|
|
/** |
|
68
|
|
|
* @var bool |
|
69
|
|
|
*/ |
|
70
|
|
|
public $incrementing = false; |
|
71
|
|
|
|
|
72
|
|
|
/** |
|
73
|
|
|
* @var bool |
|
74
|
|
|
*/ |
|
75
|
|
|
public $timestamps = false; |
|
76
|
|
|
|
|
77
|
|
|
/** |
|
78
|
|
|
* @var array |
|
79
|
|
|
*/ |
|
80
|
|
|
protected $guarded = []; |
|
81
|
|
|
|
|
82
|
|
|
/** |
|
83
|
|
|
* @var string |
|
84
|
|
|
*/ |
|
85
|
|
|
protected $table = 'anidb_info'; |
|
86
|
|
|
|
|
87
|
|
|
public function title(): BelongsTo |
|
88
|
|
|
{ |
|
89
|
|
|
return $this->belongsTo(AnidbTitle::class, 'anidbid'); |
|
90
|
|
|
} |
|
91
|
|
|
|
|
92
|
|
|
} |
|
93
|
|
|
|