12345678910111213141516171819202122 |
- from typing import Any, Dict, Optional
- from ninja import Schema
- class EventGeo(Schema):
- city: Optional[str] = None
- country_code: Optional[str] = None
- region: Optional[str] = None
- subdivision: Optional[str] = None
- class EventUser(Schema):
- id: Optional[str] = None
- username: Optional[str] = None
- email: Optional[str] = None
- ip_address: Optional[str] = None
- subscription: Optional[str] = None
- data: Optional[Dict[str, Any]] = None
- geo: Optional[EventGeo] = None
- name: Optional[str] = None
- segment: Optional[str] = None
|