2023-04-01 13:12:37 +04:00
|
|
|
|
using HardwareShopDataModels.Enums;
|
2023-04-01 12:10:46 +04:00
|
|
|
|
|
|
|
|
|
namespace HardwareShopDataModels.Models
|
|
|
|
|
{
|
|
|
|
|
public interface IPurchaseModel : IId
|
|
|
|
|
{
|
|
|
|
|
decimal Sum { get; }
|
|
|
|
|
|
2023-04-01 12:37:25 +04:00
|
|
|
|
PurchaseStatus PurchaseStatus { get; }
|
2023-04-01 12:10:46 +04:00
|
|
|
|
|
|
|
|
|
//через "?" обозначается что поле может быть null
|
|
|
|
|
DateTime? DatePurchase { get; }
|
|
|
|
|
|
2023-04-01 16:34:06 +04:00
|
|
|
|
int UserId { get; }
|
2023-04-01 12:10:46 +04:00
|
|
|
|
|
|
|
|
|
Dictionary<int, (IBuildModel, int)>? PurchaseBuilds { get; }
|
|
|
|
|
|
|
|
|
|
Dictionary<int, (IGoodModel, int)> PurchaseGoods { get; }
|
|
|
|
|
}
|
|
|
|
|
}
|