
    oiI                        S SK Jr  S SKrS SKJrJr  S rS rS r " S S\R                  5      r
 " S	 S
\R                  5      r " S S\R                  5      r " S S\R                  5      r " S S\R                  5      r " S S\R                  5      r " S S\R                  5      r " S S\R                  5      r " S S\R                  5      r " S S\R                  5      r " S S\R                  5      r " S S\R                  5      r " S S \R                  5      r " S! S"\R                  5      r " S# S$\R                  5      r " S% S&\R                  5      r " S' S(\R                  5      r " S) S*\R                  5      r " S+ S,\R                  5      r " S- S.\R                  5      r " S/ S0\R                  5      r " S1 S2\R                  5      r " S3 S4\R                  5      r  " S5 S6\R                  5      r! " S7 S8\R                  5      r" " S9 S:\R                  5      r# " S; S<\R                  5      r$ " S= S>\R                  5      r% " S? S@\R                  5      r& " SA SB\R                  5      r' " SC SD\R                  5      r( " SE SF\R                  5      r) " SG SH\R                  5      r* " SI SJ\R                  5      r+ " SK SL\R                  5      r, " SM SN\R                  5      r- " SO SP\R                  5      r. " SQ SR\R                  5      r/ " SS ST\R                  5      r0 " SU SV\R                  5      r1 " SW SX\R                  5      r2 " SY SZ\R                  5      r3 " S[ S\\R                  5      r4 " S] S^\R                  5      r5 " S_ S`\R                  5      r6 " Sa Sb\R                  5      r7 " Sc Sd\R                  5      r8 " Se Sf\R                  5      r9g)g    )modelsN)datetimec                 f    [         R                  R                  SU R                  -   S-   S-   5      $ )Nzimages/symptom_type/.pngospathjoinkeyNameinstancefilenames     t/Users/waleedhassanin/Documents/snowflake_co_dev_github/snow_flake_back_end_deploy/mama_care_api/mama_care/models.pysymptom_picture_pathr      s/    77<<!1!11C7%?     c                 f    [         R                  R                  SU R                  -   S-   S-   5      $ )Nzimages/baby_size/r   r   r	   r   s     r   baby_size_picture_pathr      s/    77<<h...4u< r   c                 f    [         R                  R                  SU R                  -   S-   S-   5      $ )Nzimages/pregnancy_week/r   r   r	   r   s     r   pregnancy_week_picture_pathr      s/    77<< 8#3#33c9EA r   c                       \ rS rSr\R
                  " 5       r\R                  " SS9r\R                  " 5       r
\R                  " 5       rSrg)	TokenType$      default N)__name__
__module____qualname____firstlineno__r   	TextFieldr   IntegerFieldtokenTypeLenDateTimeFieldcreatedDateupdatedDate__static_attributes__r   r   r   r   r   $   s<     G&&r2L&&(K&&(Kr   r   c                   z    \ rS rSr\R
                  " 5       r\R                  " 5       r\R                  " 5       r	Sr
g)DeviceOSType*   r   Nr   r    r!   r"   r   r#   r   r&   r'   r(   r)   r   r   r   r+   r+   *   ,     G&&(K&&(Kr   r+   c                       \ rS rSr\R
                  " 5       r\R                  " SS9r\R                  " SS9r	\R                  " SS9r\R                  " 5       r\R                  " 5       rS rSrg)	Language/   
   )
max_lengthFr   c                 ,    [        U R                  5      $ )N)strname)selfs    r   __str__Language.__str__7   s    499~r   r   N)r   r    r!   r"   r   r#   r6   	CharFieldcountryCodelanguageCodeBooleanField	isEnabledr&   r'   r(   r8   r)   r   r   r   r0   r0   /   sa    D""b1K##r2L##E2I&&(K&&(Kr   r0   c                   6    \ rS rSr\R
                  " 5       rSrg)Gender;   r   Nr   r    r!   r"   r   r#   r   r)   r   r   r   r@   r@   ;        Gr   r@   c                       \ rS rSr\R
                  " 5       r\R                  " \\R                  SS9r
