semantics
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# [DEF:GitModels:Module]
|
||||
# #region GitModels [TYPE Module]
|
||||
|
||||
import enum
|
||||
from datetime import datetime
|
||||
@@ -21,9 +21,8 @@ class SyncStatus(str, enum.Enum):
|
||||
DIRTY = "DIRTY"
|
||||
CONFLICT = "CONFLICT"
|
||||
|
||||
# [DEF:GitServerConfig:Class]
|
||||
# @COMPLEXITY: 1
|
||||
# @PURPOSE: Configuration for a Git server connection.
|
||||
# #region GitServerConfig [C:1] [TYPE Class]
|
||||
# @BRIEF Configuration for a Git server connection.
|
||||
class GitServerConfig(Base):
|
||||
__tablename__ = "git_server_configs"
|
||||
|
||||
@@ -36,11 +35,10 @@ class GitServerConfig(Base):
|
||||
default_branch = Column(String(255), default="main")
|
||||
status = Column(Enum(GitStatus), default=GitStatus.UNKNOWN)
|
||||
last_validated = Column(DateTime, default=datetime.utcnow)
|
||||
# [/DEF:GitServerConfig:Class]
|
||||
# #endregion GitServerConfig
|
||||
|
||||
# [DEF:GitRepository:Class]
|
||||
# @COMPLEXITY: 1
|
||||
# @PURPOSE: Tracking for a local Git repository linked to a dashboard.
|
||||
# #region GitRepository [C:1] [TYPE Class]
|
||||
# @BRIEF Tracking for a local Git repository linked to a dashboard.
|
||||
class GitRepository(Base):
|
||||
__tablename__ = "git_repositories"
|
||||
|
||||
@@ -51,11 +49,10 @@ class GitRepository(Base):
|
||||
local_path = Column(String(255), nullable=False)
|
||||
current_branch = Column(String(255), default="dev")
|
||||
sync_status = Column(Enum(SyncStatus), default=SyncStatus.CLEAN)
|
||||
# [/DEF:GitRepository:Class]
|
||||
# #endregion GitRepository
|
||||
|
||||
# [DEF:DeploymentEnvironment:Class]
|
||||
# @COMPLEXITY: 1
|
||||
# @PURPOSE: Target Superset environments for dashboard deployment.
|
||||
# #region DeploymentEnvironment [C:1] [TYPE Class]
|
||||
# @BRIEF Target Superset environments for dashboard deployment.
|
||||
class DeploymentEnvironment(Base):
|
||||
__tablename__ = "deployment_environments"
|
||||
|
||||
@@ -64,6 +61,6 @@ class DeploymentEnvironment(Base):
|
||||
superset_url = Column(String(255), nullable=False)
|
||||
superset_token = Column(String(255), nullable=False)
|
||||
is_active = Column(Boolean, default=True)
|
||||
# [/DEF:DeploymentEnvironment:Class]
|
||||
# #endregion DeploymentEnvironment
|
||||
|
||||
# [/DEF:GitModels:Module]
|
||||
# #endregion GitModels
|
||||
|
||||
Reference in New Issue
Block a user