Add Product.last_sold
to schema
hopefully that's a good idea..
This commit is contained in:
parent
4b971c289e
commit
beb73dc668
|
@ -423,6 +423,9 @@ class Product(Base):
|
||||||
|
|
||||||
current_origin_id = sa.Column(sa.Integer(), nullable=True, default=0)
|
current_origin_id = sa.Column(sa.Integer(), nullable=True, default=0)
|
||||||
|
|
||||||
|
# TODO: some older DB's might not have this? guess we'll see
|
||||||
|
last_sold = sa.Column(sa.DateTime(), nullable=True)
|
||||||
|
|
||||||
like_code = association_proxy(
|
like_code = association_proxy(
|
||||||
'_like_code', 'like_code',
|
'_like_code', 'like_code',
|
||||||
creator=lambda lc: ProductLikeCode(like_code=lc),
|
creator=lambda lc: ProductLikeCode(like_code=lc),
|
||||||
|
|
Loading…
Reference in a new issue