using ZB.MOM.WW.OtOpcUa.Configuration.Enums; namespace ZB.MOM.WW.OtOpcUa.Configuration.Entities; /// /// Immutable snapshot of a config artifact dispatched to every driver-role node by the /// ConfigPublishCoordinator. Replaces the v1 ConfigGeneration draft/publish /// row; the ArtifactBlob carries the SnapshotAndFlatten() output produced by /// AdminOperationsActor. /// public sealed class Deployment { public Guid DeploymentId { get; init; } = Guid.NewGuid(); public required string RevisionHash { get; init; } public DeploymentStatus Status { get; set; } = DeploymentStatus.Dispatching; public required string CreatedBy { get; init; } public DateTime CreatedAtUtc { get; init; } = DateTime.UtcNow; public byte[] ArtifactBlob { get; init; } = Array.Empty(); public byte[] RowVersion { get; set; } = Array.Empty(); public string? FailureReason { get; set; } public DateTime? SealedAtUtc { get; set; } }