# Path: scribeui_pyramid/modules/app/sqla.py
# def get_session(request):
# def init_sqla(settings):
#     def __props__(self, convert_date=False):
#     def __todict__(self):
#         def convert_datetime(value):
#     def __iter__(self):
#     def __json__(self, request):
#     def fromdict(self, values):
#     def all(cls, page=None, limit=None):
#     def by_id(cls, id):
# def includeme(config):
# class BaseMixin(object):


from scribeui_pyramid.modules.app.sqla import Base, BaseMixin
import sqlalchemy as sa
# -*- coding: utf-8 -*-


#from . import (
#    DBSession,
#    Base,
#    BaseMixin
#)


class Job(Base, BaseMixin):
    __tablename__ = 'jobs'

    id = sa.Column(sa.Integer, primary_key=True, autoincrement=True)
    title = sa.Column(sa.Unicode(255), nullable=False)
    status = sa.Column(sa.Integer, nullable=False)

    map_id = sa.Column(sa.Integer, sa.ForeignKey('maps.id'),
                             nullable=False)

    def __repr__(self):
        return u"<Job('{0}')>".format(self.title)



# Path: scribeui_pyramid/modules/app/sqla.py
# def get_session(request):
# def init_sqla(settings):
#     def __props__(self, convert_date=False):
#     def __todict__(self):
#         def convert_datetime(value):
#     def __iter__(self):
#     def __json__(self, request):
#     def fromdict(self, values):
#     def all(cls, page=None, limit=None):
#     def by_id(cls, id):
# def includeme(config):
# class BaseMixin(object):


# Path: scribeui_pyramid/modules/plugins/mapcache/models.py
from scribeui_pyramid.modules.app.sqla import Base, BaseMixin
import sqlalchemy as sa

# -*- coding: utf-8 -*-


#from . import (
#    DBSession,
#    Base,
#    BaseMixin
#)


class Job(Base, BaseMixin):
    __tablename__ = 'jobs'

    id = sa.Column(sa.Integer, primary_key=True, autoincrement=True)
    title = sa.Column(sa.Unicode(255), nullable=False)
    status = sa.Column(sa.Integer, nullable=False)

    map_id = sa.Column(sa.Integer, sa.ForeignKey('maps.id'),
                             nullable=False)

    def __repr__(self):
        return u"<Job('{0}')>".format(self.title)



class DatabaseConfig(Base, BaseMixin):