添加分割保存状态

This commit is contained in:
he
2026-03-30 10:54:09 +08:00
parent 3f9e506d09
commit 25f62a35ee
7 changed files with 22144 additions and 4 deletions
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,38 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace IRaCIS.Core.Infra.EFCore.Migrations
{
/// <inheritdoc />
public partial class SegmentationSaved : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "IsSaved",
table: "Segmentation",
type: "bit",
nullable: false,
defaultValue: false);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_SegmentBinding_Segment_SegmentId",
table: "SegmentBinding");
migrationBuilder.DropForeignKey(
name: "FK_SegmentBinding_Segmentation_SegmentationId",
table: "SegmentBinding");
migrationBuilder.DropColumn(
name: "IsSaved",
table: "Segmentation");
}
}
}
@@ -9402,6 +9402,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.Property<bool>("IsDeleted")
.HasColumnType("bit");
b.Property<bool>("IsSaved")
.HasColumnType("bit");
b.Property<string>("SEGUrl")
.IsRequired()
.HasColumnType("nvarchar(max)");
@@ -19097,7 +19100,23 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("IRaCIS.Core.Domain.Models.Segment", "Segment")
.WithMany()
.HasForeignKey("SegmentId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("IRaCIS.Core.Domain.Models.Segmentation", "Segmentation")
.WithMany()
.HasForeignKey("SegmentationId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("CreateUserRole");
b.Navigation("Segment");
b.Navigation("Segmentation");
});
modelBuilder.Entity("IRaCIS.Core.Domain.Models.Segmentation", b =>