# Path: src/booking/utils/database/DatabaseProvider.py
# def get_db() -> Database:
#     database = DB_INJECTOR.get(Database)
#     if database.is_closed():
#         database.connect()
#     return database


from peewee import *
from ..DatabaseProvider import get_db


class BaseModel(Model):
    """
    Base mysql model class.
    """
    class Meta:

# Path: src/booking/utils/database/DatabaseProvider.py
# def get_db() -> Database:
#     database = DB_INJECTOR.get(Database)
#     if database.is_closed():
#         database.connect()
#     return database


# Path: src/booking/utils/database/models/BaseModel.py
from peewee import *
from ..DatabaseProvider import get_db



class BaseModel(Model):
    """
    Base mysql model class.
    """
    class Meta:

        database = get_db()