mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
46 lines
692 B
PHP
46 lines
692 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Watson\Rememberable\Rememberable;
|
|
|
|
/**
|
|
* @property mixed $release
|
|
* @property mixed $hash
|
|
*/
|
|
class Predb extends Model
|
|
{
|
|
use Rememberable;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $table = 'predb';
|
|
|
|
/**
|
|
* @var bool
|
|
*/
|
|
public $timestamps = false;
|
|
|
|
/**
|
|
* @var bool
|
|
*/
|
|
protected $dateFormat = false;
|
|
|
|
/**
|
|
* @var array
|
|
*/
|
|
protected $guarded = [];
|
|
|
|
public function hash()
|
|
{
|
|
return $this->hasMany(PredbHash::class, 'predb_id');
|
|
}
|
|
|
|
public function release()
|
|
{
|
|
return $this->hasMany(Release::class, 'predb_id');
|
|
}
|
|
}
|