__copyright__ = 'Copyright(c) Gordon Elliott 2017'

""" 
"""

from a_tuin.db import TableMap, PagedQuery, InstanceQuery

from glod.model.nominal_account  import (
    NominalAccount,
    NominalAccountSOFAHeading,
    NominalAccountCategory,
    NominalAccountSubCategory,
    NominalAccountCollection,
)

from glod.db.db_column_type_map import DB_COLUMN_TYPE_MAP
from glod.db.constants import SCHEMA_NAME


TableMap(NominalAccount, SCHEMA_NAME, 'nominal_account', DB_COLUMN_TYPE_MAP)


class NominalAccountInstanceQuery(InstanceQuery):
    def __init__(self, session):
        super().__init__(NominalAccount, NominalAccountCollection, session)


class NominalAccountQuery(PagedQuery):
    def __init__(self, session):
        super().__init__(NominalAccount, NominalAccountCollection, session)
