kilogramm/backend/app/models.py

18 lines
353 B
Python

from pydantic import BaseModel, EmailStr
class User(BaseModel):
id: str
username: str
email: str
first_name: str
last_name: str
realm_roles: list
client_roles: list
class authConfiguration(BaseModel):
server_url: str
realm: str
client_id: str
client_secret: str
authorization_url: str
token_url: str