
    
Ug\$                     8   d dl mZ d dlmZ d dlmZ d dlmZmZm	Z	 d dl
mZ  G d dej                  Z G d d	ej                  Z G d
 dej                  Z G d dej                  Z G d dej                  Z G d dej                  Z G d dej                  Z G d dej                  Z G d dej                  Z G d dej                  Z G d dej                  Z G d dej                  Z G d dej                  Zd S )!    )make_archive)models)User)CASCADESET_NULL
DO_NOTHING)DiscoverSubCategoryc                      e Zd Z ej        dd          Z ej        dd          Z ej        d          Z	 ej        dd          Z
 ej        d          Z ej        dd          Z ej        dd          Z ej        d          Z ej        d	d
d          Z ej        d	d
d          Z ej        dddgd          Z ej        d          Z ej        d
ddgd          Z ej        d          Z ej        d          Z ej        dd          Z ej        dd          Z ej        d          Z ej        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          Z! ej        dd          Z" ej        dd          Z# ej        dd          Z$ ej        dd          Z% ej        d          Z& ej        d          Z' ej        d          Z( ej        d          Z) ej*        d          Z+ ej*        d          Z, ej*        d          Z- G d d          Z.dS )AppUserd   T
max_lengthnullFdefaultr         
      )
max_digitsdecimal_placesr      )kg	Kilograms)lbsPoundsr   )r   choicesr   )cmCentimeters)ftFeetr   2      i  auto_now_addauto_nowc                       e Zd ZdZdS )AppUser.Metaapp_userN__name__
__module____qualname__db_table     5/var/www/html/Alfredo_demo/alfredo/user_app/models.pyMetar*   .   s        (((r2   r4   N)/r-   r.   r/   r   	CharField	full_name
EmailFieldemailBooleanFieldemail_verifiedphone_numberIntegerFieldotppasswordgenderageDecimalFieldcurrent_weighttarget_weightweight_unitcurrent_heightheight_unit	TextField
focus_area	main_goalcurrent_body_shapefitness_levelmedical_conditionallergies_exclusions	fcm_tokendevice_typeaddresslatitude	longitudeprovider_id	social_idimage	stripe_idis_profile_completednotification_statusis_account_deletedstatusDateTimeField
created_at
updated_atend_dater4   r1   r2   r3   r   r   	   s`       V$777		ct	4	4	4%&%e444  CT:::v%%%F666
&
rt
4
4
4v%%%%&%A4PPP$$1$OOOv17JL]6^hlmmm%&%4111v17Ln6]gklllfD)))V4(((&f&#4@@@!!Sd;;;%V%4000((d333V$777v248886s555F666V$777v3D999V$777		Sd	3	3	36s555++E:::*v*4888)f)%8886t,,,"f"555"f"D111 F d+++         r2   r   c                      e Zd Z ej        eej                  Z ej        d          Z	 ej
        dd          Z ej        dd          Z ej        dd          Z ej        d          Z G d	 d
          ZdS )AppUserNotification	on_deleteTr   Fr   r   r   r   )r&   r   c                       e Zd ZdZdS )AppUserNotification.Metauser_notificationsNr,   r1   r2   r3   r4   re   ;           !(((r2   r4   N)r-   r.   r/   r   
ForeignKeyr   r   userrG   messager9   is_readr5   notification_typer[   
start_dater^   r4   r1   r2   r3   r`   r`   3   s        'fn===6&&&6u$777%V%$???"f"%@@@ F d+++" " " " " " " " " "r2   r`   c                      e Zd Z ej        eej        d          Z ej        eej        d          Z ej	        d          Z
 ej        d          Z ej        d          Z ej        d	          Z G d
 d          ZdS )Friends	from_user)rb   related_nameto_userFr   Tr%   r'   r   c                       e Zd ZdZdS )Friends.MetafriendsNr,   r1   r2   r3   r4   rt   H   s        (((r2   r4   N)r-   r.   r/   r   rh   r   r   rp   rr   r9   acceptedr[   r\   r]   r^   r4   r1   r2   r3   ro   ro   @   s        Vw&.{[[[6WYWWWF..."f"555"f"D111!V!t,,,         r2   ro   c                      e Zd Z ej        eej                  Z ej        dej                  Z ej	        d          Z
 ej        d          Z ej        d          Z ej        d          Z ej        d          Z ej        d          Z ej        dd          Z ej        d          Z ej        d	          Z G d
 d          ZdS )AssessmentAttemptra   ztrainer.StudentAssessmentr   r   Tr   rc   r%   r'   c                       e Zd ZdZdS )AssessmentAttempt.Metaassessment_attemptNr,   r1   r2   r3   r4   rz   Z   rg   r2   r4   N)r-   r.   r/   r   rh   r   r   ri   
