Add AgencyMarginPercent and RetailPrice to PriceListItems

This commit is contained in:
2026-09-09 16:32:20 +05:30
parent 617c0713a1
commit 9bb4c52efb
4 changed files with 4148 additions and 0 deletions
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,53 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Distribution.Migrations
{
/// <inheritdoc />
public partial class AddRetailPriceAndAgencyMargin : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<decimal>(
name: "AgencyMarginPercent",
table: "PriceListItems",
type: "decimal(65,30)",
nullable: true);
migrationBuilder.AddColumn<decimal>(
name: "RetailPrice",
table: "PriceListItems",
type: "decimal(65,30)",
nullable: true);
migrationBuilder.UpdateData(
table: "PriceListItems",
keyColumn: "Id",
keyValue: new Guid("40000000-0000-0000-0000-000000000001"),
columns: new[] { "AgencyMarginPercent", "RetailPrice" },
values: new object[] { null, null });
migrationBuilder.UpdateData(
table: "PriceListItems",
keyColumn: "Id",
keyValue: new Guid("40000000-0000-0000-0000-000000000002"),
columns: new[] { "AgencyMarginPercent", "RetailPrice" },
values: new object[] { null, null });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "AgencyMarginPercent",
table: "PriceListItems");
migrationBuilder.DropColumn(
name: "RetailPrice",
table: "PriceListItems");
}
}
}
@@ -1023,6 +1023,9 @@ namespace Distribution.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property<decimal?>("AgencyMarginPercent")
.HasColumnType("decimal(65,30)");
b.Property<DateTime>("CreatedAt")
.HasColumnType("datetime(6)");
@@ -1041,6 +1044,9 @@ namespace Distribution.Migrations
b.Property<decimal>("Price")
.HasColumnType("decimal(65,30)");
b.Property<decimal?>("RetailPrice")
.HasColumnType("decimal(65,30)");
b.HasKey("Id");
b.HasIndex("FK_ItemId");