Bootstrap code cleanup.

This commit is contained in:
2025-08-07 02:39:44 +00:00
parent df377c4a14
commit 62cf384cfa
4 changed files with 161 additions and 171 deletions
+9
View File
@@ -231,6 +231,15 @@ class DatabaseInterface(ABC):
) -> None:
"""Create a new user and their first credential in a transaction."""
# Bootstrap helpers
@abstractmethod
async def has_any_users(self) -> bool:
"""Check if any users exist in the system."""
@abstractmethod
async def find_users_by_role(self, role: str) -> list[User]:
"""Find all users with a specific role."""
__all__ = [
"User",