refactor: split schemas.py into schemas/ package
This commit is contained in:
70
backend/schemas/__init__.py
Normal file
70
backend/schemas/__init__.py
Normal file
@@ -0,0 +1,70 @@
|
||||
# Re-export all schemas for backward compatibility
|
||||
from .common import (
|
||||
SystemSettingBase,
|
||||
SystemSetting,
|
||||
BackupInfo,
|
||||
DatabaseStats,
|
||||
DbSettingsUpdate,
|
||||
)
|
||||
from .users import (
|
||||
UserBase,
|
||||
UserCreate,
|
||||
User,
|
||||
UserUpdate,
|
||||
UserLogin,
|
||||
UserPasswordUpdate,
|
||||
TokenResponse,
|
||||
)
|
||||
from .items import (
|
||||
CategoryBase,
|
||||
CategoryCreate,
|
||||
Category,
|
||||
ColorBase,
|
||||
ColorCreate,
|
||||
Color,
|
||||
ItemBase,
|
||||
ItemCreate,
|
||||
Item,
|
||||
)
|
||||
from .operations import (
|
||||
OperationCreate,
|
||||
BulkOperationCreate,
|
||||
TrashOperationCreate,
|
||||
SyncOperation,
|
||||
SyncPayload,
|
||||
AuditLogResponse,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
# common
|
||||
"SystemSettingBase",
|
||||
"SystemSetting",
|
||||
"BackupInfo",
|
||||
"DatabaseStats",
|
||||
"DbSettingsUpdate",
|
||||
# users
|
||||
"UserBase",
|
||||
"UserCreate",
|
||||
"User",
|
||||
"UserUpdate",
|
||||
"UserLogin",
|
||||
"UserPasswordUpdate",
|
||||
"TokenResponse",
|
||||
# items
|
||||
"CategoryBase",
|
||||
"CategoryCreate",
|
||||
"Category",
|
||||
"ColorBase",
|
||||
"ColorCreate",
|
||||
"Color",
|
||||
"ItemBase",
|
||||
"ItemCreate",
|
||||
"Item",
|
||||
# operations
|
||||
"OperationCreate",
|
||||
"BulkOperationCreate",
|
||||
"TrashOperationCreate",
|
||||
"SyncOperation",
|
||||
"SyncPayload",
|
||||
"AuditLogResponse",
|
||||
]
|
||||
Reference in New Issue
Block a user