# Path: tokenserver/assignment/sqlnode/schemas.py
# def _add(name, base):
# def get_cls(name, base_cls):
#     def __table_args__(cls):
#     def __table_args__(cls):
# class _UsersBase(object):
# class _ServicesBase(object):
# class _NodesBase(object):
# class _SettingsBase(object):
# 
# Path: tokenserver/assignment/sqlnode/schemas.py
# def get_cls(name, base_cls):
#     if name in base_cls.metadata.tables:
#         return base_cls.metadata.tables[name]
# 
#     args = {'__tablename__': name}
#     base = bases[name]
#     return type(name, (base, base_cls), args).__table__


from tokenserver.assignment.sqlnode.schemas import (_UsersBase,
                                                    _NodesBase,
                                                    _SettingsBase,
                                                    Integer,
                                                    Column,
                                                    String,
                                                    _add,
                                                    declared_attr)
from tokenserver.assignment.sqlnode.schemas import get_cls   # NOQA


__all__ = (get_cls,)


class _SQLITENodesBase(_NodesBase):
    id = Column(Integer, primary_key=True)

    @declared_attr
    def __table_args__(cls):
        return ()


_add('nodes', _SQLITENodesBase)


class _SQLITEUsersBase(_UsersBase):
    uid = Column(Integer, primary_key=True)

    @declared_attr
    def __table_args__(cls):
        return ()


_add('users', _SQLITEUsersBase)


class _SQLITESettingsBase(_SettingsBase):
    setting = Column(String(100), primary_key=True)


# Path: tokenserver/assignment/sqlnode/schemas.py
# def _add(name, base):
# def get_cls(name, base_cls):
#     def __table_args__(cls):
#     def __table_args__(cls):
# class _UsersBase(object):
# class _ServicesBase(object):
# class _NodesBase(object):
# class _SettingsBase(object):
# 
# Path: tokenserver/assignment/sqlnode/schemas.py
# def get_cls(name, base_cls):
#     if name in base_cls.metadata.tables:
#         return base_cls.metadata.tables[name]
# 
#     args = {'__tablename__': name}
#     base = bases[name]
#     return type(name, (base, base_cls), args).__table__


# Path: tokenserver/assignment/sqlnode/sqliteschemas.py
from tokenserver.assignment.sqlnode.schemas import (_UsersBase,
                                                    _NodesBase,
                                                    _SettingsBase,
                                                    Integer,
                                                    Column,
                                                    String,
                                                    _add,
                                                    declared_attr)
from tokenserver.assignment.sqlnode.schemas import get_cls   # NOQA



__all__ = (get_cls,)


class _SQLITENodesBase(_NodesBase):
    id = Column(Integer, primary_key=True)

    @declared_attr
    def __table_args__(cls):
        return ()


_add('nodes', _SQLITENodesBase)


class _SQLITEUsersBase(_UsersBase):
    uid = Column(Integer, primary_key=True)

    @declared_attr
    def __table_args__(cls):
        return ()


_add('users', _SQLITEUsersBase)


class _SQLITESettingsBase(_SettingsBase):
    setting = Column(String(100), primary_key=True)


    @declared_attr