Added the Payment details in tenant subscription table
This commit is contained in:
parent
78575337ec
commit
1a360447cd
6785
Marco.Pms.DataAccess/Migrations/20251027125659_Added_PaymentDetails_In_TenantSubscription_Table.Designer.cs
generated
Normal file
6785
Marco.Pms.DataAccess/Migrations/20251027125659_Added_PaymentDetails_In_TenantSubscription_Table.Designer.cs
generated
Normal file
File diff suppressed because one or more lines are too long
@ -0,0 +1,52 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -4706,6 +4706,9 @@ 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)");
|
||||
|
||||
@ -4730,6 +4733,8 @@ namespace Marco.Pms.DataAccess.Migrations
|
||||
|
||||
b.HasIndex("CurrencyId");
|
||||
|
||||
b.HasIndex("PaymentDetailId");
|
||||
|
||||
b.HasIndex("PlanId");
|
||||
|
||||
b.HasIndex("StatusId");
|
||||
@ -6657,6 +6662,12 @@ 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")
|
||||
@ -6683,6 +6694,8 @@ namespace Marco.Pms.DataAccess.Migrations
|
||||
|
||||
b.Navigation("Currency");
|
||||
|
||||
b.Navigation("PaymentDetail");
|
||||
|
||||
b.Navigation("Plan");
|
||||
|
||||
b.Navigation("Status");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user