3
O_              	   @   s   d dl m Z  d dlmZmZmZmZmZ d dlmZ d dl	m
Z
 dZdZdZdZed	e d
e de de Ze
edZe ZG dd dZdS )    )datetime)create_engineColumnStringIntegerDateTime)declarative_base)sessionmakerzlocalhost:3306Zultimate_historyrootyzmysql+mysqlconnector://:@/)Zbindc               @   s8   e Zd ZeeddZeeZeeZee	Z
dd ZdS )EntityT)Zprimary_keyc             C   s   t j | _t j | _|| _d S )N)r   Znow
created_at
updated_atlast_updated_by)selfZ
created_by r   B/share/dev/UltimateHistory/backend/src/database_entities/entity.py__init__   s    

zEntity.__init__N)__name__
__module____qualname__r   r   idr   r   r   r   r   r   r   r   r   r   r      s
   r   N)r   
sqlalchemyr   r   r   r   r   Zsqlalchemy.ext.declarativer   Zsqlalchemy.ormr	   Zdb_urlZdb_nameZdb_userZdb_passwordengineSessionBaser   r   r   r   r   <module>   s    
