mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
48 lines
1.2 KiB
PHP
48 lines
1.2 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
/**
|
|
* App\Models\VideoAlias.
|
|
*
|
|
* @property int $videos_id FK to videos.id of the parent title.
|
|
* @property string $title AKA of the video.
|
|
* @property-read Video $video
|
|
*
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\VideoAlias whereTitle($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\VideoAlias whereVideosId($value)
|
|
*
|
|
* @mixin \Eloquent
|
|
*
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\VideoAlias newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\VideoAlias newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\VideoAlias query()
|
|
*/
|
|
class VideoAlias extends Model
|
|
{
|
|
protected $table = 'videos_aliases';
|
|
|
|
/**
|
|
* @var bool
|
|
*/
|
|
public $incrementing = false;
|
|
|
|
/**
|
|
* @var array<string>
|
|
*/
|
|
protected $guarded = [];
|
|
|
|
/**
|
|
* @return BelongsTo<Video, $this>
|
|
*/
|
|
public function video(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Video::class, 'videos_id');
|
|
}
|
|
}
|