U
    ]Úd1  ã                   @   s<   d Z ddlmZ ddlZdZdZdZdZdd„ Z	dd	„ Z
dS )
zfcmf_notepad

Revision ID: 99affa79b306
Revises: 16f428559bf8
Create Date: 2023-04-30 12:46:06.376783

é    )ÚopNÚ99affa79b306Ú16f428559bf8c                -   C   s  t  dtjdtjddddtjdtjdd	ddtjd
tjdd	ddtjdtjdd	ddtjdtjdd	ddtjdt ¡ ddtjdt ¡ ddtjdtjddddtjdtjddddtjdt ¡ ddtjdt ¡ ddtjdt ¡ ddtjdt ¡ ddtjdt ¡ ddtjdt ¡ ddtjdt ¡ ddtjdt ¡ ddtjdt ¡ ddtjdt 	¡ ddtjdt ¡ ddtjdt ¡ ddtjdt ¡ ddtjdtjddddtjd tjddddtjd!tjddddtjd"t ¡ ddtjd#tjddddtjd$tjddddtjd%tjddddtjd&tjddddtjd'tjddddtjd(tjddddtjd)tjddddtjd*tjddddtjd+tjddddtjd,tjddddt 
d(gd-g¡t 
d%gd.g¡t 
d+gd/g¡t d¡¡) t jt  d0¡dd#gdd1 t jt  d2¡dd
gdd1 t jt  d3¡ddgdd1 t jt  d4¡dd(gdd1 t jt  d5¡ddgdd1 t jt  d6¡dd'gdd1 t jt  d7¡ddgdd1 t jt  d8¡dd&gdd1 t jt  d9¡dd$gdd1 t jt  d:¡ddgdd1 t jt  d;¡ddgdd1 t jt  d<¡ddgdd1 t jt  d=¡ddgdd1 t jt  d>¡ddgdd1 t jt  d?¡dd%gdd1 t jt  d@¡dd+gdd1 t jt  dA¡dd,gdd1 t jt  dB¡dd*gdd1 t jt  dC¡dd)gdd1 d S )DNÚcmf_notepadÚidé@   )ÚlengthF)ÚnullableÚcmf_locked_atT)ÚtimezoneÚcmf_created_atÚcmf_modified_atÚcmf_viewed_atÚcmf_deletedÚcmf_versionÚnameé   ÚcodeÚsystemÚtextÚimport_originalÚimport_raw_jsonÚext_idÚis_favoriteÚhas_tree_nodesÚtree_node_is_branchÚtree_hiddenÚordernoÚperm_publicÚperm_has_aclÚperm_inheritÚperm_parent_owner_idÚperm_inherit_acl_idÚperm_effective_acl_idÚperm_encryptÚcmf_author_idÚcmf_owner_idÚ	parent_idÚcmf_modified_by_idÚcmf_locked_by_idÚcmf_import_idÚtree_parent_idÚroot_parent_idÚperm_acl_idÚperm_parent_idzcmf_import.idzcmf_person.idzcmf_access_list.idÚix_cmf_notepad_cmf_author_id)ÚuniqueÚix_cmf_notepad_cmf_created_atÚix_cmf_notepad_cmf_deletedÚix_cmf_notepad_cmf_import_idÚix_cmf_notepad_cmf_locked_atÚix_cmf_notepad_cmf_locked_by_idÚix_cmf_notepad_cmf_modified_atÚ!ix_cmf_notepad_cmf_modified_by_idÚix_cmf_notepad_cmf_owner_idÚix_cmf_notepad_cmf_versionÚix_cmf_notepad_cmf_viewed_atÚix_cmf_notepad_codeÚix_cmf_notepad_nameÚix_cmf_notepad_ordernoÚix_cmf_notepad_parent_idÚix_cmf_notepad_perm_acl_idÚix_cmf_notepad_perm_parent_idÚix_cmf_notepad_root_parent_idÚix_cmf_notepad_tree_parent_id)r   Úcreate_tableÚsaÚColumnÚStringÚ	TIMESTAMPÚBooleanÚBIGINTÚTEXTÚIntegerÚForeignKeyConstraintÚPrimaryKeyConstraintÚcreate_indexÚf© rP   rP   ú9/opt/eva-app/alembic/versions/99affa79b306_cmf_notepad.pyÚupgrade   sz    Ø*rR   c                   C   sŠ  t jt  d¡dd t jt  d¡dd t jt  d¡dd t jt  d¡dd t jt  d¡dd t jt  d¡dd t jt  d	¡dd t jt  d
¡dd t jt  d¡dd t jt  d¡dd t jt  d¡dd t jt  d¡dd t jt  d¡dd t jt  d¡dd t jt  d¡dd t jt  d¡dd t jt  d¡dd t jt  d¡dd t jt  d¡dd t  d¡ d S )NrB   r   )Ú
table_namerA   r@   r?   r>   r=   r<   r;   r:   r9   r8   r7   r6   r5   r4   r3   r2   r1   r/   )r   Ú
drop_indexrO   Ú
drop_tablerP   rP   rP   rQ   Ú	downgradeU   s(    rV   )Ú__doc__Úalembicr   Ú
sqlalchemyrD   ÚrevisionÚdown_revisionÚbranch_labelsÚ
depends_onrR   rV   rP   rP   rP   rQ   Ú<module>   s   B