mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-10 16:22:38 +02:00
27 lines
503 B
Python
27 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)
|