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
@@ -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");
}
}
}