Created a set of base models to begin fleshing out the data aspect of the application

This commit is contained in:
2023-12-31 16:27:39 +00:00
parent 213fc9c503
commit 54877495f0
10 changed files with 137 additions and 0 deletions

13
models/order.py Normal file
View File

@@ -0,0 +1,13 @@
from datetime import datetime
class Order:
'''
Constructor for an order object
'''
def __init__(self):
self.id = 0
self.sellerID = 0
self.customerID = 0
self.products = list()
self.totalCost = 0.0
self.orderDate = datetime.now()