using CSharpFunctionalExtensions;

using Monitoring.Core.Domain.UserPrimitives;

namespace GeoRitmMover.Mover.Data;
public class UserMap : Entity<Guid>
{
	public int From { get; }
	public UserId To { get; } = default!;

	private UserMap(Guid id, int from, UserId to)
	{
		Id = id;
		From = from;
		To = to;
	}
	protected UserMap() : base() { }

	public static UserMap Create(Guid id, int from, UserId to)
	{
		return new UserMap(id, from, to);
	}
}
