Files
newznab-tmux-NNTmux/app/Models/PredbHash.php
T
2026-03-11 10:11:30 +01:00

58 lines
1.3 KiB
PHP

<?php
declare(strict_types=1);
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* App\Models\PredbHash.
*
* @property int $predb_id id, of the predb entry, this hash belongs to
* @property mixed $hash
* @property-read 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;
protected $dateFormat = false;
/**
* @var bool
*/
public $timestamps = false;
/**
* @var array<string>
*/
protected $guarded = [];
/**
* @var string
*/
protected $primaryKey = 'hash';
/**
* @return BelongsTo<Predb, $this>
*/
public function predb(): BelongsTo
{
return $this->belongsTo(Predb::class, 'predb_id');
}
}