2025-08-11 06:34:44 +00:00
|
|
|
using System;
|
|
|
|
|
using Volo.Abp.Domain.Entities.Auditing;
|
|
|
|
|
|
|
|
|
|
namespace Kurs.Platform.Entities;
|
|
|
|
|
|
2025-08-20 15:00:58 +00:00
|
|
|
public class Product : FullAuditedEntity<Guid>
|
2025-08-11 06:34:44 +00:00
|
|
|
{
|
|
|
|
|
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; }
|
2025-08-20 19:26:08 +00:00
|
|
|
public bool IsQuantityBased { get; set; } = false;
|
2025-08-11 06:34:44 +00:00
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|