\R                  " \\R                  SS9rSrg)GenderLanguage?   gender_genderlanguage	on_deleterelated_namelanguage_genderlanguager   N)r   r    r!   r"   r   r#   r6   
ForeignKeyr@   CASCADEgenderIdr0   
languageIdr)   r   r   r   rE   rE   ?   sL    D  ..,H
 ""...Jr   rE   c                   6    \ rS rSr\R
                  " 5       rSrg)	ChildTypeM   r   NrB   r   r   r   rQ   rQ   M   rC   r   rQ   c                       \ rS rSr\R
                  " 5       r\R                  " \\R                  SS9r
\R                  " \\R                  SS9rSrg)ChildTypeLanguageQ   childtype_childtypelanguagerH   language_childtypelanguager   N)r   r    r!   r"   r   r#   r6   rL   rQ   rM   childTypeIdr0   rO   r)   r   r   r   rT   rT   Q   sL    D##..2K
 ""..1Jr   rT   c                       \ rS rSr\R
                  " 5       r\R                  " \SSSSS9r	\R                  " 5       r\R                  " 5       rSrg)SymptomType_   T/default/holder.jpg   	upload_tonullblankr   r3   r   N)r   r    r!   r"   r   r#   r   
ImageFieldr   imager&   r'   r(   r)   r   r   r   rZ   rZ   _   sM     G&%E &&(K&&(Kr   rZ   c                       \ rS rSr\R
                  " 5       r\R                  " \\R                  SS9r
\R                  " \\R                  SS9rSrg)SymptomTypeLanguagel   symptomtype_symptomtypelanguagerH   language_symptomtypelanguager   N)r   r    r!   r"   r   r#   r6   rL   rZ   rM   symptomTypeIdr0   rO   r)   r   r   r   re   re   l   L    D%%..6M
 ""..3Jr   re   c                       \ rS rSr\R
                  " 5       r\R                  " 5       r\R
                  " 5       r	\R                  " 5       r\R                  " 5       rSrg)KickTrackerStatus{   r   N)r   r    r!   r"   r   r#   r   r$   countcolorr&   r'   r(   r)   r   r   r   rl   rl   {   sH     G!EE&&(K&&(Kr   rl   c                       \ rS rSr\R
                  " 5       r\R
                  " 5       r\R                  " \	\R                  SS9r\R                  " \\R                  SS9rSrg)KickTrackerStatusLanguage   +kicktrackerstatus_kicktrackerstatuslanguagerH   "language_kicktrackerstatuslanguager   N)r   r    r!   r"   r   r#   r6   descriptionrL   rl   rM   kickTrackerStatusIdr0   rO   r)   r   r   r   rq   rq      s[    D""$K ++..B
 ""..9Jr   rq   c                   z    \ rS rSr\R
                  " 5       r\R                  " 5       r\R                  " 5       r	Sr
g)BMICaseType   r   Nr-   r   r   r   rx   rx      r.   r   rx   c                       \ rS rSr\R
                  " 5       r\R                  " \\R                  SS9r
\R                  " \\R                  SS9rSrg)BMICaseTypeLanguage   bmicasetype_bmicasetypelanguagerH   language_bmicasetypelanguager   N)r   r    r!   r"   r   r#   r6   rL   rx   rM   bmiCaseTypeIdr0   rO   r)   r   r   r   r{   r{      rj   r   r{   c                       \ rS rSr\R
                  " 5       r\R                  " 5       r\R                  " 5       r	\R                  " 5       r\R                  " 5       r\R                  " \\R                  SS9rSrg)BMICase   bmicasetype_bmicaserH   r   N)r   r    r!   r"   r   r#   r   
FloatFieldminmaxr&   r'   r(   rL   rx   rM   r   r)   r   r   r   r   r      se     G



C



