/// <see cref="MyOffice.Data.Models.Currencies.Currency"/>
namespace MyOffice.Services.Currency.Domain;

using AutoMapper;
using MyOffice.Data.Models.Currencies;
using MyOffice.Services.Account.Domain;

public class CurrencyDto
{
	public Guid Id { get; set; }
	public string CurrencyGlobalId { get; set; } = null!;
	public CurrencyGlobalDto? CurrencyGlobal { get; set; }
	public Guid UserId { get; set; }
	public UserDto? User { get; set; }

	public string Name { get; set; } = null!;
	public string ShortName { get; set; } = null!;
	public List<CurrencyRateDto>? Rates { get; set; }

	public int? CurrentRateId { get; set; }
	public CurrencyRateDto? CurrentRate { get; set; }

	public bool IsPrimary { get; set; }
}

public class CurrencyDtoProfile: Profile
{
	public CurrencyDtoProfile()
	{
		CreateMap<Currency, CurrencyDto>();
	}
}