<filename>services/core-api/app/api/securities/models/bond_permit_xref.py
from sqlalchemy.schema import FetchedValue

from app.extensions import db
from app.api.utils.models_mixins import Base


class BondPermitXref(Base):
    __tablename__ = "bond_permit_xref"

    bond_id = db.Column(db.Integer, db.ForeignKey('bond.bond_id'), primary_key=True)
    permit_id = db.Column(db.Integer, db.ForeignKey('permit.permit_id'), primary_key=True)

    def __repr__(self):
        return '<BondPermitXref %r>' % self.bond_permit_xref_guid
