fix
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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; }
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace MyOffice.Data.Models.Currencies;
|
||||
|
||||
using MyOffice.Data.Models.Accounts;
|
||||
|
||||
public class CurrencyGlobal
|
||||
{
|
||||
public string Id { get; set; } = null!;
|
||||
public string Name { get; set; } = null!;
|
||||
public string Symbol { get; set; } = null!;
|
||||
public int DefaultQuantity { get; set; }
|
||||
public IEnumerable<Currency>? Currencies { get; set; }
|
||||
public IEnumerable<Account>? Accounts { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace MyOffice.Data.Models.Currencies;
|
||||
|
||||
public class CurrencyRate
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public Guid CurrencyId { get; set; }
|
||||
public Currency? Currency { get; set; }
|
||||
public DateTime DateTime { get; set; }
|
||||
public int Quantity { get; set; }
|
||||
public decimal Rate { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user