[#2] tv series progress
This commit is contained in:
@@ -21,6 +21,7 @@ class ItemToFetchJobs extends Model
|
||||
public const JOB_WATCH_PROVIDERS = 'WatchProviders';
|
||||
public const JOB_EXTERNAL_IDS = 'ExternalIds';
|
||||
public const JOB_DETAILS = 'Details';
|
||||
public const JOB_CONTENT_RATINGS = 'ContentRatings';
|
||||
|
||||
public const JOBS = [
|
||||
self::JOB_ALTERNVATIVE_TITLES,
|
||||
@@ -37,6 +38,7 @@ class ItemToFetchJobs extends Model
|
||||
self::JOB_VIDEOS,
|
||||
self::JOB_WATCH_PROVIDERS,
|
||||
self::JOB_EXTERNAL_IDS,
|
||||
self::JOB_CONTENT_RATINGS,
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
|
||||
@@ -55,4 +55,14 @@ class Show extends Model
|
||||
{
|
||||
return $this->belongsToMany(Video::class, 'show_videos', 'show_id', 'video_id');
|
||||
}
|
||||
|
||||
public function keywords()
|
||||
{
|
||||
return $this->belongsToMany(Keyword::class, 'show_keywords', 'show_id', 'keyword_id');
|
||||
}
|
||||
|
||||
public function watchProviders()
|
||||
{
|
||||
return $this->belongsToMany(WatchProvider::class, 'show_watch_providers', 'show_id', 'watch_provider_id');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ShowRecommendation extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'show_id',
|
||||
'recommended_show_id',
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ShowSimilar extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'show_id',
|
||||
'similar_show_id',
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ShowTranslation extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'show_id',
|
||||
'iso_3166',
|
||||
'iso_639',
|
||||
'name',
|
||||
'english_name',
|
||||
'homepage',
|
||||
'overview',
|
||||
'runtime',
|
||||
'tagline',
|
||||
'title',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user