namespace ZB.MOM.WW.OtOpcUa.Configuration.Entities; /// Per-device row for multi-device drivers (Modbus, AB CIP). Optional for single-device drivers. public sealed class Device { /// /// Gets or sets the unique database row identifier for the device. /// public Guid DeviceRowId { get; set; } /// /// Gets or sets the device identifier. /// public required string DeviceId { get; set; } /// Logical FK to . public required string DriverInstanceId { get; set; } /// /// Gets or sets the device name. /// public required string Name { get; set; } /// /// Gets or sets a value indicating whether the device is enabled. /// public bool Enabled { get; set; } = true; /// Schemaless per-driver-type device config (host, port, unit ID, slot, etc.). public required string DeviceConfig { get; set; } /// Optimistic concurrency token for last-write-wins detection in the v2 live-edit model. public byte[] RowVersion { get; set; } = Array.Empty(); }