Add a product id to allow the edit of product names
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user