fix(backend): Add missing PaginatedResponse schema definition
Some checks failed
Deploy Fediversion / deploy (push) Failing after 1s
Some checks failed
Deploy Fediversion / deploy (push) Failing after 1s
This commit is contained in:
parent
60456c4737
commit
429858287f
1 changed files with 11 additions and 0 deletions
|
|
@ -34,6 +34,17 @@ class Token(SQLModel):
|
||||||
class TokenData(SQLModel):
|
class TokenData(SQLModel):
|
||||||
email: Optional[str] = None
|
email: Optional[str] = None
|
||||||
|
|
||||||
|
T = TypeVar("T")
|
||||||
|
|
||||||
|
class PaginationMeta(SQLModel):
|
||||||
|
total: int
|
||||||
|
limit: int
|
||||||
|
offset: int
|
||||||
|
|
||||||
|
class PaginatedResponse(SQLModel, Generic[T]):
|
||||||
|
data: List[T]
|
||||||
|
meta: PaginationMeta
|
||||||
|
|
||||||
# --- Venue Schemas ---
|
# --- Venue Schemas ---
|
||||||
class VenueBase(SQLModel):
|
class VenueBase(SQLModel):
|
||||||
name: str
|
name: str
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue