Tiger's Candy, a candy store that originated on the RIT campus, has rapidly gained popularity. To handle their growth, they have decided to build an automated data system for processing online orders in batches.
As their new database engineer intern, you will work with a data system blueprint designed by Tom, a part-time engineer. Your role is to continue developing this system and load data according to specifications.
In this project, you will implement batch processing logic to process raw order transactions at the end of each day. This process includes validating transaction details and verifying inventory levels to ensure successful order shipment. You will then put the daily sales and profit numbers into a time series forecasting model to predict future sales and profits.
{
"transaction_id": 73434473,
"customer_id": 29,
"timestamp": "2024-02-02T12:00:40.808092",
"items": [
{
"product_id": 17,
"product_name": "Sea Salt Crackle Enrobed Bites",
"qty": 5
},
{
"product_id": 18,
"product_name": "Almond Shards Enrobed Bites",
"qty": null
},
{
"product_id": 3,
"product_name": "Powdered Sugar Sticks Rectangles",
"qty": 2
}
]
},