o
    f                     @   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 )
zoadding invoice table

Revision ID: f64a7ea2f2a6
Revises: 9153b4e092b8
Create Date: 2024-08-01 13:51:05.775520

    )opNf64a7ea2f2a69153b4e092b8c                  C   sL   t jdd d} | jddd | d W d    d S 1 sw   Y  d S )Nuserschemafk_user_company_id_company
foreignkey)type_
company_id)r   batch_alter_tabledrop_constraintdrop_columnbatch_op r   L/home/ubuntu/webapp/migrations/versions/f64a7ea2f2a6_adding_invoice_table.pyupgrade   s   "r   c                  C   sb   t jdd d } | tjdt dd | dddgdg W d    d S 1 s*w   Y  d S )	Nr   r   r   T)nullabler   companyid)r   r   
add_columnsaColumnINTEGERcreate_foreign_keyr   r   r   r   	downgrade   s   "r   )__doc__alembicr   
sqlalchemyr   revisiondown_revisionbranch_labels
depends_onr   r   r   r   r   r   <module>   s    	