16 lines
398 B
Python
16 lines
398 B
Python
"""Domain entity: User (login account, linked 1:1 to PersonalData)."""
|
|
|
|
from dataclasses import dataclass
|
|
from datetime import datetime
|
|
from uuid import UUID
|
|
|
|
|
|
@dataclass
|
|
class User:
|
|
id: UUID
|
|
personal_data_uuid: UUID # FK to PersonalData; workspace derived from it
|
|
email: str
|
|
hashed_password: str # argon2 hash; never plain SHA
|
|
created_at: datetime
|
|
is_active: bool = True
|