Question: a) Implement the models shown in Figure 2 and initialize the database in initDB.py. b) Load the data from products.csv into the database in initDB.py

a) Implement the models shown in Figure 2 and initialize the database in initDB.py. b) Load the data from products.csv into the database in initDB.py Product Cart + {PK) id: Integer + {PK) id : Integer + name: String + quantity : Integer 0.1 + category: String + {FK} {unique} product_id: Integer + price: Float toDict() : dictionary + image: String + about String + cart: Cart to Dict() : dictionary Figure 2: Class Diagram for Models
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
