erp-platform/api/src/Kurs.Platform.Domain/Entities/Product.cs

43 lines
1 KiB
C#
Raw Normal View History

2025-08-11 06:34:44 +00:00
using System;
using Volo.Abp.Domain.Entities.Auditing;
namespace Kurs.Platform.Entities;
public class Product : FullAuditedAggregateRoot<Guid>
{
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; }
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;
}
}