
    <i                         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	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dS )z`Initial migration

Revision ID: b16cc0fafacf
Revises: 
Create Date: 2025-12-13 02:05:48.182494

    )SequenceUnion)opNb16cc0fafacfrevisiondown_revisionbranch_labels
depends_onreturnc                  f   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        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        t          j	        d          ddg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        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          d          t          j        dt          j
                    d          t          j        dgd g          t          j        dgd!g          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          d          t          j        dgd g          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          d          t          j        dgd g          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          t          j        d          d          t          j        d)gd,g          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        d0t          j                    d          t          j        d1t          j        d          t          j        d          d          t          j        d/gd2g          t          j        d                     t          j        t          j	        d3          d.dgd           d4S )5zUpgrade schema.adminsidF)nullableemailhashed_password	full_nameT	is_activeix_admins_email)uniqueix_admins_id	companiescompany_namephone_numbertokens_balanceix_companies_emailix_companies_idsubscription_packsnametokenspriceix_subscription_packs_idcompany_subscriptions
company_idpack_id
created_at)timezoneznow())server_defaultr   
price_paidzcompanies.idzsubscription_packs.idix_company_subscriptions_idsearchesinitial_promptix_searches_id
shortlistsix_shortlists_idsearch_messages	search_idrolecontentzsearches.idix_search_messages_idshortlist_candidatesshortlist_idcandidate_dataadded_atzshortlists.idix_shortlist_candidates_idN)r   create_tablesaColumnIntegerStringBooleanPrimaryKeyConstraintcreate_indexfFloatUniqueConstraintDateTimetextForeignKeyConstraintTextJSON     J/home/user/therecruiter/alembic/versions/b16cc0fafacf_initial_migration.pyupgraderL      s    OHIdBJLL5111Igry{{U333Iu===Ik29;;666Ik2:<<$777D!!   OBD*++XyNNNNOBD(((TF5IIIIOKIdBJLL5111InbikkE:::Igry{{U333InbikkD999Iu===Ik2:<<$777I
t<<<D!!	 	 	 OBD-..gYtTTTTOBD*++[4&OOOOO(IdBJLL5111IfbikkE222Ih
u555IgrxzzE222D!!   OBD3446JTF[`aaaaO+IdBJLL5111IlBJLL4888Ii555IlBK666rwwGWGWbfgggIlBHJJ666\N^,<??YK*A)BEED!!	 	 	 OBD6779PSWRXafggggOJIdBJLL5111IlBJLL4888I		E:::IlBK666rwwGWGWbfggg\N^,<??D!!   OBD)**JuMMMMOLIdBJLL5111IlBJLL4888IfbikkE222IlBK666rwwGWGWbfggg\N^,<??D!!   OBD+,,lTF5QQQQO%IdBJLL5111Ik2:<<$777IfbikkE222IiU333IlBK666rwwGWGWbfggg[MM?==D!!   OBD0113DtfUZ[[[[O*IdBJLL5111InbjllT:::I		E:::Ij"+t444RWWEUEU`deee^,.?BBD!!   OBD5668NQUPV_deeeeeerJ   c                  f   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        t          j        d          d           t          j        d           t          j        t          j        d          d           t          j        t          j        d          d           t          j        d           dS )zDowngrade schema.r8   r4   )
table_namer3   r/   r.   r-   r,   r*   r)   r"   r!   r   r   r   r   r   r   r   N)r   
drop_indexrA   
drop_tablerI   rJ   rK   	downgraderQ   j   s    M"$344AWXXXXM()))M"$.//<MNNNNM#$$$M"$)**|DDDDM,M"$'((Z@@@@M*M"$455BYZZZZM)***M"$122?STTTTM&'''M"$())kBBBBM"$+,,EEEEM+M"$~&&8<<<<M"$())h????M(rJ   )r   N)__doc__typingr   r   alembicr   
sqlalchemyr:   r   str__annotations__r   r	   r
   rL   rQ   rI   rJ   rK   <module>rX      s      # " " " " " " "           #   15uS(3--. 5 5 515uS(3--. 5 5 5.2
E#x}d*+ 2 2 2Qf Qf Qf Qfj     rJ   