[#2] tv series progress

This commit is contained in:
2025-01-08 01:25:21 +02:00
parent da6d92ec65
commit 929954ebd9
11 changed files with 512 additions and 2 deletions
+2
View File
@@ -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 = [
+10
View File
@@ -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');
}
}
+13
View File
@@ -0,0 +1,13 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ShowRecommendation extends Model
{
protected $fillable = [
'show_id',
'recommended_show_id',
];
}
+13
View File
@@ -0,0 +1,13 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ShowSimilar extends Model
{
protected $fillable = [
'show_id',
'similar_show_id',
];
}
+21
View File
@@ -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',
];
}