Files
newznab-tmux-NNTmux/app/Models/PredbHash.php
T
2023-03-30 14:15:39 +00:00

59 lines
1.3 KiB
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
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(): BelongsTo
{
return $this->belongsTo(Predb::class, 'predb_id');
}
}