2023-12-31 16:27:39 +00:00
|
|
|
from datetime import datetime
|
|
|
|
|
2024-01-05 18:20:56 +00:00
|
|
|
class Product:
|
2023-12-31 16:27:39 +00:00
|
|
|
'''
|
|
|
|
Base class for a product
|
|
|
|
'''
|
|
|
|
def __init__(self):
|
2024-01-05 18:20:56 +00:00
|
|
|
self.id = 0
|
2023-12-31 16:27:39 +00:00
|
|
|
self.name = ""
|
2024-01-05 18:20:56 +00:00
|
|
|
self.image = "/static/assets/wmgzon.png"
|
|
|
|
self.description = ""
|
2023-12-31 16:27:39 +00:00
|
|
|
self.cost = 0.0
|
|
|
|
self.category = ""
|
|
|
|
self.sellerID = 0
|
|
|
|
self.postedDate = datetime.now()
|
|
|
|
self.quantityAvailable = 0
|
2024-01-05 18:20:56 +00:00
|
|
|
|