mig
This commit is contained in:
@@ -12,8 +12,8 @@ using Webshop.Infrastructure.Data;
|
|||||||
namespace Webshop.Infrastructure.Migrations
|
namespace Webshop.Infrastructure.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(ApplicationDbContext))]
|
[DbContext(typeof(ApplicationDbContext))]
|
||||||
[Migration("20250908092457_review")]
|
[Migration("20250908092824_review-beziehung")]
|
||||||
partial class review
|
partial class reviewbeziehung
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||||
@@ -1274,7 +1274,8 @@ namespace Webshop.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.HasOne("Webshop.Domain.Entities.Customer", "Customer")
|
b.HasOne("Webshop.Domain.Entities.Customer", "Customer")
|
||||||
.WithMany("Reviews")
|
.WithMany("Reviews")
|
||||||
.HasForeignKey("CustomerId");
|
.HasForeignKey("CustomerId")
|
||||||
|
.OnDelete(DeleteBehavior.SetNull);
|
||||||
|
|
||||||
b.HasOne("Webshop.Domain.Entities.Product", "Product")
|
b.HasOne("Webshop.Domain.Entities.Product", "Product")
|
||||||
.WithMany("Reviews")
|
.WithMany("Reviews")
|
||||||
@@ -7,7 +7,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|||||||
namespace Webshop.Infrastructure.Migrations
|
namespace Webshop.Infrastructure.Migrations
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public partial class review : Migration
|
public partial class reviewbeziehung : Migration
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
@@ -588,7 +588,8 @@ namespace Webshop.Infrastructure.Migrations
|
|||||||
name: "FK_Reviews_Customers_CustomerId",
|
name: "FK_Reviews_Customers_CustomerId",
|
||||||
column: x => x.CustomerId,
|
column: x => x.CustomerId,
|
||||||
principalTable: "Customers",
|
principalTable: "Customers",
|
||||||
principalColumn: "Id");
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.SetNull);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_Reviews_Products_ProductId",
|
name: "FK_Reviews_Products_ProductId",
|
||||||
column: x => x.ProductId,
|
column: x => x.ProductId,
|
||||||
@@ -1271,7 +1271,8 @@ namespace Webshop.Infrastructure.Migrations
|
|||||||
{
|
{
|
||||||
b.HasOne("Webshop.Domain.Entities.Customer", "Customer")
|
b.HasOne("Webshop.Domain.Entities.Customer", "Customer")
|
||||||
.WithMany("Reviews")
|
.WithMany("Reviews")
|
||||||
.HasForeignKey("CustomerId");
|
.HasForeignKey("CustomerId")
|
||||||
|
.OnDelete(DeleteBehavior.SetNull);
|
||||||
|
|
||||||
b.HasOne("Webshop.Domain.Entities.Product", "Product")
|
b.HasOne("Webshop.Domain.Entities.Product", "Product")
|
||||||
.WithMany("Reviews")
|
.WithMany("Reviews")
|
||||||
|
|||||||
Reference in New Issue
Block a user