namespace MyOffice.Data.Models.Currencies;

using MyOffice.Data.Models.Users;

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

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

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

	public bool IsPrimary { get; set; }
}