Chore: moving changes - migrating Desktop from nobara 42 to windows(WSL)

This commit is contained in:
2025-11-05 22:29:28 +02:00
parent c086f64363
commit 934d8fc35f
8 changed files with 826 additions and 63 deletions
+18
View File
@@ -31,6 +31,7 @@ class UserResponse(SQLModel):
id: Optional[int] = None
username: str
role: UserRole
is_approved: bool
class Token(SQLModel):
@@ -46,6 +47,23 @@ class TokenData(SQLModel):
role: Optional[UserRole] = None
class UserApprovalUpdate(SQLModel):
"""Schema for admin to approve/reject user accounts."""
is_approved: bool
class PasswordChangeRequest(SQLModel):
"""Schema for changing password (user knows current password)."""
current_password: str
new_password: str
class EmailVerificationRequest(SQLModel):
"""Schema for requesting email verification for password reset."""
username: str
email: str # User provides their email for verification
##################################################
# Transactions
class TransactionBase(SQLModel):