WMGZON/models/products/product.py

17 lines
402 B
Python

from datetime import datetime
class Product:
'''
Base class for a product
'''
def __init__(self):
self.id = 0
self.name = ""
self.image = "/static/assets/wmgzon.png"
self.description = ""
self.cost = 0.0
self.category = ""
self.sellerID = 0
self.postedDate = datetime.now()
self.quantityAvailable = 0