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

namespace Monitoring.Features.FireDepartmentAccesses;

public record FireDepartmentAccessModel(
    Guid Id,
    Guid DepartmentId,
    Guid UserId
)
{
    public static readonly Expression<Func<FireDepartmentAccess, FireDepartmentAccessModel>> FromEntity = e => new FireDepartmentAccessModel(
        e.Id.Value,
        e.DepartmentId.Value,
        e.UserId.Value
    );
}
