'integer', 'scanned_at' => 'datetime', ]; } protected $fillable = [ 'device_id', 'sha256', 'path', 'size', 'x_hit', 'upload_count', 'process_index', 'text_count', 'barcode_count', 'scan_status', 'scanned_at', 'ocr_text', ]; public function device(): BelongsTo { return $this->belongsTo(Device::class); } public function reads(): HasMany { return $this->hasMany(PhotoRead::class); } }