feat: scan

This commit is contained in:
hashbro
2026-09-12 23:53:53 +08:00
parent e294053285
commit 558912864d
36 changed files with 4165 additions and 15 deletions
+11
View File
@@ -10,6 +10,14 @@ class Photo extends Model
{
public const X_HIT_ALERT = 12;
protected function casts(): array
{
return [
'scan_status' => 'integer',
'scanned_at' => 'datetime',
];
}
protected $fillable = [
'device_id',
'sha256',
@@ -20,6 +28,9 @@ class Photo extends Model
'process_index',
'text_count',
'barcode_count',
'scan_status',
'scanned_at',
'ocr_text',
];
public function device(): BelongsTo