U
    ¡$°i(  ã                   @   sž   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
œdd„Zdd
œdd„ZdS )z]initial_schema

Revision ID: 4fa9726b4e7c
Revises: 
Create Date: 2026-03-09 21:23:27.997296

é    )ÚSequenceÚUnion)ÚopNÚ4fa9726b4e7cÚrevisionÚdown_revisionÚbranch_labelsÚ
depends_on)Úreturnc                   C   sv  t  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 d¡¡ t  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 d¡t d¡¡ t  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gdgddt d¡¡ t  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gd%gd&dt d¡¡ t  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gd%gd&dt d¡¡
 t  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d0t 	¡ ddtjd1t 	¡ ddtjdtjddddtjdgd%gd&dtjd-gd2gd&dt d¡¡ d S )3NÚ	companiesÚidF)ÚnullableÚnameÚ	bank_nameTÚaccount_numberÚcityÚdistrictÚprovinceÚemailÚrelationship_typeÚ
created_at)ÚtimezoneÚ
updated_atÚusersÚusernameÚhashed_passwordÚ	employeesÚaccount_nameÚ
company_idÚ	hire_dateÚbase_salaryÚactivezcompanies.idzSET NULL)ÚondeleteÚloansÚemployee_idÚ	loan_dateÚtotal_amountÚmonthly_deductionÚdescriptionÚremaining_balanceÚstatuszemployees.idÚCASCADEÚsalary_historyÚ
old_salaryÚ
new_salaryÚeffective_dateÚnotesÚloan_transactionsÚloan_idÚtransaction_dateÚdebitÚcreditÚbalancezloans.id)r   Úcreate_tableÚsaÚColumnÚStringÚDateTimeÚPrimaryKeyConstraintÚUniqueConstraintÚDateÚIntegerÚBooleanÚForeignKeyConstraintÚText© rC   rC   úS/var/www/html/me.goteku.com/backend/alembic/versions/4fa9726b4e7c_initial_schema.pyÚupgrade   s”    ôúôõ÷ôrE   c                   C   s@   t  d¡ t  d¡ t  d¡ t  d¡ t  d¡ t  d¡ d S )Nr1   r,   r#   r   r   r   )r   Ú
drop_tablerC   rC   rC   rD   Ú	downgradec   s    




rG   )Ú__doc__Útypingr   r   Úalembicr   Ú
sqlalchemyr8   r   ÚstrÚ__annotations__r   r   r	   rE   rG   rC   rC   rC   rD   Ú<module>   s   O