using CSharpFunctionalExtensions;

using Monitoring.Core.Domain.AccessPrimitives;

namespace GeoRitmMover.Mover.Data;
public class AccessMap : Entity<Guid>
{
	public record UserInventory(int UserId, int InventoryId);
	public UserInventory From { get; } = default!;
	public AccessId To { get; } = default!;

	private AccessMap(Guid id, UserInventory from, AccessId to)
	{
		Id = id;
		From = from;
		To = to;
	}
	protected AccessMap() : base() { }

	public static AccessMap Create(Guid id, UserInventory from, AccessId to)
	{
		return new AccessMap(id, from, to);
	}
}
