refactor: update module docstrings for clarity and consistency
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
"""User model storing identity and profile preferences."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from uuid import UUID, uuid4
|
||||
@@ -8,6 +10,8 @@ from app.models.base import QueryModel
|
||||
|
||||
|
||||
class User(QueryModel, table=True):
|
||||
"""Application user account and profile attributes."""
|
||||
|
||||
__tablename__ = "users"
|
||||
|
||||
id: UUID = Field(default_factory=uuid4, primary_key=True)
|
||||
@@ -21,5 +25,7 @@ class User(QueryModel, table=True):
|
||||
context: str | None = None
|
||||
is_super_admin: bool = Field(default=False)
|
||||
active_organization_id: UUID | None = Field(
|
||||
default=None, foreign_key="organizations.id", index=True
|
||||
default=None,
|
||||
foreign_key="organizations.id",
|
||||
index=True,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user