SurfSense/surfsense_backend/app/schemas/google_calendar_accounts.py

26 lines
503 B
Python

from uuid import UUID
from pydantic import BaseModel, ConfigDict
class GoogleCalendarAccountBase(BaseModel):
user_id: UUID
access_token: str
refresh_token: str
class GoogleCalendarAccountCreate(GoogleCalendarAccountBase):
pass
class GoogleCalendarAccountUpdate(BaseModel):
access_token: str
refresh_token: str
class GoogleCalendarAccountRead(BaseModel):
user_id: UUID
access_token: str
refresh_token: str
model_config = ConfigDict(from_attributes=True)