1
Fork 0
mirror of https://github.com/Steffo99/greed.git synced 2024-11-22 05:54:18 +00:00

Add a product id to allow the edit of product names

This commit is contained in:
Steffo 2018-01-29 13:26:23 +01:00
parent 69862d62a7
commit a0552503a3
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: C27544372FBB445D

View file

@ -59,8 +59,10 @@ class User(TableDeclarativeBase):
class Product(TableDeclarativeBase):
"""A purchasable product."""
# Product id
id = Column(Integer, primary_key=True)
# Product name
name = Column(String, primary_key=True)
name = Column(String)
# Product description
description = Column(Text)
# Product price, if null product is not for sale