Files
movies/app/Models/ItemToFetch.php
T

25 lines
451 B
PHP
Raw Normal View History

2024-12-30 01:51:28 +02:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
2025-01-04 03:22:13 +02:00
/** @property int tmdb_id */
2024-12-30 01:51:28 +02:00
class ItemToFetch extends Model
{
public const TYPE_MOVIE = 'movie';
public const TYPE_TV_SERIES = 'tv_series';
protected $table = 'items_to_fetch';
protected $fillable = [
'tmdb_id',
'type',
];
public function jobs()
{
return $this->hasOne(ItemToFetchJobs::class, 'tmdb_id', 'tmdb_id');
}
}