Add basic CORE webservices API client, for Vendor data

lots more to come yet, once the basic patterns are proven
This commit is contained in:
Lance Edgar 2020-03-03 21:35:39 -06:00
parent a0efa1a967
commit 7fc5ae9b4e
2 changed files with 178 additions and 1 deletions

View file

@ -137,7 +137,10 @@ class Vendor(Base):
"""
__tablename__ = 'vendors'
id = sa.Column('vendorID', sa.Integer(), primary_key=True, autoincrement=False, nullable=False)
# TODO: this maybe should be the pattern we use going forward, for all
# models? for now it was deemed necessary to "match" the API output
vendorID = sa.Column(sa.Integer(), primary_key=True, autoincrement=False, nullable=False)
id = orm.synonym('vendorID')
name = sa.Column('vendorName', sa.String(length=50), nullable=True)