migration

This commit is contained in:
Tizian.Breuch
2025-07-29 20:41:04 +02:00
parent 6fc6aaef3e
commit 9e6f668752
4 changed files with 22 additions and 10 deletions

View File

@@ -12,7 +12,7 @@ using Webshop.Infrastructure.Data;
namespace Webshop.Infrastructure.Migrations
{
[DbContext(typeof(ApplicationDbContext))]
[Migration("20250729160557_InitialCreate")]
[Migration("20250729184055_InitialCreate")]
partial class InitialCreate
{
/// <inheritdoc />
@@ -521,6 +521,9 @@ namespace Webshop.Infrastructure.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property<string>("Configuration")
.HasColumnType("jsonb");
b.Property<string>("Description")
.HasMaxLength(500)
.HasColumnType("character varying(500)");
@@ -533,10 +536,8 @@ namespace Webshop.Infrastructure.Migrations
.HasMaxLength(100)
.HasColumnType("character varying(100)");
b.Property<string>("PaymentGatewayType")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("character varying(50)");
b.Property<int>("PaymentGatewayType")
.HasColumnType("integer");
b.Property<decimal?>("ProcessingFee")
.HasPrecision(18, 2)

View File

@@ -67,7 +67,8 @@ namespace Webshop.Infrastructure.Migrations
Name = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: false),
Description = table.Column<string>(type: "character varying(500)", maxLength: 500, nullable: true),
IsActive = table.Column<bool>(type: "boolean", nullable: false),
PaymentGatewayType = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: false),
PaymentGatewayType = table.Column<int>(type: "integer", nullable: false),
Configuration = table.Column<string>(type: "jsonb", nullable: true),
ProcessingFee = table.Column<decimal>(type: "numeric(18,2)", precision: 18, scale: 2, nullable: true)
},
constraints: table =>

View File

@@ -518,6 +518,9 @@ namespace Webshop.Infrastructure.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property<string>("Configuration")
.HasColumnType("jsonb");
b.Property<string>("Description")
.HasMaxLength(500)
.HasColumnType("character varying(500)");
@@ -530,10 +533,8 @@ namespace Webshop.Infrastructure.Migrations
.HasMaxLength(100)
.HasColumnType("character varying(100)");
b.Property<string>("PaymentGatewayType")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("character varying(50)");
b.Property<int>("PaymentGatewayType")
.HasColumnType("integer");
b.Property<decimal?>("ProcessingFee")
.HasPrecision(18, 2)