assessmentPositiveIntegerFieldattempt_numberDurationFieldcompletion_timer<   repetitionssets
FloatFieldweight	DateFieldcompleted_datecomplete_percentr[   r\   r]   r4   r1   r2   r3   rx   rx   M   s/       'fn===f ;v~VVV-&-a888'6'T222"v"---&&&
&

&
&
&"&"---&V&qd;;;"f"555"f"D111" " " " " " " " " "r2   rx   c                   $   e Zd Z ej        eej                  Z ej        dej                  Z ej	        dd          Z
 ej	        dd          Z ej	        dd          Z ej        d          Z ej        d	          Z ej        d	          Z ej        d	          Z ej        d	          Z ej        d	          Z ej        dd
          Z ej        d          Z ej        d          Z G d d          ZdS )WorkoutAttemptra   ztrainer.StudentWorkOutPlanP  Tr   r#   r   r   r   rc   r%   r'   c                       e Zd ZdZdS )WorkoutAttempt.Metaworkout_attemptNr,   r1   r2   r3   r4   r   n   s        (((r2   r4   Nr-   r.   r/   r   rh   r   r   ri   workoutr5   exercise_dataworkout_weekworkout_dayr}   r~   r   r   r<   r   r   r   r   r   r   r   r[   r\   r]   r4   r1   r2   r3   r   r   ^   st       'fn===69V^TTTv5d;;;f"$777V666-&-a888'6'T222"v"---&&&
&

&
&
&"&"---&V&qd;;;"f"555"f"D111         r2   r   c                   $   e Zd Z ej        eej                  Z ej        dej                  Z ej	        dd          Z
 ej	        dd          Z ej	        dd          Z ej        d          Z ej        d	          Z ej        d	          Z ej        d	          Z ej        d	          Z ej        d	          Z ej        dd
          Z ej        d          Z ej        d          Z G d d          ZdS )PublicWorkoutAttemptra   ztrainer.WorkOutPlanr   Tr   r#   r   r   r   rc   r%   r'   c                       e Zd ZdZdS )PublicWorkoutAttempt.Metapublic_workout_attemptNr,   r1   r2   r3   r4   r      s        %(((r2   r4   Nr   r1   r2   r3   r   r   r   st       'fn===62fnMMMv5d;;;f"$777V666-&-a888'6'T222"v"---&&&
&

&
&
&"&"---&V&qd;;;"f"555"f"D111& & & & & & & & & &r2   r   c                       e Zd Z ej        eej                  Z ej        eej                  Z	 ej
        d          Z ej        d          Z ej        d          Z G d d          Zd	S )
FavouriteDiscoverSubCategoryra   Fr   Tr%   r'   c                       e Zd ZdZdS )!FavouriteDiscoverSubCategory.Metafavourite_sub_categoryNr,   r1   r2   r3   r4   r      s        &888r2   r4   N)r-   r.   r/   r   rh   r   r   ri   r	   discover_sub_categoryr9   
is_deletedr[   r\   r]   r4   r1   r2   r3   r   r      s        v6>:::$))*=WWW V ///*#v#666*#v#T222*' ' ' ' ' ' ' ' ' 'r2   r   c                       e Zd Z ej        eej                  Z ej        dd          Z	 ej
        d          Z ej        d          Z ej        d          Z G d d	          Zd
S )WeightReportra      Tr   r   r%   r'   c                       e Zd ZdZdS )WeightReport.Metaweight_reportNr,   r1   r2   r3   r4   r              (((r2   r4   N)r-   r.   r/   r   rh   r   r   ri   r   r   r   dater[   r\   r]   r4   r1   r2   r3   r   r      s        f&.999
&
s$
7
7
7d###"f"555"f"D111         r2   r   c                   *   e Zd Z ej        eej                  Z ej        dd          Z	 ej        dd          Z
 ej        dd          Z ej        dd          Z ej        d          Z ej        d          Z G d d          Zd	S )
	BmiReportra   r   Tr   r%   r'   c                       e Zd ZdZdS )BmiReport.Meta
