42 lines
1.7 KiB
PHP
42 lines
1.7 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
/**
|
|
* @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
|
|
*/
|
|
class EntryHash extends Model
|
|
{
|
|
protected $fillable = [
|
|
'entry_id', 'filename', 'hash_crc32', 'hash_sha1', 'verified'
|
|
];
|
|
|
|
public function entry(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Entry::class);
|
|
}
|
|
}
|