-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Expand file tree
/
Copy pathtransactional_db.py
More file actions
42 lines (40 loc) · 1.02 KB
/
transactional_db.py
File metadata and controls
42 lines (40 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
CUSTOMERS_TABLE = {
"CUST123": {
"name": "Alice Johnson",
"email": "alice@example.com",
"phone": "555-1234",
},
"CUST456": {
"name": "Bob Smith",
"email": "bob@example.com",
"phone": "555-5678",
},
}
ORDERS_TABLE = {
"ORD1001": {
"customer_id": "CUST123",
"date": "2024-04-01",
"status": "Shipped",
"total": 89.99,
"items": ["SKU100", "SKU200"],
},
"ORD1015": {
"customer_id": "CUST123",
"date": "2024-05-17",
"status": "Processing",
"total": 45.50,
"items": ["SKU300"],
},
"ORD1022": {
"customer_id": "CUST456",
"date": "2024-06-04",
"status": "Delivered",
"total": 120.00,
"items": ["SKU100", "SKU100"],
},
}
PRODUCTS_TABLE = {
"SKU100": {"name": "Wireless Mouse", "price": 29.99, "stock": 42},
"SKU200": {"name": "Keyboard", "price": 59.99, "stock": 18},
"SKU300": {"name": "USB-C Cable", "price": 15.50, "stock": 77},
}