a
    `ŠÝgä  ã                   @  s2   d dl mZ d dlZd dlmZ ddœdd„ZdS )é    )ÚannotationsN)Úcurrent_appzdict[str, t.Any])Úreturnc                  C  s*   t jd } dd„ | jjjD ƒ}| |d< |S )z³Registered with :meth:`~flask.Flask.shell_context_processor` if
    ``add_models_to_shell`` is enabled. Adds the ``db`` instance and all model classes
    to ``flask shell``.
    Z
sqlalchemyc                 S  s   i | ]}|j j|j “qS © )Úclass_Ú__name__)Ú.0Úmr   r   úb/var/www/html/cobodadashboardai.evdpl.com/venv/lib/python3.9/site-packages/flask_sqlalchemy/cli.pyÚ
<dictcomp>   ó    z'add_models_to_shell.<locals>.<dictcomp>Údb)r   Ú
extensionsZModelZ_sa_registryZmappers)r   Úoutr   r   r
   Úadd_models_to_shell   s    
r   )Ú
__future__r   ÚtypingÚtZflaskr   r   r   r   r   r
   Ú<module>   s   