bmi_reportNr,   r1   r2   r3   r4   r              (((r2   r4   N)r-   r.   r/   r   rh   r   r   ri   r   r   heightr5   bmi	bmi_valuer[   r\   r]   r4   r1   r2   r3   r   r      s        f&.999
&
s$
7
7
7
&
s$
7
7
7Ct444f#T:::"f"555"f"D111         r2   r   c                       e Zd Z ej        eej                  Z ej        d          Z	 ej
        d          Z ej
        d          Z G d d          Zd	S )
CaloriesDatara   i  )r   Tr%   r'   c                       e Zd ZdZdS )CaloriesData.Metacalories_dataNr,   r1   r2   r3   r4   r      r   r2   r4   N)r-   r.   r/   r   rh   r   r   ri   r5   total_caloriesr[   r\   r]   r4   r1   r2   r3   r   r      s        f&.999  D111"f"555"f"D111         r2   r   c                      e Zd Z ej        eej        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          Z ej        d          Z ej        d          Z ej        d          Z ej        d	          Z G d
 d          ZdS )	UserCardsTrb   r   r   r   Fr   r%   r'   r   c                       e Zd ZdZdS )UserCards.Meta
user_cardsNr,   r1   r2   r3   r4   r      r   r2   r4   N)r-   r.   r/   r   rh   r   r   ri   r5   card_id	exp_monthexp_yearthe_user_stripelast_digitsr9   
is_defaultr[   r\   r]   r^   r4   r1   r2   r3   r   r      s       'FNEEE6s555V$777F666#6#s===v3D999!f!%000"f"555"f"D111!V!t,,,         r2   r   c                      e Zd Z ej        dej        d          Z ej        ddd          Z ej        e	ej        d          Z
 ej        ddd	
          Z ej        ddd          Z ej        ddd          Z ej        ddd          Z ej        dd          Z ej        d          Z ej        d          Z ej        d          Z G d d          ZdS )UserTranscationsztrainer.TrainerTr   r    )r   r   r   r   r   r   )r   r   r   r   r   r%   r'   r   c                       e Zd ZdZdS )UserTranscations.Metauser_transcationNr,   r1   r2   r3   r4   r      s        (((r2   r4   N)r-   r.   r/   r   rh   r   trainerr5   transcation_idr   ri   rA   amounttxn_idrecipet_urlpayment_modetranscation_typer[   r\   r]   r^   r4   r1   r2   r3   r   r      sG       6.TRRR"&"c"$GGG'FNEEE6"QJJJ
&
c"$
?
?
?v3rtDDD  CEEE$F$>>>"f"555"f"D111!V!t,,,                   r2   r   c                      e Zd Z ej        eej        d          Z ej        dej        d          Z ej        dej        d          Z	 ej        dej        d          Z
 ej        d          Z ej        dd	          Z ej        dd	          Z ej        dd	          Z ej        d
          Z ej        d          Z ej        d          Z G d d          ZdS )UserIsExerciseWorkoutTr   ztrainer.PlanExerciseztrainer.SubExerciseztrainer.WorkoutPlanFr   r#   r   r%   r'   r   c                       e Zd ZdZdS )UserIsExerciseWorkout.Metacompleted_exercise_statusNr,   r1   r2   r3   r4   r      s        ((((r2   r4   N)r-   r.   r/   r   rh   r   r   ri   exercisesub_exerciser   r9   is_completedr5   r   r   workout_typer[   r\   r]   r^   r4   r1   r2   r3   r   r      sG       'FNEEEF4v~SWXXX!!"7&.VZ[[[62V^QUVVV!f!%000f"$777V666f"$777"f"555"f"D111!V!t,,,) ) ) ) ) ) ) ) ) )r2   r   N)shutilr   	django.dbr   django.contrib.auth.modelsr   django.db.models.deletionr   r   r   admin_panel.modelsr	   Modelr   r`   ro   rx   r   r   r   r   r   r   r   r   r   r1   r2   r3   <module>r      s               + + + + + + C C C C C C C C C C 2 2 2 2 2 2& & & & &fl & & &T	" 	" 	" 	" 	"&, 	" 	" 	"	 	 	 	 	fl 	 	 	" " " " " " " ""    V\   (& & & & &6< & & &&' ' ' ' '6< ' ' '    6<   
 
 
 
 
 
 
 
    6<                    v|       ) ) ) ) )FL ) ) ) ) )r2   