o
    1g                     @   s`   d dl mZmZmZmZmZmZmZmZ d dl	m
Z
 d dlmZ d dlmZ G dd deZdS )    )ColumnIntegerDateTimeEnumUniqueConstraintIndex
ForeignKeyfunc)BIGINT)now)Basec                   @   s   e Zd ZdZeddddedddfZeedd	ddd
Z	eedd	e
dddddZeedd	e
dddddZeedddZeeddZeedddZeedddddddZeededZeedeedZdS )CompetitionParticipantZcompetition_participantscompetition_iduser_idZuk_competition_user)nameZidx_total_stepstotal_stepsT)unsigned)primary_keyautoincrementzcompetitions.idCASCADE)ondeleteF)nullablezusers.idr   )r   defaultactiveZ	withdrawnZcompetition_participant_status)r   r   onupdateN)__name__
__module____qualname____tablename__r   r   __table_args__r   r
   idr   r   r   r   r   rankpoints_earnedr   statusr   r   Z	joined_at
updated_at r%   r%   */app/app/models/competition_participant.pyr      s(    

r   N)
sqlalchemyr   r   r   r   r   r   r   r	   Zsqlalchemy.dialects.mysqlr
   app.core.timer   app.db.baser   r   r%   r%   r%   r&   <module>   s
   ( 
