sonderangebot artikel

This commit is contained in:
Tizian.Breuch
2025-08-12 14:32:47 +02:00
parent 3e68caf33c
commit 169c1aa2fd
11 changed files with 85 additions and 11 deletions

View File

@@ -33,9 +33,6 @@ namespace Webshop.Domain.Entities
public decimal? Height { get; set; }
public decimal? Length { get; set; }
// << ENTFERNT: ImageUrl wird durch Images ersetzt >>
// public string? ImageUrl { get; set; }
[Required, MaxLength(255)]
public string Slug { get; set; } = string.Empty;
[Required]
@@ -45,13 +42,16 @@ namespace Webshop.Domain.Entities
public Guid? SupplierId { get; set; }
public decimal? PurchasePrice { get; set; }
// << NEUE EIGENSCHAFTEN FÜR SONDERANGEBOTE >>
public bool IsFeatured { get; set; } = false;
public int FeaturedDisplayOrder { get; set; } = 0;
// << ENDE NEUE EIGENSCHAFTEN >>
public virtual Supplier? Supplier { get; set; }
public virtual ICollection<ProductVariant> Variants { get; set; } = new List<ProductVariant>();
public virtual ICollection<Review> Reviews { get; set; } = new List<Review>();
public virtual ICollection<ProductDiscount> ProductDiscounts { get; set; } = new List<ProductDiscount>();
public virtual ICollection<Productcategorie> Productcategories { get; set; } = new List<Productcategorie>();
// << NEU: Navigation Property zu Bildern >>
public virtual ICollection<ProductImage> Images { get; set; } = new List<ProductImage>();
}
}