
    Dh                         U d Z ddlmZmZ ddlmZ ddlZddlm	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)ziupdate persona

Revision ID: cc623457d683
Revises: b3d76536d9d8
Create Date: 2025-09-01 15:09:56.466223

    )SequenceUnion)opN)
postgresqlcc623457d683revisionb3d76536d9d8down_revisionbranch_labels
depends_onc                  b   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	
      d      t        j                  dt        j
                  d	
      d      t        j                  dt        j
                  d	
      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       y )Nstore_personasidF)nullablestore_id	branch_idTindustryd   )lengthaudience_typebrand_voicecontent_styleanalysis_summaryconfidence_scorelast_analyzed
created_at
updated_at	is_activepersona_profilepersona_performancepersona_audiencepersona_contextpersonas)
r   create_tablesaColumn
BigIntegerStringTextDateTimePrimaryKeyConstraint
drop_table     K/var/www/html/hubwallet-dev/alembic/versions/cc623457d683_update_persona.pyupgrader0      s   OO$IIdBMMOe4IIj"--/E:IIk2==?T:IIj"))3/$?IIoryy4tDIImRYYc2TBIIoryy4tDII "'')d;II "--/DAIIor{{}t<IIlBKKME:IIlBKKME:IIk2==?U;D!  MM#$MM'(MM$%MM#$MM*r.   c                     t        j                  dt        j                  dt        j                         t        j
                  d      dd      t        j                  dt        j                         dd      t        j                  d	t        j                         dd      t        j                  d
t        j                         dd      t        j                  dt        j                         dd      t        j                  dt        j                         dd      t        j                  dt        j                         dd      t        j                  dd      d
       t        j                  dt        j                  d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                         dd      t        j                  dt        j                         dd      t        j                  dt        j                         dd      t        j                  dt        j                  t        j                               dd      t        j                  dt        j                         dd      t        j                  dgdgd      t        j                  dd             t        j                  d t        j                  d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gdgd#      t        j                  dd$             t        j                  d%t        j                  d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                  d0t        j                  t        j                               dd      t        j                  dgdgd1      t        j                  dd2             t        j                  d3t        j                  dt        j                         dd      t        j                  d4t        j                         dd      t        j                  d5t        j                  t        j                               dd      t        j                  d6t        j                  t        j                               dd      t        j                  d7t        j                  t        j                               dd      t        j                  d8t        j                  t        j                               dd      t        j                  d9t        j                  t        j                               dd      t        j                  dgdgd:      t        j                  dd;      
       t        j                  d<       y )=Nr#   r   z$nextval('personas_id_seq'::regclass)TF)server_defaultautoincrementr   r   )r3   r   r   namestatusr   r   personas_pkey)r4   )postgresql_ignore_search_pathr"   
persona_idcontent_categories)astext_typecontent_themeshashtag_strategyposting_cadenceseasonal_eventsnarrative_brandnarrative_audiencenarrative_voice
embeddingszpersonas.idpersona_context_persona_id_fkeypersona_context_pkeyr!   locales	languages persona_audience_persona_id_fkeypersona_audience_pkeyr    engagement_datasentiment_metricsgrowth_metricsbest_performing_posts	interestssegmentsbest_posting_windowsbest_formatsbest_hashtags	best_ctas	baselines#persona_performance_persona_id_fkeypersona_performance_pkeyr   brand_summaryvoice_rulesgoalscompetitorsbrand_assetsconstraintspersona_profile_persona_id_fkeypersona_profile_pkeyr   )r   r$   r%   r&   BIGINTtextVARCHARr   	TIMESTAMPr+   JSONr)   TEXTForeignKeyConstraintr,   r-   r.   r/   	downgradere   /   s
   OOJIIdBIIK8^0_os  D  EIIj"))+UTJIIk299;edKIIfbjjl%%HIIh

EEJIIlJ002%RWXIIlJ002%RWXD7"'
 OO%IIlBIIKuuMII"JOO	$JZ_jnoII
BGGI FV[fjkII *//bggi"HX]hlmIIRWWY!GW\gklIIRWWY!GW\gklII%$OII"BGGIUTRII%$OIIlJOO	BRWbfgIIlJ002%RWX\N]OBcdL/EF OO&IIlBIIKuuMIIiRWWY?u_cdIIk:??rwwyAQVaef\N]OBdeL/FG OO)IIlBIIKuuMIIRWWY!GW\gklII!:??rwwy#IY^imnII
BGGI FV[fjkII%z2779'M]bmqrIIk:??rwwyAQVaefIIj*//bggi@PU`deII$joo"'')&L\alpqIInjoo"'')DTYdhiIIoz2779EUZeijIIk:??rwwyAQVaefIIk:??rwwyAQVaef\N]OBghL/IJ  OO%IIlBIIKuuMIIorwwyMIImZ__CSXcghIIgz2779=U]abIImZ__CSXcghIInjoo"'')DTYdhiIImZ__CSXcgh\N]OBcdL/EF
 MM"#r.   )returnN)__doc__typingr   r   alembicr   
sqlalchemyr%   sqlalchemy.dialectsr   r   str__annotations__r
   r   r   r0   re   r-   r.   r/   <module>rn      su    #   * # "0uS$Y 015uS(3--. 5.2
E#x}d*+ 24>$r.   