
    	Ih#                        d dl mZ d dlmZ d dl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y)    )models)Account)settings)datetimec                   \   e Zd Z ej                  dej
                        Z ej                  d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      Z ej$                  i       Z ej                  dd      Z ej*                  dd      Z ej*                  dd      Z ej*                  d      Z G d d      Zy)clientTrackeraccount.Account	on_delete<   T
max_lengthnullr   2      F   d   r   default   Fauto_now_addauto_nowc                       e Zd ZdZy)clientTracker.Metaaccount_trackerN__name__
__module____qualname__db_table      /var/www/html/api/serp/models.pyMetar          $r$   r&   N)r   r    r!   r   
ForeignKeyCASCADEfb_user	CharField	client_ip	TextFieldclient_agent	time_zonecountry_codecountryregioncityBooleanFieldmobile	JSONField
other_infostatusDateTimeFieldcreated_datemodified_dateuser_automation_timer&   r#   r$   r%   r   r      s"   f 1V^^LG   BT:I#6##.L   BT:I#6##qt<Lf"48GV48F6s6D V  +F!!!"-JV6F'6''TEJL(F((edKM/6//T:% %r$   r   c                   ^   e Zd Z ej                  dej
                  d      Z ej                  dej
                        Z ej                         Z	 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	      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g       Z  ej>                  dg       Z! ej>                  dg       Z" ej>                  dg       Z# ej                  dd      Z$ ej                  dd      Z% ej*                  d
      Z& ej*                  d
      Z' ejP                  d      Z) ejP                  dd      Z* ejP                         Z+ ejP                         Z, ej*                  d
      Z- ej*                  d
      Z. ej*                  d
      Z/ ej*                  d
      Z0 ej                  d	      Z1 ej                  d	      Z2 ej                  d	      Z3 ej                  dd      Z4 ej                  d	      Z5 ej*                  ddd
      Z6 ej                  dd      Z7 ej                  d      Z8 ej                  d      Z9 ej                  d      Z: G d d      Z;y) KeywordGroups   )r   r   r	   r
   Tr   
   r   r   r   r            r   i  r   NAr   r   blankr   INITr   Fr   -)r   rI   r   donec                       e Zd ZdZy)Keyword.MetakeywordNr   r#   r$   r%   r&   rO   _   s    r$   r&   N)<r   r    r!   r   r(   r)   fk_groupfk_userr-   rP   site_urltargetr+   platformr4   exactdomainlocationisocoder2   languagelanguage_codeIntegerFieldlocation_coderanknowsearch_volumekeyword_difficultysearch_intentcpctraffic
ranked_url
rank_trendr6   rankrank_historysearch_volume_datakeyword_suggestionstrack_statusmetric_statusrank_sincestarttop_rankr9   r:   updated_dater;   lastranked_datedayvalweekvalmonthvalhalfmonthvaldaymarkweekmark	monthmarkhalfmonthmarkstatus_from_startauto_refresh_countauto_call_statuscrawlurlpage_uuid_url	page_uuidr&   r#   r$   r%   r>   r>      s    v  V^^QOHf 1V^^LG f Gv!HV4(Fv2.H%&%%a0K  vT*Hf!,GV,Fv2.H$F$$=M'F''5M "f!!!,G$F$$DAM)))RF$F$$DAM
&

b$
7Cf"d;G!!!R>J!!!Q=J 6$3D#6##$;L)))bA*&**rB#6##r6BL$F$$FCM)f))!4O"v""1-H (6''T:L'6''UTJL(F((*M*f**,O !V  +F!f!!!,G"v""1-H&6&&q1Lf!,Gv1-H   A.I$F$$3?M(((A6 -,,$dAN'v''1fE  v,H$F$$S1M   -I r$   r>   c                   b   e Zd Z ej                  dej
                        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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d Z G d d      Zy)r?   r	   r
   r   rB   i  Tr   r   r   rJ   rG   r   Fr   r   r   rF   c                     | j                   S N)
