19 lines
363 B
PHP
19 lines
363 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class EntryHash extends Model
|
|
{
|
|
protected $fillable = [
|
|
'entry_id', 'filename', 'hash_crc32', 'hash_sha1', 'verified'
|
|
];
|
|
|
|
public function entry(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Entry::class);
|
|
}
|
|
}
|