"""Reference Adjustment Type model.""" from abacus_common_logic.connectors.database import db from abacus_common_logic.models.base import CRUDMixin class ReferenceAdjustmentType(db.Model, CRUDMixin): """Reference Adjustment Type model. This table is a copy of the manual_adjustment_category table in art_relations. """ __tablename__ = 'reference_adjustment_type' reference_adjustment_type_id = db.Column(db.Integer, primary_key=True) type_name = db.Column(db.String(255), nullable=False) oa_category_name = db.Column(db.String(255), nullable=False) @classmethod def default_order(cls): """Define default sorting order.""" return cls.type_name