Initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
"""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
|
||||
Reference in New Issue
Block a user