"""This module provides the model of the database for the package {package_name}.
"""
from half_orm.model import Model
from half_orm_dev.utils import resolve_database_config_name
from pathlib import Path

_package_dir = Path(__file__).parent
_project_dir = _package_dir.parent  # Go up to project root where .hop/ lives
_config_name = resolve_database_config_name(_project_dir)

MODEL = Model(_config_name, scope=__name__)
