관리-도구
편집 파일: 014_add_malware_hits.cpython-311.pyc
� IMgG � � � d Z ddlZ G d� dej � � Z G d� dej � � Z G d� dej � � Zdd �Zdd�ZdS ) a� Peewee migrations: :: > Model = migrator.orm['name'] > migrator.sql(sql) > migrator.python(func, *args, **kwargs) > migrator.create_model(Model) > migrator.remove_model(Model, cascade=True) > migrator.add_fields(Model, **fields) > migrator.change_fields(Model, **fields) > migrator.remove_fields(Model, *field_names, cascade=True) > migrator.rename_field(Model, old_field_name, new_field_name) > migrator.rename_table(Model, new_table_name) > migrator.add_index(Model, *col_names, unique=False) > migrator.drop_index(Model, *col_names) > migrator.add_not_null(Model, *field_names) > migrator.drop_not_null(Model, *field_names) > migrator.add_default(Model, field_name, default) � Nc � � e Zd Z G d� d� � Z ej d�� � Z ej d�� � Z ej d�� � Z ej d ej d� � g�� � Z ej d�� � Z ej dd � � � Z dS )�MalwareScanc � � e Zd ZdZdS )�MalwareScan.Meta� malware_scansN��__name__� __module__�__qualname__�db_table� � �d/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/migrations/014_add_malware_hits.py�Metar s � � � � � �"���r r T��primary_keyF��nullz!type in ('on-demand', 'realtime'))r �constraintsr �r �defaultN)r r r r �pw� CharField�scanid�IntegerField�started� completed�Check�type�path�total_filesr r r r r s� � � � � � �#� #� #� #� #� #� #� #� �R�\�d� +� +� +�F��b�o�5�)�)�)�G����U�+�+�+�I��2�<� ����*M�!N�!N� O�� � �D� �2�<�U�#�#�#�D�!�"�/�u�a�8�8�8�K�K�Kr r c � � e Zd Z G d� d� � Z ej d�� � Z ej ed�� � Z ej d�� � Z ej d�� � Z ej d�� � Z ej dd�� � ZdS ) � MalwareHitc � � e Zd ZdZdS )�MalwareHit.Meta�malware_hitsNr r r r r r% ( s � � � � � �!���r r Tr Fr r N)r r r r r r �id�ForeignKeyFieldr r r �user� orig_filer �BooleanField�restoredr r r r# r# '