revert 1a360447cd54ae92c981323e5895602f8e24f17f

revert Added the Payment details in tenant subscription table
This commit is contained in:
ashutosh.nehete 2025-10-28 05:23:22 +00:00
parent bd839b12f9
commit 4e171e8ca3
3 changed files with 0 additions and 6850 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,52 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Marco.Pms.DataAccess.Migrations
{
/// <inheritdoc />
public partial class Added_PaymentDetails_In_TenantSubscription_Table : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<Guid>(
name: "PaymentDetailId",
table: "TenantSubscriptions",
type: "char(36)",
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
collation: "ascii_general_ci");
migrationBuilder.CreateIndex(
name: "IX_TenantSubscriptions_PaymentDetailId",
table: "TenantSubscriptions",
column: "PaymentDetailId");
migrationBuilder.AddForeignKey(
name: "FK_TenantSubscriptions_PaymentDetails_PaymentDetailId",
table: "TenantSubscriptions",
column: "PaymentDetailId",
principalTable: "PaymentDetails",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_TenantSubscriptions_PaymentDetails_PaymentDetailId",
table: "TenantSubscriptions");
migrationBuilder.DropIndex(
name: "IX_TenantSubscriptions_PaymentDetailId",
table: "TenantSubscriptions");
migrationBuilder.DropColumn(
name: "PaymentDetailId",
table: "TenantSubscriptions");
}
}
}

View File

@ -4706,9 +4706,6 @@ namespace Marco.Pms.DataAccess.Migrations
b.Property<DateTime>("NextBillingDate")
.HasColumnType("datetime(6)");
b.Property<Guid>("PaymentDetailId")
.HasColumnType("char(36)");
b.Property<Guid>("PlanId")
.HasColumnType("char(36)");
@ -4733,8 +4730,6 @@ namespace Marco.Pms.DataAccess.Migrations
b.HasIndex("CurrencyId");
b.HasIndex("PaymentDetailId");
b.HasIndex("PlanId");
b.HasIndex("StatusId");
@ -6662,12 +6657,6 @@ namespace Marco.Pms.DataAccess.Migrations
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Marco.Pms.Model.PaymentGetway.PaymentDetail", "PaymentDetail")
.WithMany()
.HasForeignKey("PaymentDetailId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Marco.Pms.Model.TenantModels.SubscriptionPlanDetails", "Plan")
.WithMany()
.HasForeignKey("PlanId")
@ -6694,8 +6683,6 @@ namespace Marco.Pms.DataAccess.Migrations
b.Navigation("Currency");
b.Navigation("PaymentDetail");
b.Navigation("Plan");
b.Navigation("Status");