mirror of
https://github.com/Steffo99/greed.git
synced 2024-11-25 15:24:17 +00:00
Add a product id to allow the edit of product names
This commit is contained in:
parent
69862d62a7
commit
a0552503a3
1 changed files with 3 additions and 1 deletions
|
@ -59,8 +59,10 @@ class User(TableDeclarativeBase):
|
||||||
class Product(TableDeclarativeBase):
|
class Product(TableDeclarativeBase):
|
||||||
"""A purchasable product."""
|
"""A purchasable product."""
|
||||||
|
|
||||||
|
# Product id
|
||||||
|
id = Column(Integer, primary_key=True)
|
||||||
# Product name
|
# Product name
|
||||||
name = Column(String, primary_key=True)
|
name = Column(String)
|
||||||
# Product description
|
# Product description
|
||||||
description = Column(Text)
|
description = Column(Text)
|
||||||
# Product price, if null product is not for sale
|
# Product price, if null product is not for sale
|
||||||
|
|
Loading…
Reference in a new issue