Test_IRC_Net8
he 2025-11-28 17:27:12 +08:00
parent c77682a9ad
commit 2ed9595186
3 changed files with 21412 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,51 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace IRaCIS.Core.Infra.EFCore.Migrations
{
/// <inheritdoc />
public partial class EmailReSendLog : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "EmailReSendLog",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
MainMailMessageId = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
ReMailMessageId = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
CreateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
UpdateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_EmailReSendLog", x => x.Id);
table.ForeignKey(
name: "FK_EmailReSendLog_User_CreateUserId",
column: x => x.CreateUserId,
principalTable: "User",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
},
comment: "邮件重发日志");
migrationBuilder.CreateIndex(
name: "IX_EmailReSendLog_CreateUserId",
table: "EmailReSendLog",
column: "CreateUserId");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "EmailReSendLog");
}
}
}

View File

@ -2592,6 +2592,43 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
});
});
modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailReSendLog", b =>
{
b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier");
b.Property<DateTime>("CreateTime")
.HasColumnType("datetime2");
b.Property<Guid>("CreateUserId")
.HasColumnType("uniqueidentifier");
b.Property<string>("MainMailMessageId")
.IsRequired()
.HasMaxLength(400)
.HasColumnType("nvarchar(400)");
b.Property<string>("ReMailMessageId")
.IsRequired()
.HasMaxLength(400)
.HasColumnType("nvarchar(400)");
b.Property<DateTime>("UpdateTime")
.HasColumnType("datetime2");
b.Property<Guid>("UpdateUserId")
.HasColumnType("uniqueidentifier");
b.HasKey("Id");
b.HasIndex("CreateUserId");
b.ToTable("EmailReSendLog", t =>
{
t.HasComment("邮件重发日志");
});
});
modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailRecipientLog", b =>
{
b.Property<Guid>("Id")
@ -16741,6 +16778,17 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.Navigation("EmailNoticeConfig");
});
modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailReSendLog", b =>
{
b.HasOne("IRaCIS.Core.Domain.Models.UserRole", "CreateUserRole")
.WithMany()
.HasForeignKey("CreateUserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("CreateUserRole");
});
modelBuilder.Entity("IRaCIS.Core.Domain.Models.EmailRecipientLog", b =>
{
b.HasOne("IRaCIS.Core.Domain.Models.UserRole", "CreateUserRole")