PATH:
opt
/
imunify360
/
venv
/
lib
/
python3.11
/
site-packages
/
defence360agent
/
migrations
/
__pycache__
/
Editing: 191_create_wordpress_incident_table.cpython-311.pyc
� ���i6 � �T � d Z ddlZddlmZ G d� dej � � Zd d�Zd d�ZdS ) z�Create wordpress_incident table for WordPress CVE protection incidents. This migration creates a dedicated table for WordPress incidents rather than using the generic incident table. This allows for better separation of concerns and cleaner data model. � N)� JSONFieldc �� � e Zd Z ej dd�� � Z ej d�� � Z ej d�� � Z ej d�� � Z ej d�� � Z ej d�� � Z ej d�� � Z ej d�� � Z ej d�� � Z ej dd�� � Z ej dd�� � Z ed�� � Z ej dd�� � Z G d � d � � ZdS )�WordpressIncidentT)�primary_key�null)r � country_id)r �column_nameN)r �defaultFc � � e Zd ZdZdS )�WordpressIncident.Meta�wordpress_incidentN)�__name__� __module__�__qualname__�db_table� � �s/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/migrations/191_create_wordpress_incident_table.py�Metar s � � � � � �'���r r )r r r �pw�IntegerField�id� CharField�plugin�rule� FloatField� timestamp�retries�severity�name� TextField�description�abuser�country�domainr � extra_info�BooleanField�sent_to_serverr r r r r r sF � � � � � � ���T�� 5� 5� 5�B� �R�\�t� $� $� $�F��2�<�T�"�"�"�D��� �4�(�(�(�I��b�o�4�(�(�(�G��r��D�)�)�)�H��2�<�T�"�"�"�D��"�,�D�)�)�)�K� �R�\�t� $� $� $�F��b�l��,�?�?�?�G� �R�\�t�T� 2� 2� 2�F����%�%�%�J�$�R�_�%��?�?�?�N�(� (� (� (� (� (� (� (� (� (r r Fc �t � | � t � � | � t dd�� � d S )Nr F)�unique)�create_modelr � add_index��migrator�database�fake�kwargss r �migrater2 s; � ����+�,�,�,� ���(�+�e��D�D�D�D�Dr c �>