Edit File: 002_infected_domain_list.cpython-311.pyc
� �*vh� � �H � d Z ddlZ 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 ej d�� � Z ej d�� � Z ej d�� � Z ej � � Z G d� d� � ZdS )�InfectedDomainListT)�primary_keyF)�nullc � � e Zd ZdZdS )�InfectedDomainList.Meta�infected_domain_listN)�__name__� __module__�__qualname__�db_table� � �h/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/migrations/002_infected_domain_list.py�Metar s � � � � � �)���r r N)r r r �pw�IntegerField�id� CharField�name�threat_type� FloatField� timestampr r r r r r s� � � � � � � ���T� *� *� *�B��2�<�U�#�#�#�D��"�,�E�*�*�*�K��� ���I�*� *� *� *� *� *� *� *� *� *r r Fc �: � | � t � � d S �N)�create_modelr ��migrator�database�fake�kwargss r �migrater"