Add ImagePath column to ManualPayments table in CMS schema
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 1m52s
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 1m52s
This commit is contained in:
+5
@@ -37,4 +37,9 @@ public class CreateManualPaymentCommand : IRequest<long>
|
||||
/// مسیر تصویر فیش واریزی (اختیاری)
|
||||
/// </summary>
|
||||
public string? ImagePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// شناسه سند در FMS (اختیاری)
|
||||
/// </summary>
|
||||
public long? ImageDocumentId { get; set; }
|
||||
}
|
||||
|
||||
+1
@@ -98,6 +98,7 @@ public class CreateManualPaymentCommandHandler : IRequestHandler<CreateManualPay
|
||||
Description = request.Description,
|
||||
ReferenceNumber = request.ReferenceNumber,
|
||||
ImagePath = request.ImagePath,
|
||||
ImageDocumentId = request.ImageDocumentId,
|
||||
Status = ManualPaymentStatus.Approved,
|
||||
RequestedBy = adminUserId,
|
||||
ApprovedBy = adminUserId,
|
||||
|
||||
@@ -43,6 +43,11 @@ public class ManualPayment : BaseAuditableEntity
|
||||
/// </summary>
|
||||
public string? ImagePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// شناسه سند در FMS (اختیاری)
|
||||
/// </summary>
|
||||
public long? ImageDocumentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// وضعیت تایید
|
||||
/// </summary>
|
||||
|
||||
+3945
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,30 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace CMSMicroservice.Infrastructure.Persistence.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class u19 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ImagePath",
|
||||
schema: "CMS",
|
||||
table: "ManualPayments",
|
||||
type: "nvarchar(max)",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ImagePath",
|
||||
schema: "CMS",
|
||||
table: "ManualPayments");
|
||||
}
|
||||
}
|
||||
}
|
||||
+3
@@ -1879,6 +1879,9 @@ namespace CMSMicroservice.Infrastructure.Persistence.Migrations
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("nvarchar(1000)");
|
||||
|
||||
b.Property<string>("ImagePath")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<bool>("IsDeleted")
|
||||
.HasColumnType("bit");
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<Version>0.0.165</Version>
|
||||
<Version>0.0.167</Version>
|
||||
<DebugType>None</DebugType>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
|
||||
|
||||
@@ -77,6 +77,7 @@ message CreateManualPaymentRequest
|
||||
string description = 4;
|
||||
google.protobuf.StringValue reference_number = 5;
|
||||
google.protobuf.StringValue image_path = 6;
|
||||
google.protobuf.Int64Value image_document_id = 7;
|
||||
}
|
||||
|
||||
message CreateManualPaymentResponse
|
||||
@@ -135,6 +136,7 @@ message ManualPaymentModel
|
||||
google.protobuf.Int64Value transaction_id = 18;
|
||||
google.protobuf.Timestamp created = 19;
|
||||
google.protobuf.StringValue image_path = 20;
|
||||
google.protobuf.Int64Value image_document_id = 21;
|
||||
}
|
||||
|
||||
message ProcessManualMembershipPaymentRequest
|
||||
|
||||
Reference in New Issue
Block a user