Source code for kittycad.models.user

import datetime
from typing import Optional

from pydantic import BaseModel, ConfigDict

from ..models.block_reason import BlockReason
from ..models.uuid import Uuid


[docs] class User(BaseModel): """A user.""" block: Optional[BlockReason] = None can_train_on_data: bool = False company: Optional[str] = None created_at: datetime.datetime discord: Optional[str] = None email: Optional[str] = None email_verified: Optional[datetime.datetime] = None first_name: Optional[str] = None github: Optional[str] = None id: Uuid image: str is_service_account: bool = False last_name: Optional[str] = None name: Optional[str] = None phone: str = "" updated_at: datetime.datetime model_config = ConfigDict(protected_namespaces=())