some progress
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user