C&&(K&&(K%%..*Mr   r   c                       \ rS rSr\R
                  " 5       r\R                  " \\R                  SS9r
\R                  " \\R                  SS9rSrg)BMICaseLanguage   bmicase_bmicaselanguagerH   language_bmicaselanguager   N)r   r    r!   r"   r   r#   r6   rL   r   rM   	bmiCaseIdr0   rO   r)   r   r   r   r   r      sL    D!!...I
 ""../Jr   r   c                       \ rS rSr\R
                  " 5       r\R
                  " 5       r\R                  " 5       r	\R                  " 5       r
\R                  " \\R                  SS9rSrg)BMICaseWeightGain   bmicase_bmicaseweightgainrH   r   N)r   r    r!   r"   r   r   r   r   r&   r'   r(   rL   r   rM   r   r)   r   r   r   r   r      sW    



C



C&&(K&&(K!!..0Ir   r   c                   z    \ rS rSr\R
                  " 5       r\R                  " 5       r\R                  " 5       r	Sr
g)CalculationMethod   r   Nr-   r   r   r   r   r      r.   r   r   c                       \ rS rSr\R
                  " 5       r\R                  " \\R                  SS9r
\R                  " \\R                  SS9rSrg)CalculationMethodLanguage   +calculationmethod_calculationmethodlanguagerH   "language_calculationmethodlanguager   N)r   r    r!   r"   r   r#   r6   rL   r   rM   calculationMethodIdr0   rO   r)   r   r   r   r   r      sM    D ++..B
 ""..9Jr   r   c                      \ rS rSr\R
                  " SS9r\R                  " 5       r\R
                  " 5       r	\R
                  " 5       r
\R                  " \SSSSS9r\R                  " 5       r\R                  " 5       rSrg)	PregnancyWeek   T)primary_keyr\   r]   r^   r   N)r   r    r!   r"   r   r$   idr#   r   
weekNumber	trimesterrb   r   rc   r&   r'   r(   r)   r   r   r   r   r      sy    				.B G$$&J##%I-%E &&(K&&(Kr   r   c                       \ rS rSr\R
                  " 5       r\R                  " 5       r\R                  " 5       r	\R                  " \\R                  SS9r\R                  " \\R                  SS9rSrg)PregnancyWeekLanguage   #pregnancyweek_pregnancyweeklanguagerH   language_pregnancyweeklanguager   N)r   r    r!   r"   r   r#   fetalDevelopmentr&   r'   r(   rL   r   rM   pregnancyWeekIdr0   rO   r)   r   r   r   r   r      si    '')&&(K&&(K''..:O
 ""..5Jr   r   c                       \ rS rSr\R
                  " 5       r\R
                  " 5       r\R                  " \	\R                  SS9rSrg)PregnancySymptomi  pregnancyweek_pregnancySymptomrH   r   Nr   r    r!   r"   r   r&   r'   r(   rL   r   rM   r   r)   r   r   r   r   r     s;    &&(K&&(K''..5Or   r   c                       \ rS rSr\R
                  " 5       r\R                  " 5       r\R                  " 5       r	\R                  " \\R                  SS9r\R                  " \\R                  SS9rSrg)PregnancySymptomLanguagei  )pregnancysymptom_pregnancySymptomlanguagerH   !language_pregnancySymptomlanguager   N)r   r    r!   r"   r   r#   ru   r&   r'   r(   rL   r   rM   pregnancySymptomIdr0   rO   r)   r   r   r   r   r     si    ""$K&&(K&&(K**..@
 ""..8Jr   r   c                       \ rS rSr\R
                  " 5       r\R
                  " 5       r\R                  " \	\R                  SS9rSrg)PregnancyCheckListi   pregnancyweek_pregnancychecklistrH   r   Nr   r   r   r   r   r     ;    &&(K&&(K''..7Or   r   c                       \ rS rSr\R
                  " 5       r\R                  " 5       r\R                  " 5       r	\R                  " \\R                  SS9r\R                  " \\R                  SS9rSrg)PregnancyCheckListLanguagei'  -pregnancychecklist_pregnancychecklistlanguagerH   #language_pregnancychecklistlanguager   N)r   r    r!   r"   r   r#   ru   r&   r'   r(   rL   r   rM   pregnancyCheckListIdr0   rO   r)   r   r   r   r   r   '  i    ""$K&&(K&&(K!,,..D
 ""..:Jr   r   c                       \ rS rSr\R
                  " 5       r\R
                  " 5       r\R                  " \	\R                  SS9rSrg)PregnancyNutritioni8   pregnancyweek_pregnancyNutritionrH   r   Nr   r   r   r   r   r   8  r   r   r   c                       \ rS rSr\R
                  " 5       r\R                  " 5       r\R                  " 5       r	\R                  " \\R                  SS9r\R                  " \\R                  SS9rSrg)PregnancyNutritionLanguageiA  -pregnancyNutrition_pregnancyNutritionlanguagerH   #language_pregnancyNutritionlanguager   N)r   r    r!   r"   r   r#   ru   r&   r'   r(   rL   r   rM   pregnancyNutritionIdr0   rO   r)   r   r   r   r   r   A  r   r   r   c                       \ rS rSr\R
                  " 5       r\R                  " 5       r\R                  " 5       r	\R                  " \SSSSS9r\R                  " \\R                  SS9rSrg	)
PregnancyBabySizeiR  Tr\   r]   r^   pregnancyweek_pregnancybabysizerH   r   N)r   r    r!   r"   r   r#   r   r&   r'   r(   rb   r   rc   rL   r   rM   r   r)   r   r   r   r   r   R  sj     G&&(K&&(K(%E ''..6Or   r   c                       \ rS rSr\R
                  " 5       r\R                  " 5       r\R                  " 5       r	\R                  " \\R                  SS9r\R                  " \\R                  SS9rSrg)PregnancyBabySizeLanguageic  +pregnancybabysize_pregnancybabysizelanguagerH   "language_pregnancybabysizelanguager   N)r   r    r!   r"   r   r#   ru   r&   r'   r(   rL   r   rM   pregnancyBabySizeIdr0   rO   r)   r   r   r   r   r   c  si    ""$K&&(K&&(K ++..B
 ""..9Jr   r   c                   z    \ rS rSr\R
                  " 5       r\R                  " 5       r\R                  " 5       r	Sr
