a
    }hx                     @   s|   d dl mZ d dlmZ d dlmZ d dlmZ G dd dejZ	G dd dejZ
G d	d
 d
ejZG dd dejZdS )    )models)timezone)FifaAccount)(SquadBattleServerSideHandlerWorkerStatusc                   @   sz   e Zd ZejejdZeje	ej
dddZejdddZejddZejddddZejdddZejddZd	d
 ZdS )FifaAccountSquadGamedefaultT	on_deletenullblankr   r   r      
max_lengthr   r   )r   c                 C   s   | j  S )N)fifa_account)self r   FC:\Users\Administrator\Downloads\futplus_django\squad_battle\models.py__str__   s    zFifaAccountSquadGame.__str__N)__name__
__module____qualname__r   DateTimeFieldr   nowcreate_time
ForeignKeyr   CASCADEr   end_timeIntegerFieldZgame_number	CharField
difficultyZenemy_team_rateBooleanField
win_statusr   r   r   r   r   r   	   s   r   c                   @   s   e Zd ZejejdZejdej	dddZ
ejdej	dddZejddZejddZejddZejddZejdddZejddZejd	dd
ZejdedZejddZejejdZejddZejdddZejejdZejddddZdS )"SquadBattleServerSideHandlerWorkerr   accounts.FifaAccountTr	   zsbc.SBCWorkerr   r   r      zaccounts.PlayerCard)r   )r   choicesFr   i  r   N) r   r   r   r   r   r   r   r   r   r   r   
sbc_workerr   Zneed_fix_main_squadZneed_heals_countZneed_contracts_countZneed_manager_contracts_countZneed_position_modifierZuse_contractManyToManyFieldZneed_player_for_special_squadr   statusr"   is_donelast_run_time	has_error	TextFielderror_descriptionr   r    task_idr   r   r   r   r$      s"   r$   c                   @   sZ   e Zd ZejejdZejdej	dZ
ejddZejddZejddZejddZdS )AccountSquadBattleDatar   r%   r
   r   N)r   r   r   r   r   r   r   r   r   r   r   r   event_idscoreZuser_tier_levelZgames_playedr   r   r   r   r2   *   s   r2   c                   @   s^   e Zd ZejejdZejdej	dZ
ejdddZejddZejddZejdddZd	S )
FifaAccountMomentsGamer   r%   r3   Tr   r   Fr&   N)r   r   r   r   r   r   r   r   r   r   r   r   r   Zmoment_numberr"   r#   Zneed_fix_squadr   r   r   r   r6   3   s   r6   N)	django.dbr   django.utilsr   accounts.modelsr   Zsquad_battle.constsr   Modelr   r$   r2   r6   r   r   r   r   <module>   s   	