Some checks failed
- Add admin SQL query tool with saved queries, schema explorer presets, and collapsible category sections (dev_tools module) - Add platform debug tool for admin diagnostics - Add loyalty settings page with owner-only access control - Fix loyalty settings owner check (use currentUser instead of window.__userData) - Replace HTTPException with AuthorizationException in loyalty routes - Expand loyalty module with PIN service, Apple Wallet, program management - Improve store login with platform detection and multi-platform support - Update billing feature gates and subscription services - Add store platform sync improvements and remove is_primary column - Add unit tests for loyalty (PIN, points, stamps, program services) - Update i18n translations across dev_tools locales Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
49 lines
1.1 KiB
Python
49 lines
1.1 KiB
Python
# app/modules/dev_tools/models/__init__.py
|
|
"""
|
|
Dev-Tools module database models.
|
|
|
|
This is the canonical location for dev-tools models. Module models are automatically
|
|
discovered and registered with SQLAlchemy's Base.metadata at startup.
|
|
|
|
Usage:
|
|
from app.modules.dev_tools.models import (
|
|
ArchitectureScan,
|
|
ArchitectureViolation,
|
|
ArchitectureRule,
|
|
ViolationAssignment,
|
|
ViolationComment,
|
|
TestRun,
|
|
TestResult,
|
|
TestCollection,
|
|
)
|
|
"""
|
|
|
|
from app.modules.dev_tools.models.architecture_scan import (
|
|
ArchitectureRule,
|
|
ArchitectureScan,
|
|
ArchitectureViolation,
|
|
ViolationAssignment,
|
|
ViolationComment,
|
|
)
|
|
from app.modules.dev_tools.models.saved_query import SavedQuery
|
|
from app.modules.dev_tools.models.test_run import (
|
|
TestCollection,
|
|
TestResult,
|
|
TestRun,
|
|
)
|
|
|
|
__all__ = [
|
|
# Architecture scan models
|
|
"ArchitectureScan",
|
|
"ArchitectureViolation",
|
|
"ArchitectureRule",
|
|
"ViolationAssignment",
|
|
"ViolationComment",
|
|
# Test run models
|
|
"TestRun",
|
|
"TestResult",
|
|
"TestCollection",
|
|
# Saved query models
|
|
"SavedQuery",
|
|
]
|