g)
MonthlyTipit  r   N)r   r    r!   r"   r   r$   monthNumberr&   r'   r(   r)   r   r   r   r   r   t  s,    %%'K&&(K&&(Kr   r   c                   .   \ rS rSr\R
                  " 5       r\R
                  " 5       r\R
                  " 5       r\R                  " 5       r
\R                  " 5       r\R                  " \\R                  SS9r\R                  " \\R                  SS9rSrg)MonthlyTipLanguageiy  monthlytip_monthlytiplanguagerH   language_monthlytiplanguager   N)r   r    r!   r"   r   r#   titleru   inspirationr&   r'   r(   rL   r   rM   monthlyTipIdr0   rO   r)   r   r   r   r   r   y  s    E""$K""$K&&(K&&(K$$..4L
 ""..2Jr   r   c                       \ rS rSr\R
                  " 5       r\R
                  " 5       r\R                  " \	\R                  SS9rSrg)Tipi  monthlytip_tiprH   r   N)r   r    r!   r"   r   r&   r'   r(   rL   r   rM   r   r)   r   r   r   r   r     s;    &&(K&&(K$$..%Lr   r   c                       \ rS rSr\R
                  " 5       r\R                  " 5       r\R                  " 5       r	\R                  " \\R                  SS9r\R                  " \\R                  SS9rSrg)TipLanguagei  tip_tiplanguagerH   language_tiplanguager   N)r   r    r!   r"   r   r#   ru   r&   r'   r(   rL   r   rM   tipIdr0   rO   r)   r   r   r   r   r     sh    ""$K&&(K&&(K..&E
 ""..+Jr   r   c                       \ rS rSr\R
                  " 5       r\R                  " SS9r\R                  " 5       r
