fix: schemas + states

This commit is contained in:
2026-04-08 19:35:23 +07:00
parent 930fabc028
commit 1be4770afd
6 changed files with 58 additions and 0 deletions

18
schemas/subscriptions.py Normal file
View File

@@ -0,0 +1,18 @@
from enum import Enum
from pydantic import BaseModel
from config import settings
class SubscriptionDuration(Enum):
MONTH = "month"
THREE_MONTHS = "three_months"
SIX_MONTHS = "six_months"
YEAR = "year"
class SubscriptionPlan(BaseModel):
devices: int = settings.min_devices
duration: SubscriptionDuration = SubscriptionDuration.MONTH
whitelists: bool = False