from pydantic import BaseModel


class UsersIntegrations(BaseModel):
    id: int
    user_id: int
    strava_client_id: str | None = None
    strava_client_secret: str | None = None
    strava_state: str | None = None
    strava_token: str | None = None
    strava_refresh_token: str | None = None
    strava_token_expires_at: str | None = None
    strava_sync_gear: bool
    garminconnect_oauth1: dict | None = None
    garminconnect_oauth2: dict | None = None
    garminconnect_sync_gear: bool

    model_config = {
        "from_attributes": True
    }
