17 lines
296 B
Python
17 lines
296 B
Python
from datetime import datetime
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class SubscriptionResponse(BaseModel):
|
|
id: str
|
|
tenant_id: str
|
|
plan_id: str
|
|
limits: dict | None
|
|
status: str
|
|
started_at: datetime
|
|
ended_at: datetime | None
|
|
|
|
class Config:
|
|
from_attributes = True
|