feat: added duration_days to /users/subscriptions

This commit is contained in:
2026-08-17 21:33:08 +07:00
parent 8b6c43f89a
commit 05914f0b23
5 changed files with 40 additions and 3 deletions

View File

@@ -4,11 +4,12 @@ from pydantic import BaseModel, Field
class SubscriptionData(BaseModel):
has_subscription: bool = Field()
devices: int | None = Field(None)
expires_at: datetime | None = Field(None)
addon_ids: list[str] = Field(default_factory=list)
subscription_link: str | None = Field(None)
has_subscription: bool = Field()
duration_days: int | None = Field(None)
class UserInfo(BaseModel):