This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using LiteCharms.Features.Shop.Customers.Models;
|
||||
using LiteCharms.Features.Shop.Customers.Entities;
|
||||
|
||||
namespace LiteCharms.Features.Shop.Leads.Entities;
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ public class LeadConfiguration : IEntityTypeConfiguration<Lead>
|
||||
builder.Property(f => f.AttributionHash).IsRequired(true);
|
||||
|
||||
builder.HasOne(f => f.Customer)
|
||||
.WithMany()
|
||||
.WithMany(f => f.Leads)
|
||||
.HasForeignKey(f => f.CustomerId)
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user