using System.Diagnostics.CodeAnalysis; using ZeroFramework.DeviceCenter.Domain.Entities; namespace ZeroFramework.DeviceCenter.Domain.Aggregates.DeviceAggregate { public class DeviceGroup : BaseAggregateRoot, IMultiTenant { /// /// 分组名称 /// [AllowNull] public string Name { get; set; } /// /// 备注描述 /// public string? Remark { get; set; } /// /// 创建时间 /// public DateTimeOffset CreationTime { get; set; } /// /// 父组编号 /// public int? ParentId { get; set; } /// /// 父组实体 /// public DeviceGroup? Parent { get; set; } /// /// 子组列表 /// public List? Children { get; set; } /// /// 设备列表 /// public List? Devices { get; set; } /// /// 租户编号 /// public Guid? TenantId { get; set; } } }