using System.Linq.Expressions;
using Monitoring.Core.Domain.AssetGroupManagement;

namespace Monitoring.Models;

public record AssetGroupModel(
	Guid Id,
	string Name,
	Guid OrganizationId,
	Guid? ParentId,
	bool HasPBX
)
{
	public static readonly Expression<Func<AssetGroup, AssetGroupModel>> Projection = x =>
		new(x.Id.Value, x.Name.Value, x.OrganizationId.Value, x.ParentId!.Value, x.HasPBX);
}
