using System; using Volo.Abp.Domain.Entities.Auditing; namespace Kurs.Platform.Entities; public class Product : FullAuditedEntity { public string Name { get; set; } public string Description { get; set; } public string Category { get; set; } public int Order { get; set; } public decimal? MonthlyPrice { get; set; } public decimal? YearlyPrice { get; set; } public bool IsQuantityBased { get; set; } = false; public string ImageUrl { get; set; } public Product() { } public Product( Guid id, string name, string description, string category, int order, decimal? monthlyPrice, decimal? yearlyPrice, bool isQuantityBased, string imageUrl ) : base(id) { Name = name; Description = description; Category = category; Order = order; MonthlyPrice = monthlyPrice; YearlyPrice = yearlyPrice; IsQuantityBased = isQuantityBased; ImageUrl = imageUrl; } }