using System.ComponentModel.DataAnnotations; using eprintServer.Enums; using eprintServer.DTOs; namespace eprintServer.Requests { public class CreateSellableProductRequest { public string? ProductNameEN { get; set; } = string.Empty; public string? ProductNameAR { get; set; } = string.Empty; [Required] [Range(0.0, double.MaxValue)] public double Price { get; set; } [Required] [Range(0.0, double.MaxValue)] public double StockQuantity { get; set; } [StringLength(2000)] public string? DescriptionAR { get; set; } = string.Empty; [StringLength(2000)] public string? DescriptionEN { get; set; } = string.Empty; public SellableProductStatusEnum Status { get; set; } = SellableProductStatusEnum.Active; [Required(ErrorMessage = "CategoryId is required.")] public long CategoryId { get; set; } public List? Names { get; set; } public List? Descriptions { get; set; } } }