HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/CyberCP/aiScanner/__pycache__/status_models.cpython-310.pyc
o

��h��@s.ddlmZddlmZGdd�dej�ZdS)�)�models)�timezonec@s�eZdZdZejdddd�Zejdd�Zejdd�Z	ej
dd	�Zejdd�Zejdd�Z
ejdd�Zejdd�Zejdd�Zejdd�Zej
dd	�Zejdd
�Zejdd�ZGdd
�d
�Zdd�Zedd��ZdS)�ScanStatusUpdatezReal-time scan progress updates�dT)�
max_length�db_index�primary_key�2)rr)�default)�blank)�auto_now)�auto_now_addc@s(eZdZdZdgZejddgd�gZdS)zScanStatusUpdate.Meta�ai_scanner_status_updatesz
-last_updated�scan_id)�fieldsN)�__name__�
__module__�__qualname__�db_table�orderingr�Index�indexes�rr�-/usr/local/CyberCP/aiScanner/status_models.py�Metas
�rcCsd|j�d|j�d|j�d�S)NzStatus update for z - z (z%))r�phase�progress��selfrrr�__str__$szScanStatusUpdate.__str__cCs
|jdvS)zCheck if scan is still active)�	completed�failed�	cancelled)rrrrr�	is_active's
zScanStatusUpdate.is_activeN)rrr�__doc__r�	CharFieldrr�IntegerFieldr�	TextField�current_file�files_discovered�
files_scanned�files_remaining�
threats_found�critical_threats�high_threats�activity_description�
DateTimeField�last_updated�
created_atrr�propertyr#rrrrrs&rN)�	django.dbr�django.utilsr�Modelrrrrr�<module>s