mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
87c6e5d64f
[ci skip] [skip ci]
51 lines
1.0 KiB
PHP
51 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Yadakhov\InsertOnDuplicateKey;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* App\Models\VideoAlias.
|
|
*
|
|
* @property int $videos_id FK to videos.id of the parent title.
|
|
* @property string $title AKA of the video.
|
|
* @property-read \App\Models\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
|
|
*/
|
|
class VideoAlias extends Model
|
|
{
|
|
use InsertOnDuplicateKey;
|
|
|
|
protected $table = 'videos_aliases';
|
|
/**
|
|
* @var bool
|
|
*/
|
|
public $timestamps = false;
|
|
|
|
/**
|
|
* @var bool
|
|
*/
|
|
protected $dateFormat = false;
|
|
|
|
/**
|
|
* @var bool
|
|
*/
|
|
public $incrementing = false;
|
|
|
|
/**
|
|
* @var array
|
|
*/
|
|
protected $guarded = [];
|
|
|
|
/**
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
|
*/
|
|
public function video()
|
|
{
|
|
return $this->belongsTo(Video::class, 'videos_id');
|
|
}
|
|
}
|