plan
Browse files- App/Plans/Schema.py +2 -2
App/Plans/Schema.py
CHANGED
|
@@ -15,8 +15,8 @@ class CreatePlanRequest(BaseModel):
|
|
| 15 |
duration: int = Field(..., description="Duration of the subscription in hours")
|
| 16 |
download_speed: float = Field(..., description="Download speed in Mbps")
|
| 17 |
upload_speed: float = Field(..., description="Upload speed in Mbps")
|
| 18 |
-
is_promo: Optional[bool] = Field(
|
| 19 |
-
promo_days: Optional[int] = Field(
|
| 20 |
|
| 21 |
|
| 22 |
class UpdatePlanRequest(BaseModel):
|
|
|
|
| 15 |
duration: int = Field(..., description="Duration of the subscription in hours")
|
| 16 |
download_speed: float = Field(..., description="Download speed in Mbps")
|
| 17 |
upload_speed: float = Field(..., description="Upload speed in Mbps")
|
| 18 |
+
is_promo: Optional[bool] = Field(False, description="is it a promo")
|
| 19 |
+
promo_days: Optional[int] = Field(None, description="promotion days")
|
| 20 |
|
| 21 |
|
| 22 |
class UpdatePlanRequest(BaseModel):
|