Files
TimeTracker/app/schemas/__init__.py
T
Dries Peeters b4486a627f fix: CI tests, code quality, and duplicate DB indexes
- Webhook models: remove duplicate index definitions so db.create_all()
  no longer raises 'index already exists' (columns already have index=True)
- ImportService: fix circular import by late-importing ClientService,
  ProjectService, TimeTrackingService in __init__
- reports: fix F823 by renaming unpack variable _ to _entry_count to avoid
  shadowing gettext _ in export_task_excel()
- Code quality: add .flake8 with extend-ignore so flake8 CI passes;
  simplify pyproject.toml isort config (drop unsupported options)
- Format: run black and isort on app/
- tests: restore minimal app fixture in test_import_export_models
2026-03-15 10:51:52 +01:00

45 lines
1.5 KiB
Python

"""
Schema/DTO layer for API serialization and validation.
Uses Marshmallow for consistent API responses and input validation.
"""
from .client_schema import ClientCreateSchema, ClientSchema, ClientUpdateSchema
from .comment_schema import CommentCreateSchema, CommentSchema, CommentUpdateSchema
from .expense_schema import ExpenseCreateSchema, ExpenseSchema, ExpenseUpdateSchema
from .invoice_schema import InvoiceCreateSchema, InvoiceSchema, InvoiceUpdateSchema
from .payment_schema import PaymentCreateSchema, PaymentSchema, PaymentUpdateSchema
from .project_schema import ProjectCreateSchema, ProjectSchema, ProjectUpdateSchema
from .task_schema import TaskCreateSchema, TaskSchema, TaskUpdateSchema
from .time_entry_schema import TimeEntryCreateSchema, TimeEntrySchema, TimeEntryUpdateSchema
from .user_schema import UserCreateSchema, UserSchema, UserUpdateSchema
__all__ = [
"TimeEntrySchema",
"TimeEntryCreateSchema",
"TimeEntryUpdateSchema",
"ProjectSchema",
"ProjectCreateSchema",
"ProjectUpdateSchema",
"InvoiceSchema",
"InvoiceCreateSchema",
"InvoiceUpdateSchema",
"TaskSchema",
"TaskCreateSchema",
"TaskUpdateSchema",
"ExpenseSchema",
"ExpenseCreateSchema",
"ExpenseUpdateSchema",
"ClientSchema",
"ClientCreateSchema",
"ClientUpdateSchema",
"PaymentSchema",
"PaymentCreateSchema",
"PaymentUpdateSchema",
"CommentSchema",
"CommentCreateSchema",
"CommentUpdateSchema",
"UserSchema",
"UserCreateSchema",
"UserUpdateSchema",
]