
    xhY3                         U d Z ddlmZmZ ddlmZ ddlZdZe	e
d<   dZee	df   e
d<   dZee	ee	   df   e
d	<   dZee	ee	   df   e
d
<   ddZddZy)zxadd web crawler match  tables

Revision ID: 43569c02276e
Revises: 07583bbd7bb9
Create Date: 2025-07-17 11:50:48.710400

    )SequenceUnion)opN43569c02276erevision07583bbd7bb9down_revisionbranch_labels
depends_onc                  4   t        j                  dt        j                  dt        j                         d      t        j                  dt        j
                         d      t        j                  dt        j                         d      t        j                  dt        j                         d      t        j                  d	t        j                         d      t        j                  d
t        j                         d      t        j                  d      t        j                  d      	       t        j                  t        j                  d      ddgd       t        j                  dt        j                  dt        j                         d      t        j                  dt        j                         d      t        j                  dt        j                         d      t        j                  dt        j
                         d      t        j                  dt        j                  ddddd      d      t        j                  d	t        j                         d      t        j                  d
t        j                         d      t        j                  d      t        j                  d      
       t        j                  t        j                  d      ddgd       t        j                  dt        j                  dt        j                         d      t        j                  dt        j                         d      t        j                  dt        j                         d      t        j                  dt        j                  ddddd      d      t        j                  d	t        j                         d      t        j                  d
t        j                         d      t        j                  dgdg      t        j                  d      t        j                  d      t        j                  dd             t        j                  t        j                  d      ddgd       t        j                  dt        j                  dt        j                         d      t        j                  dt        j                         d      t        j                  dt        j                         d      t        j                  d	t        j                         d      t        j                  d
t        j                         d      t        j                  dgdg      t        j                  d      t        j                  ddd      	       t        j                  t        j                  d       ddgd       t        j                  d!t        j                  dt        j                         d      t        j                  d"t        j
                         d      t        j                  dt        j
                         d      t        j                  d#t        j
                         d      t        j                  d$t        j                         d      t        j                  d%t        j                         d      t        j                  d&t        j                         d      t        j                  d't        j
                         d      t        j                  d(t        j
                         d      t        j                  d)t        j
                         d      t        j                  d*t        j
                         d      t        j                  d+t        j
                         d      t        j                  d,t        j                         d      t        j                  d-t        j                         d      t        j                  d	t        j                         d      t        j                  d
t        j                         d      t        j                  d,gd.g      t        j                  d      t        j                  d"             t        j                  t        j                  d/      d!dgd       t        j                  d0t        j                  dt        j                         d      t        j                  dt        j                         d      t        j                  d1t        j
                         d      t        j                  d2t        j
                         d      t        j                  d3t        j
                         d      t        j                  d4t        j
                         d      t        j                  d5t        j                         d      t        j                  dt        j                         d      t        j                  d6t        j
                         d      t        j                  d7t        j
                         d      t        j                  d8t        j
                         d      t        j                  d9t        j
                         d      t        j                  d:t        j
                         d      t        j                  d;t        j
                  d<=      d      t        j                  dt        j                  d>d?d@      d      t        j                  dAt        j                  dBdCdD      d      t        j                  d	t        j                         d      t        j                  d
t        j                         d      t        j                  dgdg      t        j                  d             t        j                  t        j                  dE      d0dgd       t        j                  dFt        j                  dt        j                         d      t        j                  dGt        j                         d      t        j                  dHt        j                         d      t        j                  dIt        j                         d      t        j                  dJt        j
                         d      t        j                  dKt        j
                         d      t        j                  dLt        j
                         d      t        j                  dMt        j
                         d      t        j                  dNt        j                         d      t        j                  dOt        j
                         d      t        j                  dPt        j                         d      t        j                  dt        j
                         d      t        j                  d	t        j                         d      t        j                  d
t        j                         d      t        j                  dGgdQg      t        j                  d      t        j                  dG             t        j                  t        j                  dR      dFdgd       t        j                  dSt        j                  dt        j                         d      t        j                  dt        j                         d      t        j                  dGt        j                         d      t        j                  d	t        j                         d      t        j                  d
t        j                         d      t        j                  dGgdQg      t        j                  d      t        j                  dGddT      	       t        j                  t        j                  dU      dSdgd       t        j                  dVt        j                  dt        j                         d      t        j                  d,t        j                         d      t        j                  dWt        j                         d      t        j                  dXt        j                         d      t        j                  dt        j
                         d      t        j                  d	t        j                         d      t        j                  d
