fix: commit semantic repair changes

This commit is contained in:
2026-03-21 11:22:25 +03:00
parent b11e35b451
commit 81406bc2e2
272 changed files with 4603 additions and 1668 deletions

View File

@@ -5,7 +5,8 @@
# @SEMANTICS: database, mapping, environment, migration, sqlalchemy, sqlite
# @PURPOSE: Defines the database schema for environment metadata and database mappings using SQLAlchemy.
# @LAYER: Domain
# @RELATION: DEPENDS_ON -> [sqlalchemy]
# @RELATION: DEPENDS_ON -> sqlalchemy
#
# @INVARIANT: All primary keys are UUID strings.
# @CONSTRAINT: source_env_id and target_env_id must be valid environment IDs.
@@ -44,6 +45,7 @@ class MigrationStatus(enum.Enum):
# [DEF:Environment:Class]
# @COMPLEXITY: 3
# @PURPOSE: Represents a Superset instance environment.
# @RELATION: DEPENDS_ON -> MappingModels
class Environment(Base):
__tablename__ = "environments"
@@ -87,6 +89,7 @@ class MigrationJob(Base):
# @COMPLEXITY: 3
# @PURPOSE: Maps a universal UUID for a resource to its actual ID on a specific environment.
# @TEST_DATA: resource_mapping_record -> {'environment_id': 'prod-env-1', 'resource_type': 'chart', 'uuid': '123e4567-e89b-12d3-a456-426614174000', 'remote_integer_id': '42'}
# @RELATION: DEPENDS_ON -> MappingModels
class ResourceMapping(Base):
__tablename__ = "resource_mappings"