feat: user dependencies

In addition to the by-query and by-body db fetch dependencies. Users also have a by-claim dependency.

Issue #6
This commit is contained in:
Chris Milne 2026-05-27 13:27:24 +01:00
parent 657f91d73d
commit 748544fb82
3 changed files with 59 additions and 27 deletions

View file

@ -9,6 +9,10 @@ from typing import Optional
from src.schemas import CustomBaseModel
class UserIDMixin(CustomBaseModel):
user_id: int
class OIDCClaims(CustomBaseModel):
exp: int
iat: int
@ -52,3 +56,7 @@ class UserResponse(CustomBaseModel):
class OrgResponse(CustomBaseModel):
org_id: int
name: str
class UserDeleteUserRequest(UserIDMixin):
pass