# Path: tkp/db/model.py
# class Rejectreason(Base):
#     __tablename__ = 'rejectreason'
# 
#     id = Column(Integer,  primary_key=True)
#     description = Column(String(512))
# 
# class Rejection(Base):
#     __tablename__ = 'rejection'
# 
#     id = Column(Integer, primary_key=True)
# 
#     image_id = Column('image', ForeignKey('image.id'), index=True)
#     image = relationship('Image')
# 
#     # TO DO: Rename this column to 'rejectreason_id',
#     # (rather than just 'rejectreason') so the model attribute matches
#     # the SQL column name, avoiding the current confusing name-shadowing
#     # between the SQL columns and the model attributes. (Issue #508)
#     rejectreason_id = Column('rejectreason', ForeignKey('rejectreason.id'), index=True)
#     rejectreason = relationship('Rejectreason')
# 
#     comment = Column(String(512))


import logging
from tkp.db.model import Rejectreason, Rejection
"""
check image quality
"""

logger = logging.getLogger(__name__)

reject_reasons = {

# Path: tkp/db/model.py
# class Rejectreason(Base):
#     __tablename__ = 'rejectreason'
# 
#     id = Column(Integer,  primary_key=True)
#     description = Column(String(512))
# 
# class Rejection(Base):
#     __tablename__ = 'rejection'
# 
#     id = Column(Integer, primary_key=True)
# 
#     image_id = Column('image', ForeignKey('image.id'), index=True)
#     image = relationship('Image')
# 
#     # TO DO: Rename this column to 'rejectreason_id',
#     # (rather than just 'rejectreason') so the model attribute matches
#     # the SQL column name, avoiding the current confusing name-shadowing
#     # between the SQL columns and the model attributes. (Issue #508)
#     rejectreason_id = Column('rejectreason', ForeignKey('rejectreason.id'), index=True)
#     rejectreason = relationship('Rejectreason')
# 
#     comment = Column(String(512))


# Path: tkp/db/quality.py
import logging
from tkp.db.model import Rejectreason, Rejection

"""
check image quality
"""

logger = logging.getLogger(__name__)

reject_reasons = {

    'rms': Rejectreason(id=0, description='RMS invalid'),