add (backend) google calendar connection flow

This commit is contained in:
CREDO23 2025-08-02 00:05:55 +02:00
parent d98dfd40b5
commit 9abaf4fd2a
3 changed files with 176 additions and 0 deletions

View file

@ -0,0 +1,26 @@
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)