using System.ComponentModel.DataAnnotations;
namespace ZB.MOM.WW.CBDDC.Persistence.BLite.Entities;
///
/// BLite entity representing a remote peer configuration.
///
public class RemotePeerEntity
{
///
/// Gets or sets the unique identifier for this entity (technical key).
/// Auto-generated GUID string.
///
[Key]
public string Id { get; set; } = "";
///
/// Gets or sets the unique identifier for the remote peer node (business key).
///
public string NodeId { get; set; } = "";
///
/// Gets or sets the network address of the remote peer (hostname:port).
///
public string Address { get; set; } = "";
///
/// Gets or sets the type of the peer (0=LanDiscovered, 1=StaticRemote, 2=CloudRemote).
///
public int Type { get; set; }
///
/// Gets or sets whether this peer is enabled for synchronization.
///
public bool IsEnabled { get; set; } = true;
///
/// Gets or sets the collection interests as a JSON string.
/// Use empty string instead of null for BLite compatibility.
///
public string InterestsJson { get; set; } = "";
}