Initial commit

This commit is contained in:
2026-06-01 16:48:21 +02:00
commit 53d157535a
159 changed files with 13641 additions and 0 deletions
@@ -0,0 +1,17 @@
"""Abstract repository for PersonalData.
Extends SoftDeleteRepository because PersonalData directly holds PII and must
support GDPR erasure.
"""
from abc import abstractmethod
from uuid import UUID
from app.entities.personal_data import PersonalData
from app.repositories.base import SoftDeleteRepository
class PersonalDataRepository(SoftDeleteRepository[PersonalData]):
@abstractmethod
async def list_by_workspace(self, workspace_id: UUID) -> list[PersonalData]:
"""Return all non-deleted profiles in a workspace (up to 2)."""