feat: scan
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user