group_nameselfs    r%   __str__zGroups.__str__u   s    r$   c                       e Zd ZdZy)Groups.MetagroupNr   r#   r$   r%   r&   r   x   s    r$   r&   N)r   r    r!   r   r(   r)   rR   r+   r   domain_namer9   project_automation_timegroup_call_statusri   rj   group_call_startgroup_call_endr[   uptrend_cntdowntrend_cntr_   r:   rm   r   r&   r#   r$   r%   r?   r?   c   s*   f 1V^^LG!!!S1J"&""c=K2f22=(((AvF#6##r6BL$F$$FCM+v++N)V))utLN%&%%a0K'F''2M)))RF'6''TEJL'6''UTJL r$   r?   c                      e Zd Z ej                  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d
 Z G d d      Zy)Region   rB      r    rG   TFr   c                     | j                   S r   )region_namer   s    r%   r   zRegion.__str__   s    r$   c                       e Zd ZdZy)Region.Metar2   Nr   r#   r$   r%   r&   r      s    r$   r&   N)r   r    r!   r   r+   r   region_coderegion_countrysearchvolume_country_idr9   r:   rm   r   r&   r#   r$   r%   r   r   |   s    "&""b1K"&""a0K%V%%5N.f..#rJ'6''TEJL'6''UTJL  r$   r   c                       e Zd Z ej                  d      Z ej                  d      Z ej                  dd      Z ej                  dd      Z	d Z
 G d d	      Zy
)Languager   rB   rA   TFr   c                     | j                   S r   )language_namer   s    r%   r   zLanguage.__str__   s    !!!r$   c                       e Zd ZdZy)Language.MetarY   Nr   r#   r$   r%   r&   r      s    r$   r&   N)r   r    r!   r   r+   r   rZ   r9   r:   rm   r   r&   r#   r$   r%   r   r      s]    $F$$4M$F$$3M'6''TEJL'6''UTJL" r$   r   c                      e Zd Z ej                  dej
                        Z ej                  d      Z ej                  d      Z	 ej                  d      Z ej                  dd	
      Z ej                  d	d
      Z G d d      Zy)Accountusager	   r
   r   r   r@   r   rB   TFr   c                       e Zd ZdZy)Accountusage.MetaaccountusageNr   r#   r$   r%   r&   r          !r$   r&   N)r   r    r!   r   r(   r)   r*   r[   plan_keyword_limitplan_project_limitr+   r8   r9   r:   r;   r&   r#   r$   r%   r   r      s    f 1V^^LG,,,Q7,,,Q7V-F'6''TEJL(F((edKM" "r$   r   c                      e Zd Z ej                  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g       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y)Settingsr@   r   r   TFr   rK   rH   i  r   c                       e Zd ZdZy)Settings.MetamainsettingsNr   r#   r$   r%   r&   r      r   r$   r&   N)r   r    r!   r   r4   	core_modecore_manual_mailr[   results_per_pager9   r:   r;   	DateFieldcore_refresh_timer6   daily_automation_countproxy_maximum_load_limitproxy_success_countproxy_exceeds_countproxy_invalid_countproxy_reset_counterr&   r#   r$   r%   r   r      s    ###A.I*v**15*v**37'6''TEJL(F((edKM(((d;-V--D"E2v224@-&--a8-&--a8-&--a8-&--a8" "r$   r   c                   V   e Zd Z ej                  dej
                        Z ej                  dej
                        Z ej                  dej
                        Z ej                         Z
 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g       Z ej"                  dg       Z ej(                  dd      Z ej(                  dd      Z G d d      Zy)keywordMetricsr	   r
   r?   r>   rC   rB   rE   Tr   rA   newrG   rH   Fr   c                       e Zd ZdZy)keywordMetrics.Metakeyword_metricsNr   r#   r$   r%   r&   r      r'   r$   r&   N)r   r    r!   r   r(   r)   rR   rQ   
fk_keywordr-   rP   keyword_slugr+   r   r   r   r8   r6   month_wise_volumepast_monthsr9   r:   r;   r&   r#   r$   r%   r   r      s   f 1V^^LG v  V^^DH"""9GJf G#6##%L"&""b1K"&""ad;K.f..!$GVU;F(((tR@"&""r:K'6''TEJL(F((edKM% %r$   r   c                   Z   e Zd Z ej                  dej
                        Z ej                  dej
                        Z ej                         Z	 ej                  dg       Z ej                  dd      Z ej                  dd	
      Z ej                  d	d
      Z G d d      Zy)Competitorsr	   r
   r?   TrH   r   rJ   rG   Fr   c                       e Zd ZdZy)Competitors.MetacompetitorsNr   r#   r$   r%   r&   r      s     r$   r&   N)r   r    r!   r   r(   r)   rR   rQ   r-   urlr6   keywordsr+   ri   r9   r:   r;   r&   r#   r$   r%   r   r      s    f 1V^^LG v  V^^DH
&


CvdB7H#6##r6BL'6''TEJL(F((edKM! !r$   r   N)djongor   account.modelsr   django.confr   r   Modelr   r>   r?   r   r   r   r   r   r   r#   r$   r%   <module>r      s     "   %FLL %(Efll EPV\\ 2V\\ "v|| 	"6<< 	""v|| "(%V\\ %,
!&,, 
!r$   