feat(01-01): add RouterConfigSnapshot/Diff/Change ORM models and tests
- Add RouterConfigSnapshot model with Transit ciphertext config_text and SHA-256 plaintext hash for deduplication - Add RouterConfigDiff model for unified diffs between snapshots - Add RouterConfigChange model for parsed semantic changes - Export all three from app.models barrel file - Add unit tests for importability, table names, columns, and types Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -9,6 +9,7 @@ from app.models.config_template import ConfigTemplate, ConfigTemplateTag, Templa
|
||||
from app.models.audit_log import AuditLog
|
||||
from app.models.maintenance_window import MaintenanceWindow
|
||||
from app.models.api_key import ApiKey
|
||||
from app.models.config_backup import RouterConfigSnapshot, RouterConfigDiff, RouterConfigChange
|
||||
|
||||
__all__ = [
|
||||
"Tenant",
|
||||
@@ -32,4 +33,7 @@ __all__ = [
|
||||
"AuditLog",
|
||||
"MaintenanceWindow",
|
||||
"ApiKey",
|
||||
"RouterConfigSnapshot",
|
||||
"RouterConfigDiff",
|
||||
"RouterConfigChange",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user