mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-11 08:42:39 +02:00
add (backend) google calendar connection flow
This commit is contained in:
parent
d98dfd40b5
commit
9abaf4fd2a
3 changed files with 176 additions and 0 deletions
26
surfsense_backend/app/schemas/google_calendar_accounts.py
Normal file
26
surfsense_backend/app/schemas/google_calendar_accounts.py
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue