mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
44 lines
653 B
PHP
44 lines
653 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class AnidbEpisode extends Model
|
|
{
|
|
/**
|
|
* @var bool
|
|
*/
|
|
protected $dateFormat = false;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $primaryKey = 'anidbid';
|
|
|
|
/**
|
|
* @var bool
|
|
*/
|
|
public $incrementing = false;
|
|
|
|
/**
|
|
* @var bool
|
|
*/
|
|
public $timestamps = false;
|
|
|
|
/**
|
|
* @var array
|
|
*/
|
|
protected $guarded = [];
|
|
|
|
public function title()
|
|
{
|
|
return $this->belongsTo(AnidbTitle::class, 'anidbid');
|
|
}
|
|
|
|
public function info()
|
|
{
|
|
return $this->hasMany(AnidbInfo::class, 'anidbid');
|
|
}
|
|
}
|