using System.Linq.Expressions;

using Monitoring.Core.Domain;

namespace Monitoring.Models;

public record PhotoModel(
	Guid Id,
	string Name,
	string Description,
	Guid AssetId,
	string Base64
)
{
	internal static readonly Expression<Func<Photo, PhotoModel>> Projection = photo => new PhotoModel(
		photo.Id,
		photo.Name,
		photo.Description,
		photo.AssetId.Value,
		photo.Base64
	);
}