From d50b25fb26a45fe0763744783c75ce0250aba7e0 Mon Sep 17 00:00:00 2001 From: Alix JEUDI--LEMOINE Date: Thu, 19 Jun 2025 00:48:04 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Added=20an=20optional=20field=20for?= =?UTF-8?q?=20push=20subscriptions=20in=20the=20user=20model.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/user.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/user.py b/app/models/user.py index 2a8e4c1..69c0f1c 100644 --- a/app/models/user.py +++ b/app/models/user.py @@ -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 \ No newline at end of file + is_admin: bool = False + push_subscriptions: Optional[list[str]] = [] \ No newline at end of file