\R                  " 5       r\R                  " \\R                  SS9rSrg)Parenti  Fr   language_parentrH   r   N)r   r    r!   r"   r   r#   phoner=   isTryingToBePregnantr&   r'   r(   rL   r0   rM   rO   r)   r   r   r   r   r     sY    E!..u=&&(K&&(K""FNN9JJr   r   c                      \ rS rSr\R
                  " 5       r\R
                  " 5       r\R
                  " 5       r\R
                  " 5       r	\R                  " 5       r\R                  " 5       r\R                  " \\R                  SSS9rSrg)ParentDetaili  parent_parentdetailTrI   rJ   r   r   N)r   r    r!   r"   r   r#   	firstNamelastNamepasswordemailr&   r'   r(   OneToOneFieldr   rM   parentIdr)   r   r   r   r   r     su      "I!H!HE&&(K&&(K##&..7LHr   r   c                       \ rS rSr\R
                  " 5       r\R                  " 5       r\R                  " 5       r	\R                  " \\R                  SS9r\R                  " \\R                  SSS9rSrg)	ParentTokeni  tokentype_parenttokenrH   parent_parenttokenTr   r   N)r   r    r!   r"   r   r#   tokenr&   r'   r(   rL   r   rM   tokenTypeIdr   r   r   r)   r   r   r   r   r     si    E&&(K&&(K##V^^:QK ##&..7KHr   r   c                      \ rS rSr\R
                  " SS9r\R                  " 5       r\R                  " 5       r
\R                  " SS9r\R                  " SS9r\R                  " SS9r\R                  " 5       r\R                  " 5       r\R"                  " \\R&                  SS9r\R"                  " \\R&                  SS9r\R"                  " \\R&                  SS9rS	rg
)Childi  Fr   r   childtype_childrH   gender_childparent_childr   N)r   r    r!   r"   r   r=   
isSelectedr#   r6   r&   dateOfBirthr   weightlengthheadr'   r(   rL   rQ   rM   rX   r@   rN   r   r   r)   r   r   r   r   r     s    $$U3JD&&(Kq)Fq)FQ'D&&(K&&(K##V^^:KK   &..~H   &..~Hr   r   c                       \ rS rSr\R
                  " 5       r\R
                  " 5       r\R                  " 5       r	\R                  " 5       r
\R                  " \\R                  SS9rSrg)EmergencyContacti  parent_emergencycontactrH   r   N)r   r    r!   r"   r   r#   fullNamer   r&   r'   r(   rL   r   rM   r   r)   r   r   r   r   r     sW    !HE&&(K&&(K  ...Hr   r   c                       \ rS rSr\R
                  " 5       r\R
                  " 5       r\R                  " \	\R                  SSS9rSrg)ParentProfilei  child_parentprofileTr   r   N)r   r    r!   r"   r   r&   r'   r(   r   r   rM   childIdr)   r   r   r   r  r    s>    &&(K&&(K""..*	Gr   r  c                       \ rS rSr\R
                  " 5       r\R                  " SSSS9r\R
                  " 5       r	\R
                  " 5       r
\R                  " \\R                  SS9rSrg)	SymptomGroupi  T )ra   r   r`   parentprofile_symptomrH   r   N)r   r    r!   r"   r   r&   r   r#   noter'   r(   rL   r  rM   parentProfileIdr)   r   r   r   r  r    s\    !D$>D&&(K&&(K''>UOr   r  c                       \ rS rSr\R
                  " 5       r\R
                  " 5       r\R                  " \	\R                  SS9r\R                  " \\R                  SS9rSrg)
SymptomRowi  symptomtype_symptomrowrH   symptomgroup_symptomrowr   N)r   r    r!   r"   r   r&   r'   r(   rL   rZ   rM   ri   r  symptomGroupIdr)   r   r   r   r  r    sX    &&(K&&(K%%v~~<TM &&=VNr   r  c                       \ rS rSr\R
                  " 5       r\R
                  " 5       r\R
                  " 5       r\R                  " \
\R                  SS9rSrg)KickTrackerGroupi  parentprofile_kicktrackergrouprH   r   N)r   r    r!   r"   r   r&   r   r'   r(   rL   r  rM   r	  r)   r   r   r   r  r    sI    !D&&(K&&(K''..5Or   r  c                       \ rS rSr\R
                  " 5       r\R                  " SS9r\R                  " 5       r	\R
                  " 5       r
\R
                  " 5       r\R                  " \\R                  SS9rSrg)KickTrackerRowi  r   r   kicktrackergroup_kicktrackerrowrH   r   N)r   r    r!   r"   r   r&   r   r$   secondskicksr'   r(   rL   r  rM   kickTrackerGroupIdr)   r   r   r   r  r    sh    !D!!!,G!E&&(K&&(K**..6r   r  c                   P   \ rS rSr\R
                  " 5       r\R
                  " 5       r\R
                  " 5       r\R                  " 5       r
