Stable run on Notification creation

This commit is contained in:
Khwezi Mngoma
2026-05-14 02:46:07 +02:00
parent 134d8429c0
commit 2610275bef
34 changed files with 2199 additions and 223 deletions
@@ -6,11 +6,11 @@ public class ShoppingCartItemConfiguration : IEntityTypeConfiguration<ShoppingCa
{
public void Configure(EntityTypeBuilder<ShoppingCartItem> builder)
{
builder.ToTable(nameof(ShoppingCartItem));
builder.ToTable("ShoppingCartItems");
builder.HasKey(f => f.Id);
builder.Property(f => f.CreatedAt).IsRequired().ValueGeneratedOnAdd().HasDefaultValueSql("now()");
builder.Property(f => f.UpdatedAt).IsRequired(false);
builder.Property(f => f.UpdatedAt).IsRequired(false).HasDefaultValueSql(null);
builder.Property(f => f.Quantity).IsRequired().HasDefaultValue(1);
builder.Property(f => f.ShoppingCartId).IsRequired();
builder.Property(f => f.ProductPriceId).IsRequired();