관리-도구
편집 파일: 001_initial.cpython-311.opt-1.pyc
� IMg� � � � d Z ddlZ G d� dej � � Z G d� dej � � Z G d� dej � � Z G d � d ej � � Zdd�Zdd �Z dS )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 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 G d� d� � ZdS )�IncidentT��primary_key�null�r c � � e Zd ZdZdS )� Incident.Meta�incidentN��__name__� __module__�__qualname__�db_table� � �[/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/migrations/001_initial.py�Metar # s � � � � � ����r r N)r r r �pw�IntegerField�id� CharField�plugin�rule� FloatField� timestamp�retries�severity�name�description�abuserr r r r r r s� � � � � � � ���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�� � � � � � � � � r r c � � e Zd Z ej dd�� � Z ej d ej d� � g�� � Z ej dd�� � Z G d� d � � Z d S )�IPListTFr z$listname in ('WHITE','BLACK','GRAY'))r �constraintsr )�defaultr c � � e Zd ZdZdS )�IPList.Meta�iplistNr r r r r r'