<filename>services/core-api/app/api/mms_now_submissions/models/proposed_placer_activity_xref.py<gh_stars>10-100
from app.api.utils.models_mixins import Base
from app.extensions import db


class MMSProposedPlacerActivityXref(Base):
    __tablename__ = "proposed_placer_activity_xref"
    __table_args__ = {"schema": "mms_now_submissions"}
    mms_cid = db.Column(
        db.Integer, db.ForeignKey('mms_now_submissions.application.mms_cid'), primary_key=True)
    placeractivityid = db.Column(
        db.Integer,
        db.ForeignKey('mms_now_submissions.placer_activity.placeractivityid'),
        primary_key=True)

    def __repr__(self):
        return '<MMSProposedPlacerActivityXref>'

<filename>services/core-api/app/api/mms_now_submissions/models/proposed_placer_activity_xref.py<gh_stars>10-100
from app.api.utils.models_mixins import Base
from app.extensions import db


class MMSProposedPlacerActivityXref(Base):
    __tablename__ = "proposed_placer_activity_xref"
    __table_args__ = {"schema": "mms_now_submissions"}
    mms_cid = db.Column(
        db.Integer, db.ForeignKey('mms_now_submissions.application.mms_cid'), primary_key=True)
    placeractivityid = db.Column(
        db.Integer,
        db.ForeignKey('mms_now_submissions.placer_activity.placeractivityid'),
        primary_key=True)

    def __repr__(self):
        return '<MMSProposedPlacerActivityXref>'
