Files
newznab-tmux-NNTmux/app/Models/Predb.php
T
2017-10-08 23:43:09 +02:00

43 lines
643 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* @property mixed $release
* @property mixed $hash
*/
class Predb extends Model
{
/**
* @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('App\Models\PredbHash', 'predb_id');
}
public function release()
{
return $this->hasMany('App\Models\Release', 'predb_id');
}
}