
Features: - User authentication with JWT - Client management with CRUD operations - Invoice generation and management - SQLite database with Alembic migrations - Detailed project documentation
20 lines
357 B
Python
20 lines
357 B
Python
from datetime import datetime
|
|
from typing import Optional
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class ActivityBase(BaseModel):
|
|
action: str
|
|
entity_type: str
|
|
entity_id: Optional[int] = None
|
|
details: Optional[str] = None
|
|
timestamp: datetime
|
|
|
|
|
|
class Activity(ActivityBase):
|
|
id: int
|
|
user_id: int
|
|
|
|
class Config:
|
|
orm_mode = True |