Files
RomhackPlaza/app/Models/EntryHash.php

42 lines
1.7 KiB
PHP
Raw Permalink Normal View History

2026-05-20 18:25:15 +02:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
2026-06-10 11:04:26 +02:00
/**
* @property int $id
* @property int $entry_id
* @property string $filename
* @property string $hash_crc32
* @property string $hash_sha1
* @property string $verified
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Entry|null $entry
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryHash newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryHash newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryHash query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryHash whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryHash whereEntryId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryHash whereFilename($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryHash whereHashCrc32($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryHash whereHashSha1($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryHash whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryHash whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryHash whereVerified($value)
* @mixin \Eloquent
*/
2026-05-20 18:25:15 +02:00
class EntryHash extends Model
{
protected $fillable = [
'entry_id', 'filename', 'hash_crc32', 'hash_sha1', 'verified'
];
public function entry(): BelongsTo
{
return $this->belongsTo(Entry::class);
}
}