Changeset 68ab8ff in pycorepos


Ignore:
Timestamp:
07/13/20 11:03:32 (5 weeks ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
257ed82
Parents:
07291b3
Message:

Add CustomerAccount.customer_type reference, to MemberType

not 100% sure about the best naming here, hopefully this is good

File:
1 edited

Legend:

Unmodified
Added
Removed
  • corepos/db/office_op/model.py

    r07291b3 r68ab8ff  
    802802    customer_type_id = sa.Column('customerTypeID', sa.Integer(), nullable=True,
    803803                                 default=1)
     804    customer_type = orm.relationship(
     805        MemberType,
     806        primaryjoin=MemberType.id == customer_type_id,
     807        foreign_keys=[customer_type_id],
     808        doc="""
     809        Reference to the :class:`MemberType` with which this account is associated.
     810        """)
    804811
    805812    charge_balance = sa.Column('chargeBalance', sa.Numeric(precision=10, scale=2), nullable=True,
Note: See TracChangeset for help on using the changeset viewer.