diff --git a/ComputerShopDataModels/Enums/OrderStatus.cs b/ComputerShopDataModels/Enums/OrderStatus.cs index bd45fbf..41c9c82 100644 --- a/ComputerShopDataModels/Enums/OrderStatus.cs +++ b/ComputerShopDataModels/Enums/OrderStatus.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace ComputerShopDataModels.Enums +namespace ComputerShopDataModels.Enums { public enum OrderStatus { diff --git a/ComputerShopDataModels/Models/IAssemblyModel.cs b/ComputerShopDataModels/Models/IAssemblyModel.cs new file mode 100644 index 0000000..fa6bdcb --- /dev/null +++ b/ComputerShopDataModels/Models/IAssemblyModel.cs @@ -0,0 +1,33 @@ +namespace ComputerShopDataModels.Models +{ + /// + /// Сборка + /// + public interface IAssemblyModel : IId + { + /// + /// Пользователь, который создал сборку + /// + int UserId { get; } + + /// + /// Название сборки + /// + string AssemblyName { get; } + + /// + /// Стоимость + /// + double Cost { get; } + + /// + /// Категория + /// + string Category { get; } + + /// + /// Список комплектующих + /// + Dictionary AssemblyComponents { get; } + } +} diff --git a/ComputerShopDataModels/Models/IComponentModel.cs b/ComputerShopDataModels/Models/IComponentModel.cs new file mode 100644 index 0000000..87e3b53 --- /dev/null +++ b/ComputerShopDataModels/Models/IComponentModel.cs @@ -0,0 +1,23 @@ +namespace ComputerShopDataModels.Models +{ + /// + /// Комплектующая + /// + public interface IComponentModel : IId + { + /// + /// Пользователь, который добавил комплектующую + /// + int UserId { get; } + + /// + /// Название комплектующей + /// + string ComponentName { get; } + + /// + /// Цена комплектующей + /// + double Cost { get; } + } +} diff --git a/ComputerShopDataModels/Models/IProductModel.cs b/ComputerShopDataModels/Models/IProductModel.cs new file mode 100644 index 0000000..65fa951 --- /dev/null +++ b/ComputerShopDataModels/Models/IProductModel.cs @@ -0,0 +1,38 @@ +namespace ComputerShopDataModels.Models +{ + /// + /// Товар + /// + public interface IProductModel : IId + { + /// + /// Пользователь, который добавил товар + /// + int UserId { get; } + + /// + /// Название товара + /// + string ProductName { get; } + + /// + /// Стоимость товара + /// + double Cost { get; } + + /// + /// Гарантия + /// + int Warranty { get; } + + /// + /// Список комплектующих + /// + Dictionary ProductComponents { get; } + + /// + /// Привязка товара к партии товаров + /// + int? ShipmentId { get; } + } +}