This commit is contained in:
hashbro
2026-08-08 05:09:01 +08:00
parent 03a40105fc
commit 74a67c3900
523 changed files with 669 additions and 5965 deletions
+26
View File
@@ -0,0 +1,26 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Photo extends Model
{
protected $fillable = [
'device_id',
'sha256',
'path',
'size',
'x_hit',
'upload_count',
'process_index',
'text_count',
'barcode_count',
];
public function device(): BelongsTo
{
return $this->belongsTo(Device::class);
}
}