-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/strategy equal parts #69
Conversation
@@ -88,7 +89,7 @@ class RecurringSpending(Base): | |||
owner_id = Column(ForeignKey("users.id")) | |||
group_id = Column(ForeignKey("groups.id")) | |||
category_id = Column(ForeignKey("categories.id")) | |||
amount = Column(Integer) | |||
amount = Column(Float) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debería ser un entero.
|
||
class Distribution(TypedDict): | ||
user_id: int | ||
value: float |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Que sea un int entre 0 y 100
src/schemas.py
Outdated
|
||
class UniqueSpendingBase(BaseModel): | ||
amount: int | ||
description: str | ||
date: Optional[datetime] = Field(None) | ||
group_id: int | ||
category_id: int | ||
strategy_data: Optional[List[Distribution]] = Field(None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Podemos moverlo a CreateUniqueSpending
, y no guardarlo en la DB
Agregar los test para los distintos tipos de gastos |
No description provided.