Files
newznab-tmux/app/Models/PredbHash.php
T
DariusIII c33db34c49 Apply fixes from StyleCI
[ci skip] [skip ci]
2021-09-13 20:01:06 +00:00

57 lines
1.3 KiB
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* App\Models\PredbHash.
*
* @property int $predb_id id, of the predb entry, this hash belongs to
* @property mixed $hash
* @property-read \App\Models\Predb $predb
*
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\PredbHash whereHash($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\PredbHash wherePredbId($value)
* @mixin \Eloquent
*
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\PredbHash newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\PredbHash newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\PredbHash query()
*/
class PredbHash extends Model
{
/**
* @var bool
*/
public $incrementing = false;
/**
* @var bool
*/
protected $dateFormat = false;
/**
* @var bool
*/
public $timestamps = false;
/**
* @var array
*/
protected $guarded = [];
/**
* @var string
*/
protected $primaryKey = 'hash';
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function predb()
{
return $this->belongsTo(Predb::class, 'predb_id');
}
}