sonderangebot artikel

This commit is contained in:
Tizian.Breuch
2025-08-12 14:32:47 +02:00
parent 3e68caf33c
commit 169c1aa2fd
11 changed files with 85 additions and 11 deletions

View File

@@ -12,8 +12,8 @@ using Webshop.Infrastructure.Data;
namespace Webshop.Infrastructure.Migrations
{
[DbContext(typeof(ApplicationDbContext))]
[Migration("20250812113218_checkout")]
partial class checkout
[Migration("20250812123244_featureartikel")]
partial class featureartikel
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
@@ -576,6 +576,9 @@ namespace Webshop.Infrastructure.Migrations
.HasMaxLength(4000)
.HasColumnType("character varying(4000)");
b.Property<int>("FeaturedDisplayOrder")
.HasColumnType("integer");
b.Property<decimal?>("Height")
.HasPrecision(18, 2)
.HasColumnType("numeric(18,2)");
@@ -583,6 +586,9 @@ namespace Webshop.Infrastructure.Migrations
b.Property<bool>("IsActive")
.HasColumnType("boolean");
b.Property<bool>("IsFeatured")
.HasColumnType("boolean");
b.Property<bool>("IsInStock")
.HasColumnType("boolean");

View File

@@ -7,7 +7,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
namespace Webshop.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class checkout : Migration
public partial class featureartikel : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
@@ -460,7 +460,9 @@ namespace Webshop.Infrastructure.Migrations
CreatedDate = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false),
LastModifiedDate = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: true),
SupplierId = table.Column<Guid>(type: "uuid", nullable: true),
PurchasePrice = table.Column<decimal>(type: "numeric(18,2)", precision: 18, scale: 2, nullable: true)
PurchasePrice = table.Column<decimal>(type: "numeric(18,2)", precision: 18, scale: 2, nullable: true),
IsFeatured = table.Column<bool>(type: "boolean", nullable: false),
FeaturedDisplayOrder = table.Column<int>(type: "integer", nullable: false)
},
constraints: table =>
{

View File

@@ -573,6 +573,9 @@ namespace Webshop.Infrastructure.Migrations
.HasMaxLength(4000)
.HasColumnType("character varying(4000)");
b.Property<int>("FeaturedDisplayOrder")
.HasColumnType("integer");
b.Property<decimal?>("Height")
.HasPrecision(18, 2)
.HasColumnType("numeric(18,2)");
@@ -580,6 +583,9 @@ namespace Webshop.Infrastructure.Migrations
b.Property<bool>("IsActive")
.HasColumnType("boolean");
b.Property<bool>("IsFeatured")
.HasColumnType("boolean");
b.Property<bool>("IsInStock")
.HasColumnType("boolean");