t        j                         d      t        j                  d,gd.g      t        j                  dXgdYg      t        j                  dWgdZg      t        j                  d      t        j                  d      t        j                  dd[             t        j                  t        j                  d\      dVdgd       t        j                  d]t        j                  dt        j                         d      t        j                  d^t        j
                         d      t        j                  d_t        j
                         d      t        j                  d`t        j
                  da=      d      t        j                  dbt        j
                  da=      d      t        j                  dct        j
                  da=      d      t        j                  ddt        j                         d      t        j                  dGt        j                         d      t        j                  det        j                         d      t        j                  dt        j
                         d      t        j                  d;t        j
                         d      t        j                  dft        j
                  da=      d      t        j                  dt        j                  ddddd      d      t        j                  d	t        j                         d      t        j                  d
t        j                         d      t        j                  degdgg      t        j                  dGgdQg      t        j                  d      t        j                  d             t        j                  t        j                  dh      d]dgd       t        j                  dit        j                  dt        j                         d      t        j                  dt        j
                         d      t        j                  djt        j                         d      t        j                  dkt        j
                         d      t        j                  dlt        j                         d      t        j                  dmt        j
                         d      t        j                  dnt        j                         d      t        j                  dot        j
                         d      t        j                  dpt        j                         d      t        j                  dqt        j                         d      t        j                  drt        j                         d      t        j                  dst        j                         d      t        j                  dtt        j                         d      t        j                  dut        j                         d      t        j                  dvt        j                         d      t        j                  d	t        j                         d      t        j                  d
t        j                         d      t        j                  drgdwg      t        j                  dsgdxg      t        j                  dtgdyg      t        j                  d      t        j                  dsdtdrdmdz             t        j                  t        j                  d{      didgd       t        j                  t        j                  d|      didgd       t        j                  d}t        j                  dt        j                         d      t        j                  dtt        j                         d      t        j                  dt        j
                         d      t        j                  dt        j                  ddddd      d      t        j                  d	t        j                         d      t        j                  d
t        j                         d      t        j                  dtgdyg      t        j                  d      t        j                  d      t        j                  dd~             t        j                  t        j                  d      d}dgd       y)zUpgrade schema.bottle_sizesidF)nullablenamealiasT	exclusiondate_createdlast_updatedix_bottle_sizes_id)unique	producers	name_showmongo_idsourceNARROW
VALIDATIONWINE_ADDITIONKW_GENERATOR)r   ix_producers_idproducer_keywordsproducer_idkeywordzproducers.iduq_producer_keyword_producerix_producer_keywords_idproducer_noisesnoise uq_producer_noise_producer_noiseix_producer_noises_id	retailerscodeemailweb_urladdressaddress_extendedpostal_codecitystatephoneship_to
country_idactivezcountries.idix_retailers_idwine_dbcolortype	sweetnessvarietynotewine_countrywine_regionwine_locationwine_locale	wine_site	wine_n_idd   )lengthIMPORTMANUAL
sourceenumstatusACTIVEDELETEDwinedbstatusix_wine_db_idwine_keywords
wine_db_idpatternproducer_keywordbase_keywordappellation_keywordcolor_keywordcommon_modifiers_keywordmodifiers_keywordcustom_not_keywordglobal_not_keywordz
wine_db.idix_wine_keywords_idwine_noisesuq_wine_noise_winedb_noiseix_wine_noises_idappellations	region_idlocation_idzlocations.idz
regions.iduq_appellation_mongo_idix_appellations_idwinesvintagematurity
rating_low
   rating_highrating_q	image_urlappellation_idwine_n_ratingzappellations.idix_wines_idretailer_winesquantity
tax_statusdescriptionskuurlcurrencyprice	usd_pricebottle_size_idretailer_idwine_id	availablelast_availablezbottle_sizes.idzretailers.idzwines.iduix_retailer_wine_size_skuix_retailer_wines_idix_retailer_wines_namewine_duplicationsuq_mongo_idix_wine_duplications_idN)r   create_tablesaColumnIntegerStringTextDateTimePrimaryKeyConstraintUniqueConstraintcreate_indexfEnumForeignKeyConstraintBooleanDECIMAL     w/var/www/html/wine-match-dev/backend/winematch-backend/migrations/versions/43569c02276e_add_web_crawler_match_tables.pyupgrader      s    OONIIdBJJL51IIfbiikE2IIgrwwy40IIk2779t4IInbkkmd;IInbkkmd;D!	 OOBDD-.uUOOKIIdBJJL51IIfbggi$/IIk2779t4IIj"))+5IIh,^fgrvwIInbkkmd;IInbkkmd;D!
#
 OOBDD*+[4&OOO'IIdBJJL51IImRZZ\E:IIiT2IIh,^fgrvwIInbkkmd;IInbkkmd;]On-=@D!&,JK OOBDD235H4&Y^_OO%IIdBJJL51IIgrwwy51IImRZZ\E:IInbkkmd;IInbkkmd;]On-=@D!w5WX	 OOBDD013DtfUZ[OOKIIdBJJL51IIfbiikE2IIfbiikD1IIgryy{T2IIiT2IIiT2II "'')d;IImRYY[48IIfbiikD1IIgryy{T2IIgryy{T2IIit4IIlBJJL48IIh

t4IInbkkmd;IInbkkmd;\N^,<?D!'* OOBDD*+[4&OOOIIIdBJJL51IIfbggi$/IIgryy{T2IIfbiikD1IIk299;6IIit4IIfbggi$/IImRZZ\D9IInbiikD9IImRYY[48IIoryy{T:IImRYY[48IIk299;6IIk299C04@IIh(FQUVIIh).ITXYIInbkkmd;IInbkkmd;]On-=@D!), OOBDD)9tfUKOOOIIdBJJL51IIlBJJL59IIiU3II "'')d;IInbiikD9II#RYY[4@IIoryy{T:II("))+EII!2779t<II"BIIK$?II"BGGI=IIh		d3IInbkkmd;IInbkkmd;\N\N=D!%#& OOBDD./4&QVWOOMIIdBJJL51IIgrwwy51IIlBJJL59IInbkkmd;IInbkkmd;\N\N=D!g4PQ	 OOBDD,-}tfUSOONIIdBJJL51IIlBJJL48IIk2::<$7IImRZZ\D9IIj"))+5IInbkkmd;IInbkkmd;\N^,<?]On-=@[ML><D!
#
)BC OOBDD-.uUOOGIIdBJJL51IIit4IIj"))+5IIlBIIR04@IImRYYb1DAIIj"))2.>IIk2779t4IIlBJJL59II

t<IIj"))+5IIk299;6IIoryy3dCIIh,^fgrvwIInbkkmd;IInbkkmd;-.1B0CF\N\N=D!
#'* OOBDD'4&GOO$IIdBJJL51IIfbiikD1IIj"**,6IIlBIIK$7IImRWWY6IIeRYY[40IIeRWWY.IIj"))+5IIgrzz|d3IIk2::<$7II

t<IImRZZ\D9IIi5IIk2::<$7II=IInbkkmd;IInbkkmd;-.1B0CF]On-=@YK*8D!y2BEPlm-0 OOBDD/02BTFSXYOOBDD124DvhW\]OO'IIdBJJL51IIi6IIj"))+6IIh,^fgrvwIInbkkmd;IInbkkmd;YK*8D!
#
7 OOBDD235H4&Y^_r   c                  @   t        j                  t        j                  d      d       t        j                  d       t        j                  t        j                  d      d       t        j                  t        j                  d      d       t        j                  d       t        j                  t        j                  d      d       t        j                  d       t        j                  t        j                  d	      d
       t        j                  d
       t        j                  t        j                  d      d       t        j                  d       t        j                  t        j                  d      d       t        j                  d       t        j                  t        j                  d      d       t        j                  d       t        j                  t        j                  d      d       t        j                  d       t        j                  t        j                  d      d       t        j                  d       t        j                  t        j                  d      d       t        j                  d       t        j                  t        j                  d      d       t        j                  d       t        j                  t        j                  d      d       t        j                  d       y)zDowngrade schema.r   r}   )
table_namer|   rl   r{   rk   ra   r`   r\   r[   rY   rX   rM   rL   r7   r6   r)   r(   r%   r$   r    r   r   r   r   N)r   
drop_indexr   
drop_tabler   r   r   	downgrader      s    MM"$$01>QRMM%&MM"$$/0=MNMM"$$-.;KLMM"#MM"$$}%':MM'MM"$$+,HMM.!MM"$$*+FMM- MM"$$,-/JMM/"MM"$$'I>MM)MM"$$()kBMM+MM"$$./<MNMM#$MM"$$01>QRMM%&MM"$$()kBMM+MM"$$+,HMM.!r   )returnN)__doc__typingr   r   alembicr   
sqlalchemyr   r   str__annotations__r	   r
   r   r   r   r   r   r   <module>r      su    #   # "0uS$Y 015uS(3--. 5.2
E#x}d*+ 2J`\"r   