This commit is contained in:
2025-11-25 21:22:30 -05:00
parent 72971f6d3e
commit f82ba25160
16 changed files with 860 additions and 100 deletions

15
api/child_rewards.py Normal file
View File

@@ -0,0 +1,15 @@
# api/child_rewards.py
class ChildReward:
def __init__(self, name: str, cost: int, image_id: str, reward_id: str):
self.name = name
self.cost = cost
self.image_id = image_id
self.id = reward_id
def to_dict(self):
return {
'id': self.id,
'name': self.name,
'cost': self.cost,
'image_id': self.image_id
}