\R                  " 5       r\R                  " 5       r\R                  " \\R                   SS9r\R                  " \\R                   SS9rSrg)
WeightGaini'  bmicase_weightgainrH   parentprofile_weightgainr   N)r   r    r!   r"   r   r   heightprePregnancyWeightcurrentWeightr$   currentWeekr&   r'   r(   rL   r   rM   r   r  r	  r)   r   r   r   r  r  '  s     F**,%%'M%%'K&&(K&&(K!!6>>8LI ''>XOr   r  c                   ~   \ rS rSr\R
                  " 5       r\R                  " 5       r\R
                  " 5       r	\R
                  " 5       r
\R
                  " 5       r\R
                  " 5       r\R
                  " 5       r\R
                  " 5       r\R
                  " 5       r\R                   " \\R$                  SS9rSrg)	Ovulationi6  parentprofile_ovulationrH   r   N)r   r    r!   r"   r   r&   lastMenstrualPeriodr$   cycleLength
nextPeriodovulationDayfertileStart
fertileEndexpectedDueDater'   r(   rL   r  rM   r	  r)   r   r   r   r!  r!  6  s     ..0%%'K%%'J'')L'')L%%'J**,O&&(K&&(K''>WOr   r!  c                      \ rS rSr\R
                  " 5       r\R                  " 5       r\R
                  " 5       r	\R
                  " 5       r
\R                  " 5       r\R
                  " 5       r\R                  " 5       r\R                  " 5       r\R
                  " 5       r\R
                  " 5       r\R
                  " 5       r\R$                  " \\R(                  SS9r\R$                  " \\R(                  SS9rSrg)DueDateCalculatoriE  parentprofile_duedatecalculatorrH   #calculationmethod_duedatecalculatorr   N)r   r    r!   r"   r   r&   r#  r$   r$  conceiveDatedateOfTransfer	numOfDaysultrasoundDateweeksdaysr)  r'   r(   rL   r  rM   r	  r   r   r)   r   r   r   r+  r+  E  s     ..0%%'K'')L))+N##%I))+N!E D**,O&&(K&&(K''..6O
 !++..:r   r+  c                       \ rS rSr\R
                  " 5       r\R
                  " 5       r\R                  " 5       r	\R                  " 5       r
\R                  " \\R                  SS9rSrg)Notesib  parentprofile_notesrH   r   N)r   r    r!   r"   r   r#   r   ru   r&   r'   r(   rL   r  rM   r	  r)   r   r   r   r5  r5  b  sW    E""$K&&(K&&(K''..*Or   r5  c                   \   \ rS rSr\R
                  " 5       r\R
                  " 5       r\R
                  " 5       r\R                  " 5       r
\R                  " 5       r\R                  " 5       r\R                  " 5       r\R                  " 5       r\R                   " \\R$                  SS9rSrg)Appointmentin  parentprofile_appointmentrH   r   N)r   r    r!   r"   r   r#   r   
doctorName
specialityr&   r   dateTimer=   isDoner'   r(   rL   r  rM   r	  r)   r   r   r   r8  r8  n  s    E!!#J!!#J!D##%H  "F&&(K&&(K''..0Or   r8  c                      \ rS rSr\R
                  " 5       r\R                  " 5       r\R                  " 5       r
\R                  " SS9r\R                  " 5       r\R                  " 5       r\R                  " \\R"                  SS9rSrg)Todoi  Fr   parentprofile_todorH   r   N)r   r    r!   r"   r   r#   r   	DateFieldr   r&   r<  r=   r=  r'   r(   rL   r  rM   r	  r)   r   r   r   r?  r?    su    ED##%H  /F&&(K&&(K''..)Or   r?  ):	django.dbr   r
   datetimer   r   r   r   r   Modelr   r+   r0   r@   rE   rQ   rT   rZ   re   rl   rq   rx   r{   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r  r  r!  r+  r5  r8  r?  r   r   r   <module>rE     s    	 

() ))6<< )
	v|| 	!V\\ !V\\ ! ! 
)&,, 
)&,, ) )  )&,, )&,, 
fll 
fll 	 	) ) )FLL ) FLL "v|| v|| "  "  " " ") )
 $&,, &,, (V\\ 
6<< 

&,, 
FLL (	v|| 	FLL 6<<  v|| 
V\\ 
   :	FLL 	&,, $6<< r   