Added an optional field for push subscriptions in the user model.
continuous-integration/drone/push Build is passing Details

master
Alix JEUDI--LEMOINE 22 hours ago
parent b9a7822d5c
commit d50b25fb26

@ -1,8 +1,10 @@
from pydantic import BaseModel, Field
from typing import Optional
class User(BaseModel):
uid: str = Field(..., alias="_id")
username: str
password: str
is_admin: bool = False
is_admin: bool = False
push_subscriptions: Optional[list[str]] = []
Loading…
Cancel
Save