You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
api/app/models/user.py

10 lines
241 B

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
push_subscriptions: Optional[list[str]] = []