d50c1c5bba
- Added .env.example for environment variable configuration. - Created app initialization files and core settings management. - Implemented API routers for reporting and transaction endpoints. - Developed transaction management service with CRUD operations. - Integrated Azure OAuth for user authentication. - Designed dashboard view with transaction filtering and display. - Added Swagger UI documentation with custom dark theme. - Created static and template files for frontend styling and layout.
22 lines
440 B
Python
22 lines
440 B
Python
from datetime import date
|
|
from typing import Literal
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class Transaction(BaseModel):
|
|
transaction_id: str
|
|
date: date
|
|
account: str
|
|
amount: float
|
|
status: Literal["Matched", "Unmatched", "Pending"]
|
|
flag: Literal["None", "Duplicate", "Threshold Breach", "Manual Review"]
|
|
|
|
|
|
class ReconSummary(BaseModel):
|
|
total: int
|
|
matched: int
|
|
unmatched: int
|
|
pending: int
|
|
flagged: int
|