user.py 600 B

12345678910111213141516171819202122
  1. from typing import Any, Dict, Optional
  2. from .base import LaxIngestSchema
  3. class EventGeo(LaxIngestSchema):
  4. city: Optional[str] = None
  5. country_code: Optional[str] = None
  6. region: Optional[str] = None
  7. subdivision: Optional[str] = None
  8. class EventUser(LaxIngestSchema):
  9. id: Optional[str] = None
  10. username: Optional[str] = None
  11. email: Optional[str] = None
  12. ip_address: Optional[str] = None
  13. subscription: Optional[str] = None
  14. data: Optional[Dict[str, Any]] = None
  15. geo: Optional[EventGeo] = None
  16. name: Optional[str] = None
  17. segment: Optional[str] = None