{
public class Product
{
public int Id { get; set; }
public int CategoryId { get; set; }
public string Name { get; set; } = null!;
public string? Description { get; set; }
public string? ImagePath { get; set; }
public bool IsDeleted { get; set; }
public int? CreateUserId { get; set; }
public DateTime? CreatedAt { get; set; }
public int? UpdateUserId { get; set; }
public DateTime? UpdatedAt { get; set; }
public Category Category { get; set; }
public AdminUser? CreatedBy { get; set; }
public AdminUser? UpdatedBy { get; set; }
public ICollection<ProductPrice> Prices { get; set; } = new List<ProductPrice>();
}
}
{
public class Product
{
public int Id { get; set; }
public int CategoryId { get; set; }
public string Name { get; set; } = null!;
public string? Description { get; set; }
public string? ImagePath { get; set; }
public bool IsDeleted { get; set; }
public int? CreateUserId { get; set; }
public DateTime? CreatedAt { get; set; }
public int? UpdateUserId { get; set; }
public DateTime? UpdatedAt { get; set; }
public Category Category { get; set; }
public AdminUser? CreatedBy { get; set; }
public AdminUser? UpdatedBy { get; set; }
public ICollection<ProductPrice> Prices { get; set; } = new List<ProductPrice>();
}
}