Add delivery tracking fields to UserOrder entity

This commit is contained in:
masoodafar-web
2025-11-27 06:39:47 +03:30
parent 23ac9f77a1
commit 32b7cb3238
14 changed files with 1493 additions and 6 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,55 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace CMSMicroservice.Infrastructure.Persistence.Migrations
{
/// <inheritdoc />
public partial class u12 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "DeliveryDescription",
schema: "CMS",
table: "UserOrders",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "DeliveryStatus",
schema: "CMS",
table: "UserOrders",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<string>(
name: "TrackingCode",
schema: "CMS",
table: "UserOrders",
type: "nvarchar(max)",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "DeliveryDescription",
schema: "CMS",
table: "UserOrders");
migrationBuilder.DropColumn(
name: "DeliveryStatus",
schema: "CMS",
table: "UserOrders");
migrationBuilder.DropColumn(
name: "TrackingCode",
schema: "CMS",
table: "UserOrders");
}
}
}

View File

@@ -851,6 +851,12 @@ namespace CMSMicroservice.Infrastructure.Persistence.Migrations
b.Property<string>("CreatedBy")
.HasColumnType("nvarchar(max)");
b.Property<string>("DeliveryDescription")
.HasColumnType("nvarchar(max)");
b.Property<int>("DeliveryStatus")
.HasColumnType("int");
b.Property<bool>("IsDeleted")
.HasColumnType("bit");
@@ -872,6 +878,9 @@ namespace CMSMicroservice.Infrastructure.Persistence.Migrations
b.Property<int>("PaymentStatus")
.HasColumnType("int");
b.Property<string>("TrackingCode")
.HasColumnType("nvarchar(max)");
b.Property<long?>("TransactionId")
.HasColumnType("bigint");