diff --git a/Webshop.Infrastructure/Migrations/20250731144311_addOrder.Designer.cs b/Webshop.Infrastructure/Migrations/20250801073120_AddHouseNumberAndTypeToAddress.Designer.cs
similarity index 99%
rename from Webshop.Infrastructure/Migrations/20250731144311_addOrder.Designer.cs
rename to Webshop.Infrastructure/Migrations/20250801073120_AddHouseNumberAndTypeToAddress.Designer.cs
index 1b71366..e06787a 100644
--- a/Webshop.Infrastructure/Migrations/20250731144311_addOrder.Designer.cs
+++ b/Webshop.Infrastructure/Migrations/20250801073120_AddHouseNumberAndTypeToAddress.Designer.cs
@@ -12,8 +12,8 @@ using Webshop.Infrastructure.Data;
namespace Webshop.Infrastructure.Migrations
{
[DbContext(typeof(ApplicationDbContext))]
- [Migration("20250731144311_addOrder")]
- partial class addOrder
+ [Migration("20250801073120_AddHouseNumberAndTypeToAddress")]
+ partial class AddHouseNumberAndTypeToAddress
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
@@ -163,10 +163,6 @@ namespace Webshop.Infrastructure.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
- b.Property("AddressType")
- .HasMaxLength(50)
- .HasColumnType("character varying(50)");
-
b.Property("City")
.IsRequired()
.HasMaxLength(100)
@@ -189,6 +185,10 @@ namespace Webshop.Infrastructure.Migrations
.HasMaxLength(100)
.HasColumnType("character varying(100)");
+ b.Property("HouseNumber")
+ .HasMaxLength(50)
+ .HasColumnType("character varying(50)");
+
b.Property("LastName")
.IsRequired()
.HasMaxLength(100)
@@ -208,9 +208,8 @@ namespace Webshop.Infrastructure.Migrations
.HasMaxLength(255)
.HasColumnType("character varying(255)");
- b.Property("Street2")
- .HasMaxLength(255)
- .HasColumnType("character varying(255)");
+ b.Property("Type")
+ .HasColumnType("integer");
b.HasKey("Id");
diff --git a/Webshop.Infrastructure/Migrations/20250731144311_addOrder.cs b/Webshop.Infrastructure/Migrations/20250801073120_AddHouseNumberAndTypeToAddress.cs
similarity index 99%
rename from Webshop.Infrastructure/Migrations/20250731144311_addOrder.cs
rename to Webshop.Infrastructure/Migrations/20250801073120_AddHouseNumberAndTypeToAddress.cs
index 17df2d0..30771d9 100644
--- a/Webshop.Infrastructure/Migrations/20250731144311_addOrder.cs
+++ b/Webshop.Infrastructure/Migrations/20250801073120_AddHouseNumberAndTypeToAddress.cs
@@ -7,7 +7,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
namespace Webshop.Infrastructure.Migrations
{
///
- public partial class addOrder : Migration
+ public partial class AddHouseNumberAndTypeToAddress : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
@@ -311,13 +311,13 @@ namespace Webshop.Infrastructure.Migrations
{
Id = table.Column(type: "uuid", nullable: false),
CustomerId = table.Column(type: "uuid", nullable: true),
- AddressType = table.Column(type: "character varying(50)", maxLength: 50, nullable: true),
Street = table.Column(type: "character varying(255)", maxLength: 255, nullable: false),
- Street2 = table.Column(type: "character varying(255)", maxLength: 255, nullable: true),
+ HouseNumber = table.Column(type: "character varying(50)", maxLength: 50, nullable: true),
City = table.Column(type: "character varying(100)", maxLength: 100, nullable: false),
- State = table.Column(type: "character varying(100)", maxLength: 100, nullable: true),
PostalCode = table.Column(type: "character varying(20)", maxLength: 20, nullable: false),
Country = table.Column(type: "character varying(100)", maxLength: 100, nullable: false),
+ Type = table.Column(type: "integer", nullable: false),
+ State = table.Column(type: "character varying(100)", maxLength: 100, nullable: true),
CompanyName = table.Column(type: "character varying(255)", maxLength: 255, nullable: true),
FirstName = table.Column(type: "character varying(100)", maxLength: 100, nullable: false),
LastName = table.Column(type: "character varying(100)", maxLength: 100, nullable: false)
diff --git a/Webshop.Infrastructure/Migrations/ApplicationDbContextModelSnapshot.cs b/Webshop.Infrastructure/Migrations/ApplicationDbContextModelSnapshot.cs
index 4c4b9f9..5b3bacb 100644
--- a/Webshop.Infrastructure/Migrations/ApplicationDbContextModelSnapshot.cs
+++ b/Webshop.Infrastructure/Migrations/ApplicationDbContextModelSnapshot.cs
@@ -160,10 +160,6 @@ namespace Webshop.Infrastructure.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
- b.Property("AddressType")
- .HasMaxLength(50)
- .HasColumnType("character varying(50)");
-
b.Property("City")
.IsRequired()
.HasMaxLength(100)
@@ -186,6 +182,10 @@ namespace Webshop.Infrastructure.Migrations
.HasMaxLength(100)
.HasColumnType("character varying(100)");
+ b.Property("HouseNumber")
+ .HasMaxLength(50)
+ .HasColumnType("character varying(50)");
+
b.Property("LastName")
.IsRequired()
.HasMaxLength(100)
@@ -205,9 +205,8 @@ namespace Webshop.Infrastructure.Migrations
.HasMaxLength(255)
.HasColumnType("character varying(255)");
- b.Property("Street2")
- .HasMaxLength(255)
- .HasColumnType("character varying(255)");
+ b.Property("Type")
+ .HasColumnType("integer");
b